Registry / utility / spatie-pdf-to-image

spatie-pdf-to-image

JSON →
library3.2.0phppackagistunverified

Convert a PDF to an image using PHP.

composer require spatie/pdf-to-image
INSTALL
IMPORT
SIG · SPATIE-PDF-TO-IMAG
S
spatie-pdf-to-image
utilityphpv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pdf
use Spatie\PdfToImage\Pdf;

Convert the first page of a PDF to a PNG image.

use Spatie\PdfToImage\Pdf; $pdf = new Pdf('document.pdf'); $pdf->saveImage('output.png');
Debug
Known issues
breakingRequires the imagick PHP extension and Ghostscript installed on the server.
fix
Install imagick extension and Ghostscript (gs) via package manager.
affects: >=3.0.0
Upgrade
Version history
3.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources