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

IOException when trying to load a corrupted PDF file #31

Open
Pittvandewitt opened this issue Aug 16, 2024 · 0 comments · May be fixed by #32
Open

IOException when trying to load a corrupted PDF file #31

Pittvandewitt opened this issue Aug 16, 2024 · 0 comments · May be fixed by #32

Comments

@Pittvandewitt
Copy link

android-pdfviewer throws a crash when trying to load a corrupted PDF file. This crash originates from android.graphics.pdf.PdfRenderer and is not caught by the try catch block in the setup method. If this were the case, the crash would be caught by the error handler.
I considered downloading the file beforehand and instantiate the PdfRenderer class with it to see if a crash occurs. But I feel like onPdfRendererError should be called instead.

@Pittvandewitt Pittvandewitt linked a pull request Aug 16, 2024 that will close this issue
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 a pull request may close this issue.

1 participant