android-pdfviewer icon indicating copy to clipboard operation
android-pdfviewer copied to clipboard

IOException when trying to load a corrupted PDF file

Open Pittvandewitt opened this issue 6 months ago • 0 comments

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 avatar Aug 16 '24 09:08 Pittvandewitt