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?
I think you can do it without using https://github.com/chrisglass/xhtml2pdf. What i did is, i use page break as below:
and CSS for h1 is
Now, you can get page count using