RE: [PHP] extract text from pdf
| From: | ray dot hauge at americanstudentloan dot com | Date: | Thu, 11 May 2006 15:31:01 +0000 |
| Subject: | RE: [PHP] extract text from pdf | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235986@lists.php.net to get a copy of this message | ||
If this is on a *nix box, I would suggest using the pdf2text command
within shell_exec. It should work as long as the PDF isn't a scanned
image. Obviously it won't get text off the images, and you'd want to
make sure that any input to filenames (if they're dynamic) are verified
and scrubbed first so people can't access different files on the
filesystem.
HTH,
Ray
> -------- Original Message --------
> Subject: [PHP] extract text from pdf
> From: cajbecu <cajbecu@gmail.com>
> Date: Thu, May 11, 2006 1:45 am
> To: "'PHP General (E-mail)'" <php-general@lists.php.net>
>
> Hello,
>
> Is there any posibility to extract all text from a PDF file? (I have
> read all the documentation about PHP PDF-Lib but no answer...)
>
> Thanks in advance,
> cajbecu
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php