Welcome to PotatoCommerce - Magento Extensions Store

PDF Customizer for Magento 2


Create custom PDF templates easily! Convert your HTML code to PDF template.

  • Support of HTML and CSS
  • Bulk printing of orders/invoices/shipments/credit memos
  • Admin, customer and guest PDF templates
  • Attach PDF files to sales emails
  • PDF preview
  • Free installation & free lifetime support
Also available for Magento 1.

PDF Customizer Magento 2 extension

9 screenshots: click to zoom
  • Make PDF templates easily with support of HTML and CSS
  • Flexible templates for everyone
  • Templates for admin and storefront users
  • Bulk export of PDF documents
  • Using Google Font in PDF templates
  • Can be used even on a shared hosting!
  • Attach PDF files to sales emails
  • Print PDF in customer area
  • Print PDF in admin panel

* Required Fields

  • 60-day money-back period
  • free updates
  • free bugfixes
  • free technical support

Convert any HTML to PDF invoice templates!

Our PDF Customizer Magento 2 extension is designed for easy and fast editing of any PDF invoice templates and other documents without any programming skills.

You can quickly add your site logo, product image, terms of service, tax information, or any other custom information to a template or change colors, margins, background, etc. so that your invoice looks more individual and appealing.

Besides invoices, you can modify templates of shipments and packing slips the same way, and just make them more informative to your customers and corresponding with the general design of your website.

Magento 2 HTML to PDF

PDF Customizer features

Convert HTML to PDF

Our product utilizes Wkhtmltopdf library which makes PDF from HTML document. In addition, you can use CSS to easily apply colors, margins, and other styles to printable PDF documents. This provides unlimited flexibility and allows you to fulfill your design ideas.

Add product attributes to PDF invoice

Certainly, you can display product attributes (product weight, style, season, warranty etc.) to the templates. Please refer to the user guide for more information.

Display product images

Unlike native PDF documents, Our Magento 2 PDF extension lets you add product images to the PDF invoice templates.

Attach PDF files to sales emails

Customers no longer need to look for the "Print Invoice" button on your site. Now PDF files can be attached to sales emails.

Flexible templates for everyone

PDF Customizer Magento 2 extension allows printing not only PDF Magento templates for a custom invoice, shipment and credit memo, but also creating printable order confirmation. You can make a custom template for both admins and customers/guests. In other words, you can print pdf packing slips (order without invoice) which allows you to bypass native Magento workflow; It is required for offline orders management.

Bulk export of PDF documents

With PDF Customizer Magento 2 extension, a store administrator can export PDF files in a bulk from Sales → Orders page. This greatly simplifies the management of orders. On top of that, you can even print orders of Pending status as packing slips.

Using Google Font in PDF templates

Using your own fonts in native PDF documents is not an easy task, especially if it's a Google font. PDF Customizer Magento 2 extension allows you to use Google fonts in the same way as you do in HTML.

Support of multiple languages

This Magento 2 PDF extension allows you to configure different templates for different storeviews, thus supporting the Magento 2 multi-stores.
By the way, our module also supports Arabic, Cyrillic, Chinese and other non-latin symbols.

Can be used on shared hosting!

Magento merchants with shared hosting are often not allowed to install additional server applications. The good news is PotatoCommerce PDF extension can work on both dedicated and shared hosting! Thereby, this product can work on any Magento 2 store regardless server environment.

Reduced size of PDF

The size of a PDF file created by PDF Customizer is approximately 30% smaller than the one created by default Magento functionality.

PDF preview (NEW!)

PDF preview enables you to check the design of your custom PDF templates easily.

How PDF files are designed in Magento 2?

By default, Zend_Pdf is used to create custom PDF templates in Magento 2. You should know that this is almost a challenge to create and include a new PDF template, as this requires knowledge of PHP and experience in development under Magento 2. To edit a template you need to write a PHP-script that includes commands with the exact coordinates (“pen up → move to (x;y) → pen down → move to (x,y)”). There is no any markup, support of stylesheets or custom fonts; each element has its absolute independent positions, which makes the customization of native PDF files at best time-consuming, at worst impossible.

Why customize PDF invoice templates?

Besides, looking unappealing boring and inefficient, default invoice templates are lack of such useful information such as logo, product images, product details, tax information, footer, company info etc. PDF invoice templates are part of your online business, so they must be of high quality and match your brand.

How to make custom PDF template in Magento 2?

All templates can be created and modified in Magento 2 admin interface. Our extension comes with 8 default PDF templates which you can use as a starting point. To create a new template you need to go to Admin Panel > Content > PDF Customizer > Templates, then click on Add Template button. On the New Template page, you can use one of the existing templates as a base, or start your template from the scratch. Once your template saved, you need to select it in the extension settings. After that, the template is ready to go.

