codilar / pdf-template
A module for adding HTML PDF templates to Magento
Installs: 940
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
pkg:composer/codilar/pdf-template
Requires
- dompdf/dompdf: ^2.0
- salesforce/handlebars-php: ^3.0
- symfony/var-dumper: *
README
This module enables the Admin to easily modify the Invoice, Shipment, and other PDF templates using HTML, right from the Admin Panel!
Installation
composer require codilar/pdf-template
Setup
- Once the module is installed, go to
Stores>Configuration>Sales>PDF Print-outsand under the Invoice and Shipment section, set the Use HTML PDF template to Yes - Go to
Content>PDF Templateand choose either theInvoice Template, orShipment Templatewhichever you want to edit - Choose the store you want to edit for
- Modify the template (you can see the changes in real-time on the preview section
- Save, and we're done!
Now whenever a PDF is requested (in Admin panel, email, etc) Magento will use our newly designed HTML template to generate the PDF.
Templating
The module uses the Handlebars templating engine for designing the templates. For a tutorial on how to get started, head over to Content > PDF Template > Tutorial section.