Description
The Python library could scan the number of pages created by HTML2PDF.js and compare this number with the actual number of pages in the printed PDF.
Problem
Sometimes/rarely we encounter edge cases when a printed PDF document has incorrectly split pages. Issues like these are rare but they exist undetected unless someone performs a visual inspection of the document.
Solution
Ensure that the page numbers in the printed PDF and what HTML2PDF.js's internal page count are the same.
Additional Information
We may need to expose the number from HTML2PDF.js in a better way.