baraja-core / php-pdf-to-image
Convert PDF to JPG, PNG or GIF in PHP.
Installs: 10 450
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 3
Forks: 7
Open Issues: 1
Requires
- php: ^8.0
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
This package is auto-updated.
Last update: 2024-10-24 12:34:35 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
$configuration = new Configuration( pdfPath: __DIR__ . '/example.pdf', savePath: __DIR__ . '/example.jpg', format: 'jpg' ); // Render PDF to image and save to disk. \Baraja\PdfToImage\Convertor::convert($configuration);
Supported configuration options
📄 License
baraja-core/php-pdf-to-image
is licensed under the MIT license. See the LICENSE file for more details.