Details

Description

Converting a PDPage to an image results in an image file only being partially generated. Some text at the top of the file is created, but the majority of the page is not and an exception is thrown:[ERROR] java.io.IOException: Unknown stream filter:COSName

at org.apache.pdfbox.filter.FilterManager.getFilter(FilterManager.java:103)
at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:249)
at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:211)
at org.apache.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:465)
at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:141)
at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:74)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:567)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:250)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:208)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:112)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:718)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:689)