Closed Julynx closed 7 months ago
Interestingly the After
text actually appears to be in the PDF (e.g. from Page.get_text()
) but is not displaying.
Have created MuPDF bug for this: https://bugs.ghostscript.com/show_bug.cgi?id=707323
This is now fixed in MuPDF master.
tests/test_story.py:test_2753() checks this bug is fixed in PyMuPDF-1.23.7 so marking this as fixed in the next release.
That's awesome. Thanks, guys!
Fixed in 1.23.7.
Describe the bug
Story.write
andStory.write_with_links
will ignore everything after the first<p style="page-break-after: always;"></p>
in the html.To Reproduce
Having the sample HTML content:
Create a story from the HTML content
Write the story to the document and save it to a PDF file
The PDF contains only:
Page 1/1
Expected behavior
Page 1/2
Page 2/2
Page 1/1
In no case should it just drop everything before the page break if the HTML happens to have one, which is the observed behavior for me.
Screenshots
Notice how the PDF just has "Before". There is no "After" text and only one page, besides the HTML having the "After" paragraph after the page break. The code used is the one detailed in "To Reproduce".![Screenshot](https://github.com/pymupdf/PyMuPDF/assets/64993676/167a9bfa-302d-4847-843a-390cdea2f1c0)
Your configuration