![]() |
|
PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - Printable Version +- webERP Forum (http://www.weberp.org/forum) +-- Forum: webERP Discussion (/forumdisplay.php?fid=1) +--- Forum: How To ? (/forumdisplay.php?fid=6) +--- Thread: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) (/showthread.php?tid=88) |
PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - Kourosh - 02-18-2012 06:47 PM 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 RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - samudaya - 06-20-2012 01:50 PM 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: RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - samudaya - 07-06-2012 03:55 PM Hi Everybody, Anybody have any idea please post it. Thanks SAMU RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - phil - 07-06-2012 04:01 PM you must use a localised version of adobe acrobat reader with persian fonts installed. RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - passat - 12-06-2012 09:05 AM 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. RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - phil - 12-06-2012 09:14 AM Would be interested to know the file size of a typical invoice made with these fonts please? Thanks RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - passat - 12-07-2012 12:33 AM (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? Look: [attachment=156] RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - phil - 12-08-2012 08:06 PM 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? RE: PDF printing Invoice / Packing list in Other Language (Persian / Arabic) - phil - 12-24-2012 04:58 PM 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? |