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.