1gnas Posted March 31, 2015 Share Posted March 31, 2015 (edited) Hi, The problem in invoice is that in text I can't use these Capital Lithuanian letters (ĄČĘĖĮŲŪŽ). When in invoice is at least one of the following letters, the text does not generate and invoice looks like this: In "classes\pdf\PDFGenerator.php": default font is set "dejavusans". It would be great if you could advise how to solve the problem. Edited March 31, 2015 by 1gnas (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 1, 2015 Share Posted April 1, 2015 What is your PrestaShop version? Have you tried another font - helvetica or freeserif? Link to comment Share on other sites More sharing options...
1gnas Posted April 1, 2015 Author Share Posted April 1, 2015 What is your PrestaShop version? Have you tried another font - helvetica or freeserif? Prestashop version: 1.6.0.9 Yes I tried these fonts. With Fresherif same situation, with Hevletica I get questionmarks "?" instead of letters. Link to comment Share on other sites More sharing options...
doekia Posted April 1, 2015 Share Posted April 1, 2015 The default is dejavusans but lithuania is not present on the country table, hence the PDFGenerator.php (line 35) forces the font to be helvetica. Change in classes/pdf/PDFGenerator.php the line: const DEFAULT_FONT = 'helvetica'; with const DEFAULT_FONT = 'dejavusans'; Be sure to regenerate your pdf once this line is changed PS_PDF_USE_CACHE should be 0 (Order / Invoice - last widget) Link to comment Share on other sites More sharing options...
faraonkicu Posted April 2, 2015 Share Posted April 2, 2015 (edited) I've got the same problem but with Polish language. I've changed this line const DEFAULT_FONT = 'dejavusans'; but still i don't have letters on invoice and delivery slip. Prestashop version 1.6.0.9. Please help... Invoice Delivery slip Edited April 2, 2015 by faraonkicu (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 2, 2015 Share Posted April 2, 2015 1gnas & faraonkicuCan you try to print the invoice in English, completely without accented characters? To reduce the problem to the fonts. You can also try to use the latest TCPDF library - http://sourceforge.net/projects/tcpdf/files/ Link to comment Share on other sites More sharing options...
faraonkicu Posted April 3, 2015 Share Posted April 3, 2015 Could you tell me where is TCPDF folder in prestashop? I can't find it. Thanks in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted April 3, 2015 Share Posted April 3, 2015 /tools/tcpdf Link to comment Share on other sites More sharing options...
faraonkicu Posted April 3, 2015 Share Posted April 3, 2015 It's not working, now when I click 'show invoice' or 'show delivery slip' in order i got white screen... Any other idea? Link to comment Share on other sites More sharing options...
faraonkicu Posted April 3, 2015 Share Posted April 3, 2015 OK it's working, now I've just updated fonts in tcpdf folder to 6.2.6 version. Tuk66 thanks for the tip! :-) Link to comment Share on other sites More sharing options...
1gnas Posted April 7, 2015 Author Share Posted April 7, 2015 Thank you tuk66 it solved the problem. This topic can be closed. Link to comment Share on other sites More sharing options...
edvinaszu Posted April 15, 2015 Share Posted April 15, 2015 (edited) 000012.pdf Hi, I have same problem.(PS1.6.0.14) I tryed to add tuk66 files in my html, but nothing changes, and make worst invoice. Maybie know how to fix it? I need download file tcpdf_6_2_6.zip and extract to tools/tcpdf . I done it but nothing hapened . Edited April 15, 2015 by edvinaszu (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now