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.