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

Rsdev 240 pdf page numbers #65

Merged

Conversation

rs-fraser
Copy link
Contributor

This PR fixes the page numbering where the user has selected not to restart page numbering for each doc in a multi-doc or notebook export, by passing the existing length of the pdf doc into the pdf writer i.e for a new doc or when page numbering should restart each doc, the length is 0, otherwise it's the length of the existing doc.

Also rename the config property pageName to restartPageNumberingPerDoc throughout the front and back-end code, as pageName was very confusing.

And finally reduced the logging level for printing the pdf html input to debug since that's probably not something we need to log every time we export pdf as it could be very long.

… that contiguous page numbering across docs or notebooks is honoured
…ether the page numbering should restart for each doc in a multi-doc/notebook export. Calculate the page number correctly for multi-doc/notebook export to fix contiguous numbering. Change logging level for logging of document html data to avoid clogging logs.
…ort is set correctly based on the config option selected for page numbering.
@rs-nicof
Copy link
Contributor

The code looks good to me!

Copy link
Contributor

@mKowalski256 mKowalski256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change looks good to me, and works fine on test AWS build.

@rs-fraser rs-fraser merged commit 09eaf77 into rspace-os:main Jul 23, 2024
2 checks passed
@rs-fraser rs-fraser deleted the rsdev-240-pdf-page-numbers branch July 23, 2024 13:08
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants