Automatic, dynamic PDF generation

Author Message

Eivind Marienborg

Wednesday 02 February 2005 3:01:43 am

I have read the docs I've found about PDF, but still haven't found anything about this:

Is there any functionality for generating PDF's "on the fly"? For instance having a link saying "View in PDF" the same way that we have "Print preview" with the layout/set/print?

Kristian Hole

Wednesday 02 February 2005 7:54:42 am

Yes. :) To view a PDF version of the content go to yoursite.com/content/pdf/42 where 42 is the nodeid of your object. (The nodeid is shown in details for a node in the admin-interface)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Carlos Abreu

Wednesday 02 February 2005 7:05:33 pm

Hi,

i can generate a dynamic PDF for a custom tpl file?

Thanks for the atention.

Kristian Hole

Thursday 03 February 2005 2:38:04 am

Hi.

Since PDFs are a completely different medium than the web, it uses separate templates.

I suggest you check out this page:
http://ez.no/ez_publish/documentation/incoming/pdf_export_tutorial

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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 31 2025 06:06:10
Script start
Timing: Jan 31 2025 06:06:10
Module start 'layout'
Timing: Jan 31 2025 06:06:10
Module start 'content'
Timing: Jan 31 2025 06:06:10
Module end 'content'
Timing: Jan 31 2025 06:06:10
Script end

Main resources:

Total runtime0.0177 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.0064 588.1328151.2109
Module start 'layout' 0.00640.0033 739.343836.6484
Module start 'content' 0.00960.0065 775.992294.1250
Module end 'content' 0.01620.0015 870.117233.9922
Script end 0.0176  904.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.6626140.0002
Check MTime0.00116.0996140.0001
Mysql Total
Database connection0.00084.468710.0008
Mysqli_queries0.004424.955830.0015
Looping result0.00000.097210.0000
Template Total0.00116.410.0011
Template load0.00094.876410.0009
Template processing0.00031.472910.0003
Override
Cache load0.00063.295510.0006
General
dbfile0.002715.420380.0003
String conversion0.00000.044640.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