pystitcher
pystitcher copied to clipboard
Auto Page numbering support
Want to be able to add page numbers to the generated PDF with font configuration. Use case - Printouts. Once this is done, easy to add a Table of Contents too. #6
I was exploring and found this as one option: https://github.com/vlad-anisov/numbering2pdf/blob/main/numbering2pdf/numbering2pdf.py It uses reportlab to generate empty numbered PDFs and merges those pages with the existing pages one by one.
Happy to work on this issue, if you suggest a preferred method (given your research) to implement this.
Let's go with the reportlab approach. Unsure about the start/stop numbering scheme though. Users would want that to be configurable? Especially if you're adding things like ToC/Cover pages, and want to keep them out of the numbering?
Maybe we can ignore that for the first iteration and just do pagenumber=PDF Page number. And one configuration that applies on top level (and can be overridden on a page level) (pagenumber: true|false).