Page 1 of 1

Printing module - PDF generating makes national chars unreadable

Posted: Thu Feb 28, 2008 7:16 pm
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

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Mar 02, 2008 5:54 pm
by Vin
bump

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 11:21 am
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

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 11:55 am
by nuno
hi
please provide us cmsms verision a module version!

Best Regards

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 1:04 pm
by vilkis
is it necessary in this case???  :)

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

Vilkis

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 1:57 pm
by reneh
it works here!

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 2:08 pm
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?

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 2:11 pm
by vilkis
:o  -  NO!

Re: Printing module - PDF generating makes national chars unreadable

Posted: Sun Jun 01, 2008 11:33 pm
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.

Re: Printing module - PDF generating makes national chars unreadable

Posted: Mon Jun 02, 2008 6:26 am
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

Re: Printing module - PDF generating makes national chars unreadable

Posted: Mon Jun 02, 2008 7:18 am
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.

Re: Printing module - PDF generating makes national chars unreadable

Posted: Mon Jun 02, 2008 7:52 am
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

Re: Printing module - PDF generating makes national chars unreadable

Posted: Mon Jun 02, 2008 2:11 pm
by Silmarillion
Hi VIlkis, I updated the printing module today! Please test svn-version!

regards
Morten

Re: Printing module - PDF generating makes national chars unreadable

Posted: Mon Jun 02, 2008 2:20 pm
by vilkis
Thank you but I do not know how to use SVN  :(

Vilkis

Re: Printing module - PDF generating makes national chars unreadable

Posted: Tue Jun 03, 2008 7:38 am
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.