magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Issue in PDF files for Unicode (non-latn) languages #2766

Closed sIiiS closed 8 years ago

sIiiS commented 8 years ago

In Magento 2 same as Magento 1.x we have issue with PDF files... for example in invoices when we generate a PDF and open it, we see some non-understanding characters!! Please solve it, this is very bad issue for us An example attached for better understanding! packingslip2015-12-19_19-38-08.pdf

orlangur commented 8 years ago

Did you try to use non-default font? From http://stackoverflow.com/questions/14379626/japanese-characters-on-magento-pdf it looks like a silver bullet suitable for all languages could not exist.

Does LinLibertin font https://github.com/magento/magento2/blob/077584c99ebb8007cad176c3b9a0144a05c259cd/app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php#L854 contain characters used in your invoice at all?

Pakkapao commented 8 years ago

This is similar to #1145

I'm currently using non-default font for my site. It would be great if Magento 2 could support all languages out of box.

sIiiS commented 8 years ago

@orlangur I did test with non-default font, attached, please see... characters are visible but they are separate of together and this is another problem! Tested with several fonts and in all of them the same

In my language, the letters of the word is not separate of them same as english, but in the sample you can see they are separate!

packingslip2015-12-21_11-08-20.pdf

@adzminz your language is same as english for letters and words

NadiyaS commented 8 years ago

This issue is closed as duplicate of #1145.

lics1217 commented 1 week ago

I also encountered a similar problem when exporting Japanese pdf. I used the following two language packs to solve the problem。

/**

/**