Forums / Developer / Printer Version as PDF possible?

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

eZ debug

Timing: Jan 18 2025 22:26:12
Script start
Timing: Jan 18 2025 22:26:12
Module start 'content'
Timing: Jan 18 2025 22:26:13
Module end 'content'
Timing: Jan 18 2025 22:26:13
Script end

Main resources:

Total runtime0.6116 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.8281180.8359
Module start 'content' 0.00420.6027 769.6641528.2734
Module end 'content' 0.60690.0047 1,297.937542.2578
Script end 0.6116  1,340.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00250.4110140.0002
Check MTime0.00120.1900140.0001
Mysql Total
Database connection0.00050.074710.0005
Mysqli_queries0.575694.1034550.0105
Looping result0.00050.0803530.0000
Template Total0.589796.420.2948
Template load0.00190.317820.0010
Template processing0.587796.085320.2938
Template load and register function0.00010.017310.0001
states
state_id_array0.00060.097910.0006
state_identifier_array0.00060.100820.0003
Override
Cache load0.00160.2618180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.083420.0003
Fetch class attribute name0.00100.166830.0003
XML
Image XML parsing0.00090.144820.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00180.2922180.0001
String conversion0.00000.000830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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