PHPackages                             arteyazilim/module-pdfgenerator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arteyazilim/module-pdfgenerator

ActiveMagento2-module

arteyazilim/module-pdfgenerator
===============================

The best pdf generator for Magento. EaDesign PDF Generator

1.2.9(6y ago)02Apache-2.0PHPPHP ~7.1.3|~7.2.0

Since Jul 28Pushed 6y agoCompare

[ Source](https://github.com/arteyazilim/magento2-pdf-generator2)[ Packagist](https://packagist.org/packages/arteyazilim/module-pdfgenerator)[ RSS](/packages/arteyazilim-module-pdfgenerator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (13)Versions (26)Used By (0)

Magento Invoice PDF Generator [![CircleCI](https://camo.githubusercontent.com/b11693637b54c2bbb154641e410d2272ace675c193d419d9d436de3156c40fa3/68747470733a2f2f636972636c6563692e636f6d2f67682f456144657367696e2f6d6167656e746f322d7064662d67656e657261746f72322e7376673f7374796c653d737667)](https://circleci.com/gh/EaDesgin/magento2-pdf-generator2)
=======================================================================================================================================================================================================================================================================================================================================================

[](#magento-invoice-pdf-generator-)

[![Maintainability](https://camo.githubusercontent.com/03a6c735885ee8d1a2a814699fa4abff831e367ecf29c258132c058bd1f24590/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61306532393233333664633432316236633930332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/EaDesgin/magento2-pdf-generator2/maintainability)

[![](https://camo.githubusercontent.com/7b708c276eb090b8a3c736309923b5feec91d87b82d5f751d951419b55efc494/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656164657369676e726f2f6d6f64756c652d70646667656e657261746f722e737667)](https://packagist.org/packages/eadesignro/module-pdfgenerator) [![](https://camo.githubusercontent.com/58c3da8943a5b009f0189e338213e3799c19da6cc066ab6ae55d2cf8dc5027ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656164657369676e726f2f6d6f64756c652d70646667656e657261746f722e737667)](https://packagist.org/packages/eadesignro/module-pdfgenerator)

**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.

[ ![B2C Theme demo](https://camo.githubusercontent.com/748970733d89f1189040eddc13bcd9c335eb676d3cb709d2f9d52d706f8f551f/68747470733a2f2f7777772e656164657369676e2e726f2f7075622f6d656469612f777973697779672f62616e6e65725f6769745f70646670726f41737365745f345f32782e706e673f7261773d74727565) ](https://www.eadesign.ro/magento2-invoice-credit-memo-shipping-and-product-pdf-generator-pro.html)How to use the module
=====================

[](#how-to-use-the-module)

Add a new template from the "Add new template" button. This will prompt you with a set of fields.

- 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}})`.

You can also localize your template using the trans directive.

```
{{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."}}
```

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
==================

[](#supported-versions)

- Magento 2.1.\*
- Magento 2.2.\*
- Magento 2.3.\*

Installation
============

[](#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:

```
composer config repositories.magento2-pdf-generator2 git git@github.com:EaDesgin/magento2-pdf-generator2.git;
```

```
composer require eadesignro/module-pdfgenerator;
```

```
php bin/magento setup:upgrade;
```

Requirements
============

[](#requirements)

- ~7.1.3|~7.2.0
-  - the library for pdf generation.

Video install and use
=====================

[](#video-install-and-use)

[![IMAGE ALT TEXT HERE](https://camo.githubusercontent.com/f05d25f1319413ad0c0aa0d518c1e571ddb5755ec1ae8b9f9d77e732c34144eb/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f2d4f3471687a4c395f534d2f302e6a7067)](https://www.youtube.com/watch?v=-O4qhzL9_SM)

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~38 days

Total

19

Last Release

2508d ago

PHP version history (6 changes)1.0.18PHP ~5.6.0|~7.0.0

1.0.28PHP ~5.6.5|7.0.2|7.0.4|~7.0.6

1.2.1PHP 7.0.2|7.0.4|~7.0.6|~7.1.0

1.2.2PHP ~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0

1.2.4PHP ~7.0.13|~7.1.0

1.2.5PHP ~7.1.3|~7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cb300f3a4b72993dd577d6ced3b12ed215f3ff3e0f3ef86bb97ae3ea582a637?d=identicon)[gokhanweb](/maintainers/gokhanweb)

---

Top Contributors

[![eadesignro](https://avatars.githubusercontent.com/u/6911609?v=4)](https://github.com/eadesignro "eadesignro (198 commits)")[![catalineadesign](https://avatars.githubusercontent.com/u/20413846?v=4)](https://github.com/catalineadesign "catalineadesign (3 commits)")[![arteyazilim](https://avatars.githubusercontent.com/u/4680682?v=4)](https://github.com/arteyazilim "arteyazilim (3 commits)")[![mardeleanu](https://avatars.githubusercontent.com/u/3253215?v=4)](https://github.com/mardeleanu "mardeleanu (2 commits)")[![DavidLambauer](https://avatars.githubusercontent.com/u/1841317?v=4)](https://github.com/DavidLambauer "DavidLambauer (1 commits)")[![pavelleonidov](https://avatars.githubusercontent.com/u/16128649?v=4)](https://github.com/pavelleonidov "pavelleonidov (1 commits)")[![snowcore](https://avatars.githubusercontent.com/u/933169?v=4)](https://github.com/snowcore "snowcore (1 commits)")[![violuke](https://avatars.githubusercontent.com/u/6420347?v=4)](https://github.com/violuke "violuke (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/arteyazilim-module-pdfgenerator/health.svg)

```
[![Health](https://phpackages.com/badges/arteyazilim-module-pdfgenerator/health.svg)](https://phpackages.com/packages/arteyazilim-module-pdfgenerator)
```

###  Alternatives

[eadesignro/module-pdfgenerator

The best pdf generator for Magento. EaDesign PDF Generator

6927.6k](/packages/eadesignro-module-pdfgenerator)[eadesigndev/module-fullbreadcrumbs

Full breadcrumbs for product page

223.9k](/packages/eadesigndev-module-fullbreadcrumbs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
