Forums / General / pdf export with vietnamese language

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

pdf export with vietnamese language

Author Message

Nguyen Tien Hy

Monday 07 November 2005 6:09:18 am

Dear all,
I setup my site with vietnamese language (unicode utf-8).
I try to export pdf file (like /content/pdf/<node_id>). The font appearance is not correct. I cannot read vietnamese letters.

Łukasz Serwatka

Monday 21 November 2005 1:06:48 am

Hi,

Probadly you will need correct fonts (with vietnamese charset support).

To make fonts work you should:
- put xxx.ttf and php_xxx.font into 'lib/ezpdf/classes/fonts'
- override 'node/view/pdf.tpl
- the first line in your 'pdf.tpl' should be:
{pdf(set_font, hash( name, "XXX" ) )}

Look also on:

http://ez.no/products/ez_publish_cms/documentation/incoming/truetype_font_in_pdf

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog