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

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

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0391152.6406
Module start 'layout' 0.00660.0039 740.679739.4766
Module start 'content' 0.01050.0047 780.156393.3359
Module end 'content' 0.01520.0019 873.492234.3047
Script end 0.0171  907.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003923.0544140.0003
Check MTime0.002414.0746140.0002
Mysql Total
Database connection0.00116.704910.0011
Mysqli_queries0.003319.564030.0011
Looping result0.00000.087810.0000
Template Total0.00158.810.0015
Template load0.00084.473210.0008
Template processing0.00074.308710.0007
Override
Cache load0.00063.238110.0006
General
dbfile0.00031.794080.0000
String conversion0.00000.046040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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