Turkish PDF Generation

Author Message

jb web

Wednesday 07 January 2009 8:36:02 am

Dear all,

I'm trying to generate PDF in turkish language, but special characters don't show properly.
I'm using EZP 3.8.9.

Has anyone already managed to do it ? I tried to set

[PDFGeneral]
OutputCharset=utf-8

in a <i>pdf.ini.append.php</i> file (and many other charset...), but this did not work.

I also tried a PDF generation with EZP 3.9.5, but still don't work for turkish either.

Can anyone help ?

Thanks in advance

Ivo Lukac

Wednesday 07 January 2009 9:17:50 am

Hello,

Long time ago played with this and only conclusion was that somewhere deep in eZ pdf lib something is very bad with string conversion. Didn't have time to check it better...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

André R.

Wednesday 07 January 2009 9:24:40 am

It's not in the ez code, its caused by the php functions used by it.
So only latin 1 supported until we get time to rewrite the whole thing using ezodf code (open office integration).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

jb web

Friday 09 January 2009 1:35:23 am

Ok, so i guess I'll propose à HTML format for languages that are not latin 1...

I'm using the pdf output mostly to let the user prints his page.
I think this is my best option.

Anyone have other suggestions ?

Thanks in advance

Ivo Lukac

Friday 09 January 2009 1:44:48 am

Just change pagelayout_print.tpl (eg. use different header and footer).
Default functionality of eZ is to invoke this template with "/layout/set/print" part of url which is added when user calls javascript.print() function.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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 18 2025 19:25:21
Script start
Timing: Jan 18 2025 19:25:21
Module start 'layout'
Timing: Jan 18 2025 19:25:21
Module start 'content'
Timing: Jan 18 2025 19:25:22
Module end 'content'
Timing: Jan 18 2025 19:25:22
Script end

Main resources:

Total runtime0.7514 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.3359152.6250
Module start 'layout' 0.00610.0043 741.960939.4297
Module start 'content' 0.01040.7395 781.3906605.0313
Module end 'content' 0.74990.0015 1,386.421912.1875
Script end 0.7514  1,398.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4610160.0002
Check MTime0.00130.1775160.0001
Mysql Total
Database connection0.00070.096410.0007
Mysqli_queries0.688591.6270650.0106
Looping result0.00090.1171630.0000
Template Total0.716195.320.3580
Template load0.00210.279620.0011
Template processing0.714095.012720.3570
Template load and register function0.00040.052210.0004
states
state_id_array0.00140.192810.0014
state_identifier_array0.00140.188920.0007
Override
Cache load0.00170.2326300.0001
Sytem overhead
Fetch class attribute can translate value0.00090.122730.0003
Fetch class attribute name0.00140.181970.0002
XML
Image XML parsing0.00110.149730.0004
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00100.1273240.0000
String conversion0.00010.009340.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs