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

Bug: StrictDoc/HTML2PDF: 3 pages instead of 5 #2037

Open
stanislaw opened this issue Dec 24, 2024 · 0 comments
Open

Bug: StrictDoc/HTML2PDF: 3 pages instead of 5 #2037

stanislaw opened this issue Dec 24, 2024 · 0 comments

Comments

@stanislaw
Copy link
Collaborator

Describe the bug

There is a timing issue in the HTML2PDF when sometimes the pages are not printed correctly. Most of the content gets glued to the table of contents when normally TOC is a separate page. Also, the front page is missing.

  File "/Users/Stanislaw/workspace/projects/strictdoc-project/strictdoc/tests/integration/features/html2pdf/05_generate_bundle_document/test_pdf.py", line 5, in <module>
    assert len(reader.pages) == 5, reader.pages
AssertionError: [PageObject(0), PageObject(1), PageObject(2)]

To Reproduce

run_times 100 exit_first invoke ti --html2pdf --focus 05_generate_bundle_document

Expected behavior

With the integration test above, the result must always be 5 pages, not sometimes 3.

Screenshots

Broken PDF example: bundle.pdf

Environment

Reproduces occasionally on both macOS locally and Linux GitHub Actions.

@stanislaw stanislaw changed the title Bug: Bug: StrictDoc/HTML2PDF: 3 pages instead of 5 Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant