Printing module - PDF generating makes national chars unreadable
Printing module - PDF generating makes national chars unreadable
Hello,
I've got this issue with printing module - national chars (in my case řčůňěďáíš) are in the PDF generated as squares. Am I the only one having this problem?
Regards,
Vin
I've got this issue with printing module - national chars (in my case řčůňěďáíš) are in the PDF generated as squares. Am I the only one having this problem?
Regards,
Vin
Last edited by Vin on Thu Feb 28, 2008 9:03 pm, edited 1 time in total.
Re: Printing module - PDF generating makes national chars unreadable
If you have this issue then do the following:
set PDF_FONT_NAME_MAIN and PDF_FONT_NAME_DATA to FreeSerif in /modules/Printing/tcpdf/config/tcpdf_config.php
i.e.:
Vilkis
set PDF_FONT_NAME_MAIN and PDF_FONT_NAME_DATA to FreeSerif in /modules/Printing/tcpdf/config/tcpdf_config.php
i.e.:
Code: Select all
/**
* main font name
*/
define ("PDF_FONT_NAME_MAIN", "FreeSerif"); //vera
//............................
/**
* data font name
*/
define ("PDF_FONT_NAME_DATA", "FreeSerif"); //vera
Vilkis
Re: Printing module - PDF generating makes national chars unreadable
hi
please provide us cmsms verision a module version!
Best Regards
please provide us cmsms verision a module version!
Best Regards
Re: Printing module - PDF generating makes national chars unreadable
is it necessary in this case??? 
CMS Made Simple 1.2.5 "Free Hill", module Printing 0.2.1
Vilkis

CMS Made Simple 1.2.5 "Free Hill", module Printing 0.2.1
Vilkis
Re: Printing module - PDF generating makes national chars unreadable
it works here!
ReneH 
A search will save you hours waiting for an answer!

A search will save you hours waiting for an answer!

Re: Printing module - PDF generating makes national chars unreadable
vilkis wrote: is it necessary in this case???
CMS Made Simple 1.2.5 "Free Hill", module Printing 0.2.1
Vilkis
I have a question:
Vilkis and Vin it is same persone?
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
Re: Printing module - PDF generating makes national chars unreadable
the freeserif font is not included in the distribution as my experience was that foreign chars worked in vera. I'm from a country with strange "chars" myself and they always worked with vera, but if freeserif or freesans is more general, I have no problem switching to that!
Would that solve the problem?
m.
Would that solve the problem?
m.
Re: Printing module - PDF generating makes national chars unreadable
I forgot to mention that I updated tcpdf (PHP class that is used by Printing module) from original site. The Printing module should be also uptdated when the tcpdf update is released.
Vera does not have as many foreign chars as freeserif.
Silmarillion, if you look at http://www.tecnick.com/pagefiles/tcpdf/example_008.phps you will see that Freeserif is used in that example. Try to replace FreeSerif with vera in that example and you will see how foreing chars works in vera.
Vilkis
Vera does not have as many foreign chars as freeserif.
Silmarillion, if you look at http://www.tecnick.com/pagefiles/tcpdf/example_008.phps you will see that Freeserif is used in that example. Try to replace FreeSerif with vera in that example and you will see how foreing chars works in vera.
Vilkis
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
Re: Printing module - PDF generating makes national chars unreadable
I will check it out, thank you!
I do actually keep tcpdf updated, but they release new updates extremely often, sometimes every day, so I may not always do it at once.
m.
I do actually keep tcpdf updated, but they release new updates extremely often, sometimes every day, so I may not always do it at once.
m.
Re: Printing module - PDF generating makes national chars unreadable
Silmarillion, I do not force you to update printing module every day. 
Useful module! I use it for generating PDF not only from content.
I can choose among exporting appropriate data to PDF or Excel, now.
I choose exporting to Excel if I have more than 4 columns in table, because PDF is not generated correctly in this case. However I almost found how to fix it in tcpdf module.
Vilkis

Useful module! I use it for generating PDF not only from content.
I can choose among exporting appropriate data to PDF or Excel, now.
I choose exporting to Excel if I have more than 4 columns in table, because PDF is not generated correctly in this case. However I almost found how to fix it in tcpdf module.
Vilkis
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
Re: Printing module - PDF generating makes national chars unreadable
Hi VIlkis, I updated the printing module today! Please test svn-version!
regards
Morten
regards
Morten
Re: Printing module - PDF generating makes national chars unreadable
Thank you but I do not know how to use SVN 
Vilkis

Vilkis
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
Re: Printing module - PDF generating makes national chars unreadable
that't ok... version 1.3 of the cms will come out in a few days, and with that the new version of the Printing-module. I've had several reports, that it works.
Stay tuned!
m.
Stay tuned!
m.