-
Notifications
You must be signed in to change notification settings - Fork 361
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
Getting a nullptr exception, reproduction case included #594
Comments
hi @ThomHurks , thank you for providing a minimal test case. |
Thanks for the test case! After much debugging (at least six hours!), it turns out the core problem is that content (the last table row specifically) is being repeated where it shouldn't be in the page margins (not visibly) (and the accessibility code doesn't act well on this bug). This is similar to #458. I was able to finally reproduce in a smaller sample and I have committed this as a (failing currently) test case. I will continue working on this to fix it. Thanks again. |
Thanks a lot for the help, @danfickle! That sounds like a die-hard debugging session. Great work you're doing here 👍 |
This fixes repeating content in page margins when line-height is other than one. It also fixes the PDF UA crash caused by the repeating content. However, it is a behavior changing fix. Documents with text split over two pages (usually undesired) will now get a forced page break before the split text.
Hi @ThomHurks, I have added PR #610 that fixes this problem. However, I just need to create some more tests before merging and then I can do a release finally. |
With changes to get it working and test proof.
@danfickle Thanks a lot! Amazing job 👌 |
Hi!
First of all, it's been great using your library. Good work!
I noticed that with certain content (part of the content I include in the HTML is generated) I'm getting a crash when the PDF is generated. I managed to reduce the problem to a case that is pretty minimal I think;
https://github.com/ThomHurks/openhtmltopdfcrash
The nullpointer exception happens when OpenHtmlToPdf calls
org.apache.pdfbox.cos.COSArray.add(COSArray.java:62)
If you need any help in figuring out the problem, please let me know!
Full stacktrace:
The text was updated successfully, but these errors were encountered: