Printing module - PDF generating makes national chars unreadable

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Vin

Printing module - PDF generating makes national chars unreadable

Post by Vin »

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
Last edited by Vin on Thu Feb 28, 2008 9:03 pm, edited 1 time in total.
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

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.:

Code: Select all

	
/**
	 * main font name
	 */
	define ("PDF_FONT_NAME_MAIN", "FreeSerif"); //vera
	
	//............................
	
	/**
	 * data font name
	 */
	define ("PDF_FONT_NAME_DATA", "FreeSerif"); //vera


Vilkis
nuno

Re: Printing module - PDF generating makes national chars unreadable

Post by nuno »

hi
please provide us cmsms verision a module version!

Best Regards
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

is it necessary in this case???  :)

CMS Made Simple 1.2.5 "Free Hill", module Printing 0.2.1

Vilkis
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm

Re: Printing module - PDF generating makes national chars unreadable

Post by reneh »

it works here!
ReneH 8-)
A search will save you hours waiting for an answer! Image
nuno

Re: Printing module - PDF generating makes national chars unreadable

Post by nuno »

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?
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

:o  -  NO!
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Printing module - PDF generating makes national chars unreadable

Post by Silmarillion »

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.
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

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
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Printing module - PDF generating makes national chars unreadable

Post by Silmarillion »

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.
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

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
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Printing module - PDF generating makes national chars unreadable

Post by Silmarillion »

Hi VIlkis, I updated the printing module today! Please test svn-version!

regards
Morten
vilkis

Re: Printing module - PDF generating makes national chars unreadable

Post by vilkis »

Thank you but I do not know how to use SVN  :(

Vilkis
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Printing module - PDF generating makes national chars unreadable

Post by Silmarillion »

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.
Locked

Return to “CMSMS Core”