eddturtle/qpdf-php

PHP wrapper for the qpdf library

v0.2 2020-11-25 20:43 UTC

This package is auto-updated.

Last update: 2022-07-26 00:10:00 UTC


README

PHP wrapper for the qpdf library.

Basic Example:

$qpdf = new \EddTurtle\Qpdf\Pdf();

$qpdf->addPage(__DIR__ . "/files/TestPdf.pdf");
$qpdf->addPage(__DIR__ . "/files/TestPdf2.pdf");

$result = $qpdf->merge(__DIR__ . "/output/test-merge.pdf");

if (!$result || !empty($qpdf->getError())) {
    var_dump($qpdf->getError());
} else {
    var_dump('success');
}