开发者

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

开发者 https://www.devze.com 2023-03-07 07:28 出处:网络
How to get the first two pages of a pdf document using PHP? 开发者_StackOverflow中文版Thanks! DonTo read from PDF files, you will need to install the XPDF package.

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

精彩评论

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