How do I display cyrillic characters in PDF when I try to print Invoice?

From TomatoCart Wiki

Jump to: navigation, search

The default font is Times New Roman for pdf print. And it does not support other fonts like cyrillic, chinese, etc.

In order to support cyrillic, Chinese, Japanese, Korean and so on, you have to use UTF-8 font. You can change the font in the file: admin/includes/classes/toc_pdf.php, line 35.

Change the font from times to arialunicid0

define('TOC_PDF_FONT', 'times') => define('TOC_PDF_FONT', 'arialunicid0')

And if you use utf8 for pdf print then you have to increase the memory_limit to 64M.

Set the memory_limit value in the head of the file: pdf.php which is at the root folder.

@ini_set('memory_limit', '64M');