typesetsh / magento2-extension
Magento2 typeset.sh extension
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: ^102.0
- magento/module-directory: ^100.0
- magento/module-sales: ^102.0
- magento/module-store: ^101.0
- typesetsh/typesetsh: ^0.9
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.14.0
- magento/magento-coding-standard: ^5
- phan/phan: dev-master
- phpunit/phpunit: ^8.5
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
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.