Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Fixing Language Missing Issues in WooCommerce PDF Documents

Fixing Language Missing Issues in WooCommerce PDF Documents

Last updated on December 20, 2023

Ensuring seamless multilingual functionality is paramount for a global customer base. WebToffee’s WooCommerce PDF Invoices, packing slips, and credit notes plugin helps to generate WooCommerce documents in different languages. But there are instances where documents face language missing issues. In order to solve these issues use WebToffee’s free mPDF add-on. Install the mPDF add-on to enable RTL support for documents and switch the PDF library to Mpdf.

The image below shows a WooCommerce invoice document with a language missing issue.

WooCommerce Invoice with language missing issue
WooCommerce Invoice with language missing issue

Using mPDF add-on

WebToffee’s free mPDF add-on is an excellent solution to the language missing issue in WooCommerce PDF documents. The plugin replaces the default dompdf library with the Mpdf library which supports RTL and other Unicode languages such as Arabic and Hebrew. To solve the language missing issue in WooCommerce PDF documents, follow these steps:

  1. Install and Activate WebToffee’s mPDF add-on.
  2. Enable RTL support for documents
    • To do this, from the WordPress dashboard navigate to Invoices/Packing > General Settings > Advanced.
    • Under the Advanced tab, head to Enable RTL support and enable it by ticking the checkbox.
Enabling RTL support
Enabling RTL support
  1. Switch the PDF library from dompdf to Mpdf.
Switching PDF library to Mpdf
Switching PDF library to Mpdf
  1. Then finally, click on Update settings and save changes.

The corrected WooCommerce invoice document will look like this:

WooCommerce Invoice with language missing issue resolved
WooCommerce Invoice with language missing issue resolved