Hi, I'm using PDFToImage to convert PDFs to PNGs (version 1.8.2). When running the conversion for a particular PDF, I get the below Exception and part of the PDF (an image) is missing in the resulting PNG.
Looking at the Exception there is probably a TIFF (contained in the PDF) that is somewhat malformed. However, I'm wondering if there is some sort of work around that can be used, to deal with the problem? I found this realy old discussion (from 2008) with a similar issue: http://itext-general.2136553.n4.nabble.com/Invalid-TIFF-Invalid-code-encountered-while-decoding-2D-group-4-compressed-data-td2159262.html Exception: java.lang.RuntimeException: Invalid code encountered while decoding 2D group 4 compressed data. at org.apache.pdfbox.filter.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:1073) at org.apache.pdfbox.filter.CCITTFaxDecodeFilter.decode(CCITTFaxDecodeFilter.java:126) at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:295) at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:245) at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:172) at org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.getRGBImage(PDCcitt.java:155) at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:83) at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:554) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235) at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215) at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:125) at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:781) at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:133) at org.apache.pdfbox.PDFToImage.main(PDFToImage.java:244) at org.apache.pdfbox.PDFBox.main(PDFBox.java:96) I've attached the PDF and PNG, but I'm not sure if they will come through. Thanks, Darcy

