Forums / Developer / Turkish PDF Generation

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

eZ debug

Timing: Jan 18 2025 18:40:15
Script start
Timing: Jan 18 2025 18:40:15
Module start 'content'
Timing: Jan 18 2025 18:40:15
Module end 'content'
Timing: Jan 18 2025 18:40:15
Script end

Main resources:

Total runtime0.0208 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.6875180.8438
Module start 'content' 0.00700.0057 768.531397.9609
Module end 'content' 0.01270.0081 866.492274.7031
Script end 0.0208  941.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.8283120.0002
Check MTime0.00115.0625120.0001
Mysql Total
Database connection0.00094.417510.0009
Mysqli_queries0.003516.685540.0009
Looping result0.00000.100620.0000
Template Total0.007435.510.0074
Template load0.00073.491310.0007
Template processing0.006731.997710.0067
Override
Cache load0.00052.552410.0005
General
dbfile0.00188.5995100.0002
String conversion0.00000.029730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs