Letters are replaced with the question marks in the PDF. How do I fix it?
The issue is rooting in the DOMPDF library our extension is built on. Sometimes it fails to recognize specific fonts or locales. In order to fix this, you need to embed an external font in the template.
If you're facing difficulties with the Chinese locale, please navigate to Marketing → PDF Templates → open the template and add the following code in the Template Styles block:
@font-face {
font-family: font-extra;
src: url( https://github.com/googlefonts/chinese/blob/gh-pages/fonts/SetoFont/setofont.ttf?raw=true) format('truetype');
}
*{ font-family: font-extra !important;}
In case there's a problem with Arabic characters, please open the template and update the Template Styles block with the code below:
@font-face {
font-family: El Messiri;
src: url(https://github.com/Gue3bara/El-Messiri/blob/master/fonts/ttf/ElMessiri-Bold.ttf?raw=true format('truetype');}
* { font-family: DejaVu Sans, sans-serif; }
Related Articles
How to change the background color in PDF templates?
Using the PDF Customizer module, it is possible to adjust the PDF documents according to your needs. By default, the extension provides 4 pre-cofigured templates that could be used for each type of the order-related document: Order, Invoice, Shipment ...
How do I embed the footer on every page in the multi-page PDF?
In order to place the footer on every page in the multi-page PDF, please go to Marketing > PDF Templates > open the template and add the following code at the beginning of the <body>: <div class="footer"> <p>Footer</p> </div> Once done, apply ...
If I create the invoice with the Magento API, will the PDF be based on the Amasty template?
If the extension is installed and enabled, PDF will be generated on the Amasty template basis.
I want to change logo and text on the PDF in Request a quote plugin. How do I do that?
Kindly note that PNG files are not suitable for logo replacement. For this operation, please use an SVG file converted to base64 encoding. Please follow the steps below to replace the logo image and edit the text on the PDF. Step 1. Head to Amasty → ...
How to fix the Magento 2.4.5 Layered Navigation showing incorrect results issue?
After upgrading Magento to version 2.4.5 you can see the error: TypeError: Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplier::categoryProductByCustomSortOrder(): Argument #1 ($categoryId) must be of type int, array ...