This documentation is for the older version of the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin. If you are using the new version of the plugin, please note that this documentation no longer applies to you. Find the relevant documentation from here :

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > How to Fix Logo, Image Missing, or Character Encoding Issues in PDF Documents

How to Fix Logo, Image Missing, or Character Encoding Issues in PDF Documents

Last updated on January 21, 2025

Have you been facing problems with the PDF documents that your store creates? Then this article is a one-stop solution. You can now fix logos, missing images or character encoding issues in your PDF document with mPDF add-on. WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin comes loaded with dompdf library, which is lightweight and robust. From the dompdf product page, it could be seen that the library supports Dejavu fonts, which in turn doesn’t support scripts such as Arabic and Hebrew. To solve the issue, this library must be replaced with the mPDF library, which supports a better RTL layout, extensive language support, and Unicode languages.

The below image shows a sample PDF with an encoding issue in Arabic.

WooCommerce Invoice with character encoding issue
WooCommerce Invoice with character encoding issue

Prerequisites

  1. A WooCommerce store with WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels extension enabled.
  2. Invoice enabled from the General settings tab.

Steps to Fix logo, image and character encoding issue

  1. Install and activate mPDF add-on for PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels by WebToffee from the WordPress navigation menu. Click on Plugins > Add New
  2. Type mpdf in the search box and select the plugin mPDF add-on for PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels by WebToffee from the result.
  3. Click on Install now > Activate.
Gif to elaborate the plugin installation process
  1. To switch the library, select Invoice/Packaging > General settings > Advanced. This will display the advanced setting options. In the advanced settings, look for PDF library option and choose mPDF as your default library.
Gif to elaborate the library switching process

The below image shows a sample Invoice PDF after switching mPDF library.

Sample WooCommerce Invoice PDF generated with mpdf library
Sample WooCommerce Invoice PDF generated with mPDF library