Jump to content

PDF invoice displays incorrectly


Recommended Posts

PDF invoice display Unicode character incorrectly. I configured in the back office the parameters for PDF: font times, code CP1258 (for Vietnamese language), but characters in PDF invoice were incorrect.
How can I configure this problem. Thanks developer team.

Link to comment
Share on other sites

I did the same way as: http://www.prestashop.com/forums/viewreply/15410/
for version R3, it worked well, but version 1.0.0.8 doesn’t work.
Then I saw that all translation data files (in \themes\prestashop\lang and \translations\vn) were encoded in UTF-8, in version R3. But in V1.0.0.8, they were not encoded in UTF-8. I opened them in editor by UTF-8 encoding, they were displayed incorrectly. So that, all encoding conversion in making PDF invoice files will fail.
Can someone help me?

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

How about using this php lib instead? I think that temporary you can integrate this lib into /tools directory and use it in the case generating the invoice.

http://sourceforge.net/project/showfiles.php?group_id=128076

To Prestashop developer: Could you also consider integrate this into the future version? I hope that it would help solving the problems of other languages too. Thanks.

Cheers,

Middlevn

Link to comment
Share on other sites

Dear guys,

Actually, I've just found it while searching in the net. For more information you can reference here:

http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf

Also, there are many examples included in the site that you can try online or you can see the code in the /examples folder of the package. I would be easier for you if you can study from can study from them and the info available on the site. When I have more free time, I will try and show you in details.

Cheers.

Link to comment
Share on other sites

×
×
  • Create New...