I'm using Borb for Python. I can’t find in the examples or documentation how to create a header and footer for multi-page documents. I would also like the footer to indicate the current page of all. Can someone share an example?
https://github.com/jorisschellekens/borb-examples#93-creating-a-stunning-flyer There is an example here with creating a footer, but it doesn’t say how to place it on several pages
disclaimer: I am the author of
borb, the library used in the answerThis is a quick little test I wrote to add page numbers to a
DocumentThe key here is the following code:
This code gets the number of
Pageobjects currently in theDocument.The loop below it then gets each
Pagein turn, and adds content to it (aParagraph) at a fixed location (the bottom right corner).