PDFRenderer getImage crash
Below I discuss three scenarios in which PDFRenderer fails to generate the image:
- PDF saved from a GoogleDocs presentation. The application does not throws any exception, but text blocs are not shown correctly.
- PDF generated from a scanned document as an image and then applying OCR in Adobe Acrobat. In this scenario, this error is generated: Unknown coding method:JBIG2Decode. If we don't apply OCR on this document, it is rendered successfully.
- PDF created from AutoCAD drawings. (com.sun.pdfview.PDFParseException: Unsupported function type 4.)