Forums / General / PDF generation - has anyone ever made it work?

PDF generation - has anyone ever made it work?

Author Message

zurgutt -

Monday 05 February 2007 6:02:52 pm

I have a 3.8.3 site with content in utf-8. Content is mainly in norwegian.

In generated PDF the accented norwegian chars are garbage.

This bug has been unfixed for nearly TWO YEARS: http://issues.ez.no/6574

I have tried the suggested fixes in comments of this bug, best I could do was to convert title and main content back to readable iso-8859-1 using patch by Valentin Doroschuk. No luck with footer and anyway this would not work for any other language which does have all its chars in iso-8859-1. Setting PDF output to utf-8 crashes it.

Additionally sometimes output is not generated depending on page content - it especially seems to not like tables, most pages with a table in content have blank pdf's.

Has anyone worked around these bugs successfully? If so I'd be very thankful for a patch or some kind of instructions.. I have tried to look at code but not knowing anything about pdf encoding it is far too complex to find problems for me..

Certified eZ developer looking for projects.
zurgutt at gg.ee

Kristof Coomans

Monday 05 February 2007 11:35:57 pm

I know it's a bit cumbersome, but maybe an extra step to ODF can be easier ( http://www.xml.com/pub/a/2006/01/11/from-microsoft-to-openoffice.html ).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

zurgutt -

Tuesday 06 February 2007 3:49:46 am

It crossed my mind actually. Export of ez to OpenOffice format supposedly works (never tried myself) and i know that OO can export pdf too, probably reliably. Has someone gone this path? Hints about setup would be helpful.

Certified eZ developer looking for projects.
zurgutt at gg.ee

J-A Eberhard

Tuesday 06 February 2007 7:51:33 am

Having the same problem with UTF-8 and pdf export.
As you did I tried the hack provided in the bug report but I had finally to get back to non-UTF-8 format for portal in need of PDF generation.
Hoping that the integration of an OOo convertion engine in eZ will solve it.

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch