Is there a posibility to show the pagenumber with django pisa just for two or more pages? The template for showing up pagenumber looks like this:
<div id="footerContent">
<p>Page <pdf:pagenumber></p>
</div>
I think it's necessary to get the number of pages, before they are processed by pisa. Any option to use an if/else statement like this pseudo:
if pages > 1:
...
else:
...
If you want to display e.g. Page 1/5 (page one of five) it's also necessary to get the count of pages ?! No solution in pisa for that?
This is not possible in the current version of python-pisa. There is however some patches for it. If you use the version of pisa or xhtml2pdf from this github you will be able to get total number of pages.
https://github.com/chrisglass/xhtml2pdf
My template footer looks like this: