Posted by runner7 on 10/31/06 07:57
I used file_get_contents() to read a pdf into a string and then tried
to extract the encoded part between the "stream" and "endstream" words
using the strpos() and substr() functions. (I could not get
preg_match() to work.) The substr() pulled it out, but read past the
length I entered by 12 characters to include "endstream en". Besides
that minor problem, I tried gzuncompress() on the extracted string
which only generated a data error. Can anyone help me with extracting
data properly from a pdf file?
Navigation:
[Reply to this message]
|