Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.4
Component:
User interface
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
24 Mar 2009 at 20:51 UTC
Updated:
8 Apr 2009 at 21:16 UTC
Hi,
please, how setting print to PDF. If i'am print node to PDF with czech characters, replace characters (as ě, š, č, ř, ť, ď ) to "?".
I'am test change font helvetica or times. But every even.
Sorry my english
Radek
| Comment | File | Size | Author |
|---|---|---|---|
| nový-1.png | 110.71 KB | Lion.creek |
Comments
Comment #1
dman commentedI don't know this module, but it seems your server where the PDF is produced must be configured to have access to and use the correct fonts.
Are you in control of the server? Or do you need the server administrator to install internationalization support? Most web servers do not have or need many graphic libraries and utilities installed, and supporting international character sets is optional.
Comment #2
jcnventuraComment #3
jcnventuraHi,
From the screenshot you seem to be using dompdf. This library doesn't support Unicode, and the best I managed to do was to make it support ISO-8859-1. As can be seen in Wikipedia, this doesn't include support for the Czech alphabet.
The font selections you mentioned above are irrelevant as they only apply to TCPDF (as clearly stated in the description).
Try one of the following:
1. Simple: Use TCPDF and choose a Unicode Font. Note that helvetica and times are non-Unicode fonts. Expect the generated PDF to be >700Kb.
2. Really, really complicated. Patch dompdf as explained in here, and then change the utf8_decode() call in print_pdf/print_pdf.pages.inc to either iconv() or mb_convert_encoding(). I never tested this, so you're on your own on this option.
João
Comment #4
jcnventuraNo further info in two weeks. Closing the issue.
João