PDF and pagenumbers

Author Message

Mads Ovesen

Thursday 10 March 2005 3:10:13 am

Hi,
I'm creating a PDF product sheet on the fly, and I'm using

{pdf(pageNumber, hash( identifier, "main",
                       stop, 1 ) )}

to generate pagenumbers at the bottom. But it keeps on starting at page 2. What's wrong?

- Mads

/m

Kåre Køhler Høvik

Friday 11 March 2005 1:57:47 am

Hi

Is the footer also missing from the first page ?
Make sure to have the following code at the start of your PDF templates :

{pdf(pageNumber, hash( identifier, "main",
                       start, 1 ) )}

Kåre Høvik

Mads Ovesen

Friday 11 March 2005 5:56:22 am

Yes it does show. If I put

{pdf(pageNumber, hash( identifier, "main",
                       start, 1 ) )}

at the start, I get #page / #total on every page. If I put

{pdf(pageNumber, hash( identifier, "main",
                       stop, 1 ) )}

at the bottom, I get 2/5 on first page, 3/5 on the second ...

/m

Mads Ovesen

Wednesday 23 March 2005 2:33:30 am

Hi,
If anyone is wants to know it works for me by writing

{pdf(pageNumber, hash( identifier, "main",
                       start, 1 ) )}

in the beginning and

{pdf(pageNumber, hash( identifier, "main", 
stop, 1))} 

at the end of the template.

Not quite sure why though.

/m

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 22:25:56
Script start
Timing: Jan 18 2025 22:25:56
Module start 'layout'
Timing: Jan 18 2025 22:25:56
Module start 'content'
Timing: Jan 18 2025 22:25:57
Module end 'content'
Timing: Jan 18 2025 22:25:57
Script end

Main resources:

Total runtime0.9093 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9063152.6250
Module start 'layout' 0.00620.0033 740.531339.4297
Module start 'content' 0.00940.8984 779.9609545.7578
Module end 'content' 0.90780.0014 1,325.718812.1875
Script end 0.9092  1,337.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3745160.0002
Check MTime0.00140.1488160.0001
Mysql Total
Database connection0.00090.103710.0009
Mysqli_queries0.854193.9360600.0142
Looping result0.00060.0710580.0000
Template Total0.873896.120.4369
Template load0.00210.231020.0010
Template processing0.871795.864920.4358
Template load and register function0.00020.023110.0002
states
state_id_array0.00110.116710.0011
state_identifier_array0.00130.141720.0006
Override
Cache load0.00170.1899280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.062820.0003
Fetch class attribute name0.00130.140650.0003
XML
Image XML parsing0.00060.071120.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00120.1282150.0001
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs