PDF Imposition Toolkit
You can install the package via composer:
composer require kduma/pdf-imposition
use Kduma\PdfImposition\LayoutGenerators\AutoGridPageLayoutGenerator;
use Kduma\PdfImposition\LayoutGenerators\Markers\PrinterBoxCutMarkings;
use Kduma\PdfImposition\PdfImposer;
use Kduma\PdfImposition\PdfSource;
use Kduma\PdfImposition\DTO\Size;
$cardSize = Size::make(90, 50);
$layoutGenerator = new AutoGridPageLayoutGenerator($cardSize);
$layoutGenerator->center();
$layoutGenerator = new PrinterBoxCutMarkings($layoutGenerator);
$PdfImposer = new PdfImposer($layoutGenerator);
$cards = (new PdfSource)->read('input.pdf');
$PdfImposer->export($cards, 'output.pdf');
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The GNU GPLv3. Please see License File for more information.
This package was generated using the PHP Package Boilerplate.