Anuj Shah
Anuj Shah

Reputation: 1

How to use PrinceXML to align a div to the bottom of a page in a PDF

I have a div that renders on multiple versions of PDFs (using HTML and PrinceXML) and I am wondering how to align that div to the bottom of its page.

I have tried the float and such in the prince docs but cannot find any solution that works.

-prince-float: page; -prince-clear: end;

Chrome does not seem to register those attributes.

Also tried:

flow: static(flow-prince-footer)

Not really sure what to do!

Upvotes: 0

Views: 441

Answers (1)

A Burns
A Burns

Reputation: 91

I think you neet to add the following to your css

@page { @bottom { content: 'My footer at the bottom of the page'; font: bold 6pt 'tahoma', 'sans-serif'; } }

Upvotes: 0

Related Questions