extracting data from pdf files

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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?

Site Timeline