Convert PDFs and images into ZPL output for Zebra printers.
Requires PHP 8.4+
composer require cline/zpluse Cline\Zpl\PdfToZplConverter;
use Cline\Zpl\Settings\ConverterSettings;
$converter = new PdfToZplConverter(new ConverterSettings());
$pages = $converter->convertFromFile('/path/to/label.pdf');The package throws specific exceptions that all implement
Cline\Zpl\Exceptions\ZplException, so consumers can catch either granular
failure types or the package-wide marker interface.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
The MIT License. Please see License File for more information.