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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:17:47
Script start
Timing: Jan 19 2025 04:17:47
Module start 'layout'
Timing: Jan 19 2025 04:17:47
Module start 'content'
Timing: Jan 19 2025 04:17:47
Module end 'content'
Timing: Jan 19 2025 04:17:47
Script end

Main resources:

Total runtime0.5773 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 590.2891152.6250
Module start 'layout' 0.00430.0032 742.914139.4609
Module start 'content' 0.00750.5683 782.3750525.6016
Module end 'content' 0.57580.0014 1,307.97668.1563
Script end 0.5772  1,316.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.4792160.0002
Check MTime0.00110.1899160.0001
Mysql Total
Database connection0.00060.109310.0006
Mysqli_queries0.538893.3392540.0100
Looping result0.00040.0760520.0000
Template Total0.546794.720.2733
Template load0.00190.323120.0009
Template processing0.544894.378920.2724
Template load and register function0.00020.037810.0002
states
state_id_array0.00070.129710.0007
state_identifier_array0.00100.175520.0005
Override
Cache load0.00150.2663170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.083520.0002
Fetch class attribute name0.00100.170830.0003
XML
Image XML parsing0.00060.101620.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00140.2438180.0001
String conversion0.00000.001940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs