typesetsh/magento2-extension

Magento2 typeset.sh extension

1.4.0 2020-07-19 17:37 UTC

This package is auto-updated.

Last update: 2024-12-20 03:36:41 UTC


README

This Magento 2 extension provides an alternative PDF renderer using the typeset.sh engine.

PDFs are generated using html provided by the store theme in the same maner as a website is render (Using Blocks and phtml template files). This makes adjusting the PDF easy if you are familiar with the Magento2 layout and theme structure.

This extension only replaces the Magento\Sales\Model\Order\Pdf\* classes.

Any adjustment to the PDF can then simply be done in your theme.

Example

PDF Sample Invoice

Adjustments to the PDF can be simple done in your theme folder. Here is a sample pdf ouptut file.

Installation via Composer

Get access to your typeset.sh repository. See the typeset.sh documentation.

composer require typesetsh/magento2-extension
php bin/magento module:enable Typesetsh_Pdf
php bin/magento setup:upgrade

License

This extension is under the MIT license.

However, it requires a version of typeset.sh to work.