Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.19
-
None
-
openjdk version "1.8.0_252", pdfbox-2.0.19
Description
When ever i am try to convert pdf to images. I am getting the followed exception. how to get rid of it.
Stack trace:
Exception in thread "main" java.io.IOException: Expected a name or array but got: COSDictionary{COSName
{ColorSpace}:COSName{DeviceRGB};}
at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:223)
at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:120)
at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:203)
at org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169)
at org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceRGBColor.process(SetNonStrokingDeviceRGBColor.java:39)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243)
at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:215)
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-5315 Stack overflow in PDColorSpace.create()
- Closed