1

Hello,

I have the following document structure:
<page backleft="10mm" backtop="10mm" backright="10mm" backbottom="10mm" backimg="html2pdf/watermark.jpg" backimgx="center" backimgy="bottom" backimgw="100%">
lots, and lots dynamic of contents goes here
<page_footer>[[page_cu]]</page_footer>
</page>


The contents is automatically divided into several pages of the PDF document, but unfortunately the page number is displayed only at the bottom of the last page.

How to add a page number to every page?

Regards,
Jakub

2

And one more thing to be clear: unfortunately the numbering must be done automatically. Contents is dynamic and every time the amount of pages will be different, so dividing the contents into several <page> tags manually is not an option.

Jakub

3

Ancien pseudo : lolo

4

Do you mean the "footer" property of the "page" tag? Yes, I did.

Changing html code to:
<page backleft="10mm" backtop="10mm" backright="10mm" backbottom="10mm" 
backimg="html2pdf/watermark.jpg" backimgx="center" backimgy="bottom" backimgw="100%" footer="page"> 
lots, and lots dynamic of contents goes here 
<page_footer>[[page_cu]]</page_footer> 
</page> 


or

<page backleft="10mm" backtop="10mm" backright="10mm" backbottom="10mm" 
backimg="html2pdf/watermark.jpg" backimgx="center" backimgy="bottom" backimgw="100%" footer="page"> 
lots, and lots dynamic of contents goes here 
<page_footer></page_footer> 
</page> 


or

<page backleft="10mm" backtop="10mm" backright="10mm" backbottom="10mm" 
backimg="html2pdf/watermark.jpg" backimgx="center" backimgy="bottom" backimgw="100%" footer="page"> 
lots, and lots dynamic of contents goes here 
</page> 


does not add a page number to every page that is dinamically created. More over (as expected) removing "[[page_cu]]" also removes page number from the last page.

5

no..
Tag page_footer

It helps defines the footer that should apply to a tag <page>.

Its definition must necessarily be located just after the opening of the tag and the definition of <page> top (<page_header>).

It can contain any valid HTML.
It is ABSOLUTELY necessary to indicate the height footer, giving it via the property backbottom tag page.

Ancien pseudo : lolo

6

thank you very much. reading with understanding is not (as you can see) my best feature smile