RE: [PHP] PDF to Text

From: Date: Fri, 21 Apr 2006 01:59:20 +0000
Subject: RE: [PHP] PDF to Text
Groups: php.general 
Request: Send a blank email to php-general+get-234447@lists.php.net to get a copy of this message
[snip] > I am trying to find a way for a program to search through the text on a > PDF. My first thought was to use pdftotext, but the PDFs generated by our > commercial scanner/copier/printer machine do not seem to work with > pdftotext... it just outputs two CRLFs. I've been looking around on the > net for something similar that might work. > > Anyone know of something like that? > > Thanks, > -- > Ray Hauge Things I forgot to post: It is a PHP script. I was planning on using shell_exec() to call the program and read the output from stdout. [/snip] Sounds like the PDF's are images and therefore will not be readable by anything, save for eyeballs. I have run into this quite a bit. The scanner scans the doc via a TWAIN driver, which then converts the info into an image of that which was scanned. It would be like trying to read text programmatically from a JPEG.....not really possible.

« previous php.general (#234447) next »