Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Page numbering support #21

Open
lprsd opened this issue Jan 2, 2022 · 1 comment
Open

Auto Page numbering support #21

lprsd opened this issue Jan 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lprsd
Copy link

lprsd commented Jan 2, 2022

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.

@captn3m0 captn3m0 added the enhancement New feature or request label Jan 2, 2022
@captn3m0
Copy link
Owner

captn3m0 commented Jan 5, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants