Page 1 of 1

PDF read

Posted: Fri Jun 03, 2005 10:19 am
by Roja
Is there a way to *read* in a PDF file from PHP?

Any combination of technologies is fine, as long as I can get the contents (human readable, not binary) into a string or array.

Thanks!

Posted: Fri Jun 03, 2005 10:23 am
by Syranide
pdf_open_file?

dunno though, does only seem to create a file.

Posted: Fri Jun 03, 2005 10:49 am
by phpScott
quick google and all I could find was several ways to create pdf's using php but nothing to come back using php.

the only things I found where http://www.eprintdriver.com/
and
http://www.digitalriver.com/v2.0-img/op ... 30520.html

which are stand alone programs that have nothing to do with php.

Posted: Fri Jun 03, 2005 11:34 am
by patrikG
Ghostscript converts PDF to PostScript - doesn't look like converts it into ASCII or the like.

Adobe Reader 7 offers PDF to ASCII conversion and is available for Linux.