How to add product attribute to PDF in Magento 2?

It is often needed to add some product information to PDF documents. It can be product brand, weight, manufacturer or any other custom attribute. To add this file to the PDF document, you need to use this code snippet: {{var item.getProduct().getAttributeText('your_attribute_code')}}. You can learn more about using variables in the documentation.

Why choose PotatoCommerce headline
Why choose Potatocommerce left
Why choose Potatocommerce right
2 Reviews

Average rating

Great service and support

Posted by Tim on Jul 12, 2018
I can install and use this extension without problem. Moreover, I have many customizations and they provide great service from contact window and technical team instantly.

Easy to use

Posted by Stanislaw Królikowski on Dec 29, 2017
Thank you guys for such a great m2 module! PDF customiser works with HTML which is easy to work with.

Write Your Own Review

Only registered users can write reviews. Please, log in or register



Magento CE2.1.x, 2.2.x, 2.3.x
Magento EE2.1.x, 2.2.x, 2.3.x
Compatible BrowsersChrome, Safari, Firefox, Opera, IE8+


  1. Download the extension from your account.
  2. Extract the folder and copy it to the root directory of Magento 2 store
  3. In SSH console of your server navigate to your store root folder:
    cd path_to_the_store_root_folder
    bin/magento setup:upgrade
  4. If you use Magento 2.1.х and above, then it is required to restart Magento compile command by using:
    bin/magento setup:static-content:deploy
  5. Go to Stores > Configuration > POTATOCOMMERCE > PDF Customizer, configure and enable the extension.
    Custom templates can be created at Content > PDF Customizer by PotatoCommerce > Templates. Please remember to select your custom templates in the extension settings.

IMPORTANT! PDF Customizer extension uses wkhtmltopdf library to convert HTML to PDF. You need to choose one of the options:

  • Install wkhtmltopdf on your server
    In this case PDF files will be printed faster. It is especially important for bulk printing. Wkhtmltopdf installation guide is available on this page. It is also required to allow "exec" function.
    Our extension will check if the library is installed and if the extension can run "exec" function. It will let you know if something goes wrong.

  • Use PotatoCommerce PDF Service
    Often merchants are not allowed to install additional server software or change webserver settings. This may be due to restrictions from hosting or a system administrator. Many people also prefer not to allow the use of Exec function for security reasons. For these reasons we provide the ability to print files through our server, i.e. with the help of Wkhtmltopdf library installed on our server. This functionality is currently free, but we do not exclude that someday we will introduce limits and make the service paid.

Using Variables

Click here to expand/collapse the guide




Credit memo:

Additional directive: foreach
{{foreach items}} {{/foreach}}

Variable item is available inside the foreach directive.
Example: {{foreach creditmemo.getAllItems()}} {{var item.getQty()}} {{/foreach}}
Additional modificator integer is also available. It is used to convert values to int type.

{{var item.getQty()}} - returns string '1.0000'.
{{var item.getQty()|integer}} - returns digit 1.

Product images:
{{var item|small_image}} - returns URL of small product image
{{var item|image}} - returns URL of base product image
Usage example: <img src="{{var item|small_image}}" width="100" height="100">

Get value of product options (for example options of configurable options, or custom options):
{{var item.getProduct().getAttributeText('your_attribute_code')}} - returns value of the specified product option.
Example: {{var item.getProduct().getAttributeText('color')}} - returns value of 'color' product option.

Get value of a product attribute (for example, warranty, weight, etc.):
{{var item.getProduct().getSampleAttrubuteCode()}} - returns a value of the product attribute with 'sample_attribute_code' code.
Example: {{var item.getProduct().getWarranty()}} - returns a value of the 'warranty' product attribute.

Get payment method title:
{{var order.getPayment().getMethodInstance().getTitle()}} - returns only title of the payment method.
You can use it instead of {{var payment_method|raw}}


1.2.2 (20 June 2019)
* bug fixes

1.2.1 (08 April 2019)
* bug fix

1.2.0 (08 April 2019)
* bugfixes
+ new template editor
+ new variables
+ template preview ability

1.1.2 (20 June 2018)
+ Header and Footer directives introduced
* bugfix

1.1.1 (30 January 2018)
* bugfix

1.1.0 (08 December 2017)
+ New feature: attach PDF to sales emails
+ New feature: using product images in templates
+ Default templates have been changed (product image added, fixed bug with CSS with for big tables)
* bugfixes

1.0.1 (18 September 2017)
* bugfix

1.0.0 (10 August 2017)
The initial release of the extension.


We Recommend
Zendesk Connector for Magento 2

Widget in Zendesk sidebar

Image Optimizer for Magento 2

Optimize images on your Magento 2 store automatically. Image Optimizer Magento 2 extension is an essential solution that compresses images and photos on your store.