Reputation:
How to get the first two pages of a pdf document using PHP?
Thanks!
Don
Upvotes: 2
Views: 608
Reputation: 2336
To read from PDF files, you will need to install the XPDF package.
When you have XPDF/pdftotext installed, you run the following PHP statement to get the PDF text:
$content = shell_exec('/usr/local/bin/pdftotext '.$filename.' -');
You can download XPDF from http://foolabs.com/xpdf/
Upvotes: 1