codilar/pdf-template

A module for adding HTML PDF templates to Magento

Installs: 38

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:magento2-module

1.1.8 2023-07-04 13:09 UTC

This package is not auto-updated.

Last update: 2024-05-17 23:01:47 UTC


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-outs and under the Invoice and Shipment section, set the Use HTML PDF template to Yes
  • Go to Content > PDF Template and choose either the Invoice Template, or Shipment Template whichever 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.