Download the PHP package bnbwebexpertise/pdf-to-image without Composer
On this page you can find all versions of the php package bnbwebexpertise/pdf-to-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bnbwebexpertise/pdf-to-image
More information about bnbwebexpertise/pdf-to-image
Files in bnbwebexpertise/pdf-to-image
Package pdf-to-image
Short Description Convert a pdf to an image with Imagick extension. Forked from spatie/pdf-to-image
License MIT
Homepage https://github.com/bnbwebexpertise/pdf-to-image
Informations about the package pdf-to-image
Convert a pdf to an image
This package provides an easy to work with class to convert pdf's to images.
Requirements
You should have Imagick and Ghostscript installed.
Install
The package can be installed via composer:
Usage
Converting a pdf to an image is easy.
If the path you pass to saveImage
has the extensions jpg
, jpeg
, or png
the image will be saved in that format.
Otherwise the output will be a jpg.
Other methods
You can get the total number of pages in the pdf:
By default the first page of the pdf will be rendered. If you want to render another page you can do so:
You can override the output format:
You can configure custom settings (where page is the page number) :
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.