Provides an easy to use functionality to output PDF in Zend Framework.
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
composer require webowy/zend-pdf
That's all ;-)
Copy default configuration file ./config/pdf.global.php.dist
to Your configuration directory removing .dist
.
In Your action instead of using ViewModel or JsonModel use \Webowy\Pdf\View\Model\PdfModel
.
- DOMPDF (webowy/zend-pdf-engine-dompdf) - DOMPDF Engine.
You are free to create other engines based on interface Webowy\Pdf\View\Renderer\Engine\EngineInterface
.