=== mPDF add-on for RTL and Unicode Support ===
Contributors: WebToffee
Version: 1.2.7
Donate link: https://www.webtoffee.com/plugins/
Tags: woocommerce invoice, pdf invoice, mpdf, gift card, rtl support
Requires at least: 3.0.1
Tested up to: 6.9
Stable tag: 1.2.7
Requires PHP: 5.6 
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

RTL and Unicode support add-on for WebToffee WooCommerce Gift Cards, WebToffee WooCommerce Request a Quote and WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin.

== Description ==
<pre>
<strong>NOTE: </strong>
This plugin is an add-on for <a href="https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/">WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin</a> , <a href="https://www.webtoffee.com/product/woocommerce-gift-cards/">WebToffee WooCommerce Gift Cards plugin</a> and <a href="https://www.webtoffee.com/product/woocommerce-request-a-quote/">WebToffee WooCommerce Request a Quote plugin</a>.
</pre>

= Introduction =
mPDF addon is an extension for [WebToffee WooCommerce Gift Cards](https://www.webtoffee.com/product/woocommerce-gift-cards/), [WebToffee WooCommerce Request a Quote](https://www.webtoffee.com/product/woocommerce-request-a-quote/) and [WooCommerce PDF invoices, Packing Slips, Delivery Notes & Shipping labels plugin](https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/).

This plugin replaces dompdf with another library that supports RTL and all other Unicode languages including Hebrew and Arabic adding a better RTL integration for PDF documents. It is equipped to handle almost 12 RTL languages including most Asian languages. The plugin also can be used with the WebToffee WooCommerce Gift Cards plugin to create gift cards in PDF format.

== Features ==
* RTL Support
* Support for all languages including Unicode standard
* Prints Hebrew and Arabic languages 
* Seamless integration with the WebToffee WooCommerce Gift cards, WebToffee WooCommerce Request a Quote and WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin by WebToffee
* Facilitates easy print, download, and attachment provisions.

&#9989; Tested OK with WooCommerce 10.3.5

== Why do you need the mPDF add-on? ==
The PDF converter library that we use (dompdf) in [WooCommerce PDF Invoice, Packings Slips, Delivery Notes & Shipping Labels](https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/) plugin provides only partial support for RTL. In addition to this, Hebrew and Arabic characters are not supported by the font (Open Sans) that is used in the pre-defined templates. 

To overcome this, the mPDF add-on provisions another library (in addition to dompdf) to support RTL and also includes fonts that support Hebrew and Arabic (and almost any character set) to the PDF Invoices, Packing Slips, Delivery Notes & Shipping Label plugin.

The mPDF add-on can also be used with the WebToffee WooCommerce Gift Cards plugin to create gift cards in RTL languages. 

The mPDF add-on can also be used with the WebToffee WooCommerce Request a Quote plugin to create quotes in pdf format. 

== Pre-requisites? ==
Ensure that the [WebToffee WooCommerce Gift Cards](https://www.webtoffee.com/product/woocommerce-gift-cards/) or [WebToffee WooCommerce Request a Quote](https://www.webtoffee.com/product/woocommerce-request-a-quote/) or  [WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels](https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/) plugin is installed and activated.

To learn more about getting started you can read the documentation for [WooCommerce PDF Invoices plugin](https://www.webtoffee.com/woocommerce-pdf-invoices-packing-slips-delivery-notes-shipping-labels-userguide-free-version/) or [WebToffee WooCommerce Gift Cards plugin](https://www.webtoffee.com/woocommerce-gift-cards/) or [Webtoffee WooCommerce Request a Quote plugin](https://www.webtoffee.com/webtoffee-woocommerce-request-a-quote/).

== About WebToffee ==
Our commitment at WebToffee is to provide you with top-notch WordPress/WooCommerce plugins that are both user-friendly and customizable. We are proud to have thousands of customers actively using our plugins across the globe. We provide premium support to our users with a 99% customer satisfaction rate.

== Frequently Asked Questions ==

= How can I know if the plugin supports my language? =
This addon adds support to all languages including all the RTL languages and Unicode languages for the PDF documents.

= Can I use this addon for changing the language setting of the PDF Invoice plugin? =
No. This plugin can only be used to add RTL and other language support to the PDF documents generated by [WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels](https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/).

= Can this add-on be used for creating gift cards in RTL language? =
This add-on can be used with the WebToffee WooCommerce Gift Cards plugin to create gift cards in RTL languages.

= Can this plugin be used with the premium version? =
Yes, the addon supports both the free and premium versions of the WooCommerce PDF invoices plugin and the WooCommerce Gift Cards plugin by WebToffee.


== Installation ==

**Automatic Installation**
The automatic installation of the plugin is the easiest way to install the plugin. You can install the plugin without even leaving your browser window and from within your WordPress dashboard.

From your admin dashboard, go to **Plugins > Add New**. From the search box, type "mPDF" and then search plugins. Click the install button on the mPDF add-on for RTL and Unicode Support by WebToffee and then activate the plugin.

**Manual Installation**
In the manual installation, you will need to download the zip file of the plugin from the plugin page in WordPress.org. You can upload the file directly from your WordPress dashboard, or using an FTP application to the '/wp-content/plugins/' directory.

**Plugin Updates**
For every update of the plugin, you will be notified of the installed plugins page. You can directly update the plugin from your dashboard. We recommend that you keep the latest version of the plugin so that you can avail of the new functionalities and security features.

After installing and activating the add-on, change the PDF library to mPDF from the general settings page to switch the PDF library from domPDF to mPDF.

Note: 
*This plugin works only with WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin Pro (v4.0.9 +), Basic (v2.6.7 +) By WebToffee. If you are already using the WooCommerce PDF Invoices, Packing Slips, Shipping Labels & Delivery, you will also need to manually ensure that your existing "custom" saved/active templates are compatible with mPDF prior to further use.*

*This plugin is also compatible with WebToffee WooCommerce Gift Cards (v1.0.2+)* 

*This plugin is also compatible with WebToffee WooCommerce Request a Quote


== Screenshots ==
1. RTL template


== Change log ==

= 1.2.7 2025-11-24 =
[Compatibility] - Add support for [All-in-one PDF Invoice and Packing Slips Suite](https://woocommerce.com/products/wt-pdf-invoices-suite/)
[Compatibility] - Tested OK with WooCommerce 10.3.5
[Compatibility] - Tested OK with WordPress 6.9

= 1.2.6 2025-11-04 =
[Compatibility] - Tested OK with WordPress 6.8.3
[Compatibility] - Tested OK with WooCommerce 10.3.4

= 1.2.5 2025-05-29 =
[Compatibility] - Tested OK with WordPress 6.8.1
[Compatibility] - Tested OK with WooCommerce 9.8.5

= 1.2.4 2024-12-26 =
[Compatibility] - Tested OK with WordPress 6.7.
[Compatibility] - Tested OK with WooCommerce 9.5.1

= 1.2.3 2024-09-19 =
* [Fix] - Fatal error comes when parent node does not have children
* [Fix] - NullLogger was not compatible with the LoggerInterface in Psr\log
* [Compatibility] - Tested OK with WooCommerce v9.3.0

= 1.2.2 2024-09-11 =
* [Compatibility] - Added support for the plugin - WebToffee Gift Cards for WooCommerce

= 1.2.1 2024-05-21 =
* [Tweak] - Downgraded the mPDF library from version 8.2.3 to 8.0.7, as v8.2.3 requires PHP 8.0 or higher

= 1.2.0 2024-05-16 =
* [Enhancement] - Updated the mPDF library to the version 8.2.3
* [Compatibility] - Tested OK with WordPress v6.5.3
* [Compatibility] - Tested OK with WooCommerce v8.8.3

= 1.1.2 2024-01-29 =
* [Compatibility] - Tested OK with WooCommerce v8.5.2

= 1.1.1 2023-11-21 =
* [Compatibility] - Tested OK with WordPress v6.4.0
* [Compatibility] - Tested OK with WooCommerce v8.3.0

= 1.1.0 2023-09-21 =
* [Compatibility] - Tested OK with WordPress v6.3.1
* [Compatibility] - Tested OK with WooCommerce v8.1.1

= 1.0.9 2023-07-26 =
* [Add] - Compatible with WooCommerce High Performance Order Storage Table feature
* [Compatibility] - Tested OK with WooCommerce v7.9.0

= 1.0.8 2023-05-10 =
* [Compatibility] - Tested OK with WordPress 6.2
* [Compatibility] - Tested OK with WooCommerce 7.7
* [Add] - Support for Webtoffee WooCommerce Request a Quote plugin


= 1.0.7 2023-03-23 =
* [Compatibility] with WP 6.1
* [Compatibility] with WC 7.5
* Support for Webtoffee Gift cards plugin.


= 1.0.6 =
* [Compatibility] with WP 5.9
* [Compatibility] with WC 6.2 and 6.3

= 1.0.5 =
* [Fix] - Solved the styling issues in the invoice templates
* [Enhancement] - Converted the html element into table format, if the site is RTL
* [Compatibility] with WP 5.8
* [Compatibility] with WC 6.1

= 1.0.4 =
* [Fix] - Solved the bulk download issue
* [Fix] - Solved the constant already defined issue
* [Compatibility] with WP 5.8
* [Compatibility] with WC 5.8

= 1.0.3 =
* [Compatibility] with WP 5.7
* [Compatibility] with WC 5.5

= 1.0.2 =
* [Compatibility] with WP 5.6
* [Compatibility] with WC 4.8

= 1.0.1 =
* [Fix] Downloaded PDF file name includes file path
* [Compatibility] with WC 4.7

= 1.0.0 =
* Initial commit

 
== Upgrade Notice ==

= 1.2.7 =
[Compatibility] - Add support for [All-in-one PDF Invoice and Packing Slips Suite](https://woocommerce.com/products/wt-pdf-invoices-suite/)
[Compatibility] - Tested OK with WooCommerce 10.3.5
[Compatibility] - Tested OK with WordPress 6.9