Long article to be divided into pages for PDF print.

Author Message

Softriva .com

Wednesday 24 January 2007 1:14:47 pm

I have a long article. I would like to generate a .pdf file for this article.

How can I generate .pdf on the fly
How can make this content be separated into multiple chunks even if the page is not empty.

OOzy

Kristof Coomans

Thursday 25 January 2007 1:06:51 am

Hi OOzy

I guess you can use the pdf operator for this and new_page: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_pdf_functions/new_page

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 21:14:25
Script start
Timing: Jan 18 2025 21:14:25
Module start 'layout'
Timing: Jan 18 2025 21:14:25
Module start 'content'
Timing: Jan 18 2025 21:14:26
Module end 'content'
Timing: Jan 18 2025 21:14:26
Script end

Main resources:

Total runtime0.8775 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.0079 589.2734152.6563
Module start 'layout' 0.00790.0031 741.929739.4922
Module start 'content' 0.01100.8651 781.4219520.9453
Module end 'content' 0.87600.0014 1,302.36728.2813
Script end 0.8774  1,310.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3933160.0002
Check MTime0.00150.1734160.0001
Mysql Total
Database connection0.00080.093610.0008
Mysqli_queries0.834595.1061540.0155
Looping result0.00050.0577520.0000
Template Total0.842996.120.4214
Template load0.00220.250620.0011
Template processing0.840795.805420.4203
Template load and register function0.00010.015210.0001
states
state_id_array0.00110.128710.0011
state_identifier_array0.00130.145020.0006
Override
Cache load0.00180.2004110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.104720.0005
Fetch class attribute name0.00130.149830.0004
XML
Image XML parsing0.00060.073320.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00090.1029160.0001
String conversion0.00000.000940.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
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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