Jump to content
dimonas

PDF font problem [SOLVED]

Recommended Posts

Hello, i have problems with PDF font, if i write in my language etc:.

Žiūrėti -> in PDF --> ?i?r?ti

one more etc:.

Žaisti ---> in PDF -> ?aisti

 

How can i solve it ?

 

ANSWER:

 

 

open classes\pdf\PdfGenerator.php

 

and change const DEFAULT_FONT = 'helvetica'; to const DEFAULT_FONT = 'freeserif';

 

 

 

also replace the invoice.tpl with the file I attached in this email to correct the table structure.(pdf/invoice.tpl)

 

 

Thanks for this to Ventos312

post-407854-0-00139900-1350672570_thumb.jpg

invoice.htm

Edited by dimonas (see edit history)
  • Like 3

Share this post


Link to post
Share on other sites

This also works in PS 1.5.2. I tryed it - works like a charm. Ačiū už sprendimą.

  • Like 1

Share this post


Link to post
Share on other sites

Hello, i have problems with PDF font, if i write in my language etc:.

Žiūrėti -> in PDF --> ?i?r?ti

one more etc:.

Žaisti ---> in PDF -> ?aisti

 

How can i solve it ?

 

ANSWER:

 

 

open classes\pdf\PdfGenerator.php

 

and change const DEFAULT_FONT = 'helvetica'; to const DEFAULT_FONT = 'freeserif';

 

 

 

also replace the invoice.tpl with the file I attached in this email to correct the table structure.(pdf/invoice.tpl)

 

 

Thanks for this to Ventos312

you are the best  ;)

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More