PDF generation from the view Templates

Author Message

Xavier Portebois

Tuesday 15 May 2007 2:07:57 am

Hello everyone.

I need to put the PDF generation on a web site.

There are many different classes, with special HTML rendering, so there are also many view-templates, therefore I want to avoid rewriting each view-template in a pdf-template.

I just try to make an override on the source "node/view/pdf.tpl" to a view-template (so with HTML code), and the PDF rendered shows me the HTML tags, like :

<h1>Hello , World</h1> <p>Lorem ipsum dolor sit amet...</p>

Is there a way to allow HTML rendering in the generated PDF ? Or must I rewrite each view-template (HTML tags) to a pdf-template (PDF features) ?

Thanks by advance,

:xav.

Xavier Portebois

Thursday 17 May 2007 11:34:27 pm

*bump*

john davis

Sunday 31 January 2010 4:05:06 pm

Any solution for this problem????

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 11:20:33
Script start
Timing: Jan 18 2025 11:20:33
Module start 'layout'
Timing: Jan 18 2025 11:20:33
Module start 'content'
Timing: Jan 18 2025 11:20:34
Module end 'content'
Timing: Jan 18 2025 11:20:34
Script end

Main resources:

Total runtime1.5620 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1484152.6406
Module start 'layout' 0.00610.0037 741.789139.4766
Module start 'content' 0.00981.5507 781.2656466.0156
Module end 'content' 1.56050.0014 1,247.28138.1406
Script end 1.5619  1,255.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2223160.0002
Check MTime0.00170.1077160.0001
Mysql Total
Database connection0.00100.066810.0010
Mysqli_queries1.518297.1957570.0266
Looping result0.00080.0505550.0000
Template Total1.529297.920.7646
Template load0.00190.123920.0010
Template processing1.527297.771820.7636
Template load and register function0.00020.014610.0002
states
state_id_array0.00140.088610.0014
state_identifier_array0.00140.086520.0007
Override
Cache load0.00160.1022150.0001
Sytem overhead
Fetch class attribute can translate value0.00090.059420.0005
Fetch class attribute name0.00110.073630.0004
XML
Image XML parsing0.00030.016420.0001
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00070.0435100.0001
String conversion0.00000.000540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs