Incorrect Characters in Invoice.pdf in Greek Language

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.

图片1

If the store is in Greek language, there could be a mistake here, as shown below.

图片2

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:
define(‘TOC_PDF_FONT’, ‘times’);
4. Replace the code with:
define(‘TOC_PDF_FONT’, ‘freesans’);

The correct Greek invoice would be like this:

图片3

Looking for quality TomatoCart Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , | Posted under TomatoCart | RSS 2.0

Author Spotlight

Jack Yin

Jack Yin

TomatoCart Developer & Co Founder - Arvixe Web Hosting / TomatoCart Community Liaison

Leave a Reply

Your email address will not be published. Required fields are marked *


3 − 1 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>