开发者

How to get the first two pages of a pdf document using PHP

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