Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php parser
- Selmi Mourad
March 17, 2005, 11:15 am
rate this thread
I like to know wheter it is possible with php to do the following
- read a file (.txt, .doc, .pdf, ...) word by word to chek if a word
or a sentencs exists...
- chek the form of presentation of a word i.e. chek if the word is
bold, in which size, is it centered or aligned to left,...
thank you for your help
Re: php parser
Selmi Mourad (email@example.com) wrote:
: I like to know wheter it is possible with php to do the following
: - read a file (.txt, .doc, .pdf, ...) word by word to chek if a word
: or a sentencs exists...
: - chek the form of presentation of a word i.e. chek if the word is
: bold, in which size, is it centered or aligned to left,...
: thank you for your help
for .doc files, google "antiword"
This space not for rent.
Re: php parser
Selmi Mourad wrote:
You can probably easily search a plaintextfile, coding it yourself.
But if you enter the (evil) domain of propietary software, like doc, you
need some code (in a com or something) to help you access the file.
Or a friendly guy who backengeneered the stuff.
Have a look a .doc in a plaintext editor and see how that looks...
And then there is a newer Word-version.
Things start over again.
Anyway, I'll stop ranting.
Have a look here:
You will find some pdf-api at least.
Be sure to read the notes too.
They contain a few examples on M$-based systems with COM.