php-poppler/php-poppler

PHP-Poppler

1.0.1 2014-11-27 10:51 UTC

This package is auto-updated.

Last update: 2024-04-08 05:46:43 UTC


README

#PHP Poppler

Build Status

PHP-Poppler is a tiny lib which help you to use Poppler tools http://poppler.freedesktop.org/

Poppler is GPL licensed and is described as "Poppler is a PDF rendering library based on the xpdf-3.0 code base."

Documentation available at http://php-poppler.readthedocs.org/

Installation

It is recommended to install PHP-Poppler through Composer :

{
    "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/.

##Main API usage :

$file = new Poppler\Process\PdfFile(...);

// Get pdf info
print_r($file->getInfo('test.pdf'));

// Get text content of pdf
echo $file->toText('test.pdf');

// Transform to html
$file->toHtml('test.pdf', '/path/for/html');

##License

PHP-Poppler are released under MIT License http://opensource.org/licenses/MIT

See LICENSE file for more information