pifeifei/pdf2image

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

v0.1.0 2022-10-24 16:10 UTC

This package is auto-updated.

Last update: 2024-10-25 09:36:33 UTC


README

use

$pdf = new \Pff\Pdf2Image\Pdf(__DIR__ . '/test.pdf');
$pdf->setResolution(192);
$pdf->setCallback(function (Imagick $imagick) {
    $imagick->cropImage(757,1134, 0, 0);
});
$pdf->saveImage(__DIR__ . '/test.jpg');
//$pdf->saveAllPagesAsImages(__DIR__, 'test-');