Printer Version as PDF possible?

Author Message

Ekkehard Dörre

Wednesday 14 January 2004 7:59:46 am

Hi,

i'm thinking about how to realize the same as the printer version

http://ez.no/layout/set/print/products/ez_publish_3

but as pdf e.g.

http://ez.no/layout/set/pdf/products/ez_publish_3

without building a 3000 custom pdf in admin.

Any ideas?

Thanks and greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Willie Seabrook

Thursday 15 January 2004 3:26:41 pm

I'm not sure how layout/set works... but It shouldn't be too hard.

I'd say the best way write a wrapper class around the template class that would pull the template specified for pdf print in override.ini just as usual. This class would then call html to pdf conversion functions (such as http://www.rustyparts.com/pdf.php) and output the file.

Then in your /layout/set/print code you would change the content header to binary/pdf or whatever and send the pdf data to the browser. Simple? Thoughts?

Regards,
Willie

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 19 2025 01:14:26
Script start
Timing: Jan 19 2025 01:14:26
Module start 'layout'
Timing: Jan 19 2025 01:14:26
Module start 'content'
Timing: Jan 19 2025 01:14:27
Module end 'content'
Timing: Jan 19 2025 01:14:27
Script end

Main resources:

Total runtime0.7642 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.1563152.6250
Module start 'layout' 0.00870.0024 741.781339.4453
Module start 'content' 0.01110.7517 781.2266523.1953
Module end 'content' 0.76280.0013 1,304.42198.3125
Script end 0.7641  1,312.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4501160.0002
Check MTime0.00130.1709160.0001
Mysql Total
Database connection0.00180.242110.0018
Mysqli_queries0.720194.2325540.0133
Looping result0.00050.0653520.0000
Template Total0.733696.020.3668
Template load0.00240.318120.0012
Template processing0.731295.682120.3656
Template load and register function0.00010.010510.0001
states
state_id_array0.00140.189010.0014
state_identifier_array0.00170.225320.0009
Override
Cache load0.00210.2697180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.066620.0003
Fetch class attribute name0.00110.149430.0004
XML
Image XML parsing0.00040.057420.0002
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00060.0816160.0000
String conversion0.00000.001040.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs