Incorrect Characters in Invoice.pdf in Greek Language
Written by Jack Yin Thursday, 27 December 2012
Invoices could be created under Customers>Orders and viewed under Customers>Invoices at admin panel. The correct invoice should include shipping address, invoice number, invoice date, order number, products name, quantity ordered, pricing etc, as the following screenshot shows.
If the store is in Greek language, there could be a mistake here, as shown below.
Greek translations for invoice, invoice number, invoice date, order number, products name, quantity ordered, pricing etc are done, yet not displayed accordingly.
This is caused by font. The default font used in the TOCPDF class is “times” for English, which not works for Greek.
Solution right away:
1. Download TOCPDF from http://sourceforge.net/projects/tcpdf/
2. Copy the font files in the Fonts folder of the downloaded file to /ext/tcpdf/fonts.
3. Find the following code in /admin/includes/classes/toc_pdf.php:
4. Replace the code with:
The correct Greek invoice would be like this: