Crashing on PDF with a bad page.#433
Conversation
…ble crash being passed on to the user. Ideally this should be render an error page or give the user the option to show an error message. As it is now it just doesn't render anything and shows a black screen on the offending page
|
What do you mean when you say "the pdf works regardless after the initial crash"? In my app, after you scroll to the page causing the crash I get
Which causes the app to crash and it needing to be launched again. |
|
I investigated and found other issues which I partially fixed to do with concurrent something, after I fixed my orientation bug I added to try catch and I don't need to restart. I can view two blank pages and the see the rest of the pdf. |

Wrapped pdfiumCore.openPage() with a try catch to prevent an unrecoverable crash being passed on to the user. Ideally this should render an error page or give the user the option to show an error message. As it is now it just doesn't render anything and shows a black screen on the offending page
Attached is a PDF with a page that won't render. (page 7)
test.pdf