osTicket / osTicket-1.7

osTicket-1.7
GNU General Public License v2.0
232 stars 178 forks source link

Printing to PDF - utf8 fonts are not visible #846

Open PawelBaczkiewicz opened 10 years ago

PawelBaczkiewicz commented 10 years ago

Hi,

Feature with printing to PDF does not support UTF-8 coding.

For example, I have text: "Za pośrednictwem znaku..."

In PDF it is printed as: "Za po"

After signs: "ś", "ł", "ń" (and maybe more), text is cut to the end of the line (not printed in PDF).

I saw other issues (closes) similar to this, but this is still unresolved. Other related issues: https://github.com/osTicket/osTicket-1.7/issues/756 https://github.com/osTicket/osTicket-1.7/pull/765

ntozier commented 10 years ago

The FPDF library does not support UTF-8. However someone wrote a class to extend it which adds in UTF-8 support. It's available here: http://www.fpdf.org/en/script/script92.php

PawelBaczkiewicz commented 10 years ago

That is cool - I hope it will be applied in following versions. btw. There is another very powerful library called tcpdf - it supports everything and give a powerful options if needed. Link here: http://www.tcpdf.org/examples.php

protich commented 10 years ago

The upcoming version uses mPDF.

greezybacon commented 10 years ago

Just wanna make it clear that http://github.com/osTicket/osTicket-1.8 uses mPDF complete with UTF-8 support