baraja-core/php-pdf-to-image

There is no license information available for the latest version (v1.3.0) of this package.

Convert PDF to JPG, PNG or GIF in PHP.

v1.3.0 2021-02-09 09:20 UTC

README

Convert PDF to image and save to disk. Convert PDF to JPG, PNG or GIF in PHP.

📦 Installation

It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.

To install, simply use the command:

$ composer require baraja-core/php-pdf-to-image

You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.

How to use

$pdfPath = __DIR__ . '/example.pdf';
$imagePath = __DIR__ . '/example.jpg';

// Render PDF to image and save to disk.
\Baraja\PdfToImage\Convertor::convert($pdfPath, $imagePath, 'jpg');

📄 License

baraja-core/php-pdf-to-image is licensed under the MIT license. See the LICENSE file for more details.