2017 © Pedro Peláez
 

magento2-module module-pdfgenerator

The best pdf generator for Magento. EaDesign PDF Generator

image

eadesignro/module-pdfgenerator

The best pdf generator for Magento. EaDesign PDF Generator

  • Thursday, January 25, 2018
  • by eadesignro
  • Repository
  • 12 Watchers
  • 36 Stars
  • 3,750 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 26 Forks
  • 4 Open issues
  • 19 Versions
  • 23 % Grown

The README.md

Magento Invoice PDF Generator CircleCI

Maintainability, (*1)

, (*2)

Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2. If you have an enabled template and a default template for the store you need your template the system will print the pdf template., (*3)

B2C Theme demo , (*4)

How to use the module

Add a new template from the "Add new template" button. This will prompt you with a set of fields., (*5)

  • Enable template - you need to enable the template in order to use it;
  • Default template - make the template as default for the current store;
  • Template name - this is for your own information as well as the template description;
  • Template for website - here you select the website you need the template for;
  • The template body, header and footer is where you can add the html that will be transformed into the PDF body;
  • The template CSS filed allows you to create styles for the html like "h1 {color:red;} h2 {color:blue}", do not use the style tag, it is not need. In the body you can also specify html like in the email templates;
  • The template settings are used to shape the template as you need. The "Template file name" can be made from variables as long as they are ok for file naming {{var invoice.increment_id}}-{{var invoice.id}}-file-invoice. The "Template paper orientation" is used to set the pdf as landscape or portrait. If you chose to use the custom format the "Custom height" and "Custom width" in millimeters will be used. The paper orientation and the "Template paper format" will be ignored in this case. If the template has standard format the "Template paper format" will allow you to set the paper in a few formats (A4,A5,A3,Letter and Legal). The other settings are the margins (in millimeters) for the top, right, left and bottom. If the header or footer overlaps over your body increase the top and bottom margins to fix this.

The extension will allow you to harness all the power of the email template system and more. You can add phtml files to your template for very advanced configurations ({Error in template processing} and {Error in template processing}). You can add your own item processing layout so you can output taxes item prices as you want ({{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}})., (*6)

You can also localize your template using the trans directive. ``` php {{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}{{trans "Once your package ships we will send you a tracking number."}}, (*7)


Using the extension you are able to change the invoice PDF as you desire. The PDF Generator has multiple features as follows: * change the Magento invoice PDF to meet your needs; * add custom CSS to your template to further personalize the PDF; * add templates for each store with different design and features; * change the file name of the PDF file using variables; * you can send the invoice as PDF attachment to the invoice mail; * you can disable enable the PDF from the system configuration area. For the variable system you can read the [Magento domentation here](http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/templates/template-email.html). We use the exact same system to generate the variables. # Supported Versions * Magento 2.1.* * Magento 2.2.* * Magento 2.3.* # Installation You can install the module via composer or manually by adding it to the app/code directory. The module is available on [packagist.org](https://packagist.org/packages/eadesignro/module-pdfgenerator) Via composer: ``` bash composer config repositories.magento2-pdf-generator2 git git@github.com:EaDesgin/magento2-pdf-generator2.git

``` bash composer require eadesignro/module-pdfgenerator, (*8)


``` bash php bin/magento setup:upgrade

Requirements

  • ~7.1.3|~7.2.0
  • https://github.com/mpdf/mpdf - the library for pdf generation.

Video install and use

IMAGE ALT TEXT HERE, (*9)

The Versions

25/01 2018

dev-master

9999999-dev

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

08/11 2017

1.2.3

1.2.3.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

08/11 2017

dev-bug/date-1108-email-issue

dev-bug/date-1108-email-issue

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

31/10 2017

1.2.2

1.2.2.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

31/10 2017

dev-feature/1799-mpdf-71

dev-feature/1799-mpdf-71

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

02/10 2017

1.2.1

1.2.1.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

17/08 2017

1.0.30

1.0.30.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

17/08 2017

dev-bug/1606-namespace-file-unnided

dev-bug/1606-namespace-file-unnided

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

12/08 2017

dev-feature/1600-new-email-system

dev-feature/1600-new-email-system

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

08/04 2017

dev-dev

dev-dev

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

08/04 2017

1.0.29

1.0.29.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

12/03 2017

1.0.28

1.0.28.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

10/01 2017

1.0.27

1.0.27.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

15/11 2016

1.0.26

1.0.26.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

22/10 2016

1.0.25

1.0.25.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

15/09 2016

1.0.24

1.0.24.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

13/09 2016

1.0.23

1.0.23.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires

14/08 2016

1.0.19

1.0.19.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

  • php ~5.6.0|~7.0.0
  • magento/module-backend ~100.1.0
  • magento/module-sales ~100.1.0
  • mpdf/mpdf ^7.0

 

The Development Requires

28/07 2016

1.0.18

1.0.18.0

The best pdf generator for Magento. EaDesign PDF Generator

  Sources   Download

AL-2.0

The Requires

 

The Development Requires