How to get the first two pages of a pdf document using PHP?
开发者_StackOverflow中文版Thanks!
Don
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/
精彩评论