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