Skip to content

pdfium5 upgrade and workaround for pdfs with broken Page structrues - #1033

Open
jimporter-droid wants to merge 4 commits into
wonday:masterfrom
jimporter-droid:wip/pdfium5
Open

pdfium5 upgrade and workaround for pdfs with broken Page structrues#1033
jimporter-droid wants to merge 4 commits into
wonday:masterfrom
jimporter-droid:wip/pdfium5

Conversation

@jimporter-droid

Copy link
Copy Markdown

We had an occasional crash report in our apps around rn-pdf. While I couldn't find a definitive cause I did see a similar issue that had no resolution but someone shared an example pdf. I made a repro app and could confirm that the sample pdf did not work but a separate correct sample pdf did work. To solve for the crash around the broken pdf I found issues of a similar nature that had been resolved in pdfviewer. So I performed the upgrade and solved an issue around a race condition when handling the pdfs with a broken page structure. Everything seems very stable and I can reliably load either type of pdf on cold startup or warm startup or HMR switch back and forth of the asset.

Let me know if anything needs additional work before merging. We have this as a patch in our upcoming native release so I'll have some more data on whether or not the crash in production is solved by this upgrade.

…gradle repository that does not seem to be needed anymore since it is on maven central and not jitpack now.
@wonday

wonday commented Aug 9, 2026

Copy link
Copy Markdown
Owner

@jimporter-droid

Thank you for your commit,
After merging some codes, encountered a conflict in your submission.
Could you resolve this issue?

@jimporter-droid

Copy link
Copy Markdown
Author

@wonday resync complete, ready for review/feedback. Thanks for supporting this library!

@wonday

wonday commented Aug 13, 2026

Copy link
Copy Markdown
Owner

@jimporter-droid
Do you need to modify the index.js file?
It looks like you rolled back some features used by other users.

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

Successfully merging this pull request may close these issues.

2 participants