Hi everyone:
I have installed webERP successfully. However, I find printing PDF invoices and packing lists in Arabic / Persian font problematic as Persian writings such as address and names appear blank in the PDF file produced.
Please note I have setup the user user language as Persian and set the pdf printing to Asian languages Thai/ Arabic etc.
I am not sure what else I should be doing.
I look forward to your guidance.
regards,
Kourosh
Hi Kourosh,
I have same problem. Have you found any solution? If you know any solution, please post it. It is great help.
Thanks
Sam
(02-18-2012 06:47 PM)Kourosh Wrote: [ -> ]Hi everyone:
I have installed webERP successfully. However, I find printing PDF invoices and packing lists in Arabic / Persian font problematic as Persian writings such as address and names appear blank in the PDF file produced.
Please note I have setup the user user language as Persian and set the pdf printing to Asian languages Thai/ Arabic etc.
I am not sure what else I should be doing.
I look forward to your guidance.
regards,
Kourosh
Hi Everybody,
Anybody have any idea please post it.
Thanks
SAMU
you must use a localised version of adobe acrobat reader with persian fonts installed.
Try use GNU FreeFont ( freeserif, freesans, freemono ) or "DejaVu fonts" instead "times" font and set the pdf printing to Latin Western Languages ( for this option you will change default font).
http://www.gnu.org/software/freefont/ranges/
http://dejavu-fonts.org/wiki/Main_Page
Download last tcpdf:
http://www.tcpdf.org/
It contains these fonts.
Unzip it into webERP/includes/tcpd/ folder.
Edit file:
webERP/includes/class.pdf.php
Find out these lines:
case 0:
$UserPdfFont = 'times';
break;
case 1:
$UserPdfFont = 'javierjp';
break;
case 2:
$UserPdfFont = 'javiergb';
break;
and change
$UserPdfFont = 'times';
to
$UserPdfFont = 'freeserif';
or to other fonts from webERP/includes/tcpdf/fonts/ folder.
I used freeserif: English, Arabic and Cyrillic in the same pdf are without problem.
Would be interested to know the file size of a typical invoice made with these fonts please?
Thanks
(12-06-2012 09:14 AM)phil Wrote: [ -> ]Would be interested to know the file size of a typical invoice made with these fonts please?
Thanks
Look: [
attachment=156]
Well this is pretty cool!!
I am afraid my understanding of this area is a bit weak and it is quite complicated for a simple guy... do you think we should modify this and bundle this font ?
Does it work on windows as well??
Which files can go in the current distribution?
Looks like it works for Greek/Russian/Arabic ... any others?
On playing with this - a typical small invoice using freeserif font is about 57kb where the same invoice using times font is just 12kb - it is probably no big deal with increasing internet speed but I am little unsure how to go ... maybe we should bundle the font and make it another option? Anyone any points?