PHP Poppler
, (*1)
PHP-Poppler is a tiny lib which help you to use Poppler tools http://poppler.freedesktop.org/, (*2)
Poppler is GPL licensed and is described as "Poppler is a PDF rendering library based on the xpdf-3.0 code base.", (*3)
Documentation available at http://php-poppler.readthedocs.org/, (*4)
Installation
It is recommended to install PHP-Poppler through
Composer :, (*5)
{
"require": {
"php-poppler/php-poppler": "~0.1.0"
}
}
Dependencies :
In order to use PHP-Poppler, you need to install Poppler. Depending of your
configuration, please follow the instructions at
http://poppler.freedesktop.org/., (*6)
Main API usage :
```php
$file = new Poppler\Process\PdfFile(...);, (*7)
// Get pdf info
print_r($file->getInfo('test.pdf'));, (*8)
// Get text content of pdf
echo $file->toText('test.pdf');, (*9)
// Transform to html
$file->toHtml('test.pdf', '/path/for/html');, (*10)
License
PHP-Poppler are released under MIT License http://opensource.org/licenses/MIT, (*11)
See LICENSE file for more information, (*12)