Description
When calling page.convertToImage() for a pdf file from the ghostscript installation, I get this stack trace:
06.08.2013 11:46:52.086 WARN [main] org.apache.pdfbox.pdmodel.graphics.color.PDColorState:244 - Unable to create the color instance [74.0, 0.0, 0.0] in color space Lab{ }; guessing color ...
Color interpolation failed; using black instead
java.lang.IllegalArgumentException: Color parameter outside of expected range: Red
java.lang.IllegalArgumentException: Color parameter outside of expected range: Component 0
at java.awt.Color.<init>(Color.java:538)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:190)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:121)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:216)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:485)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:529)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:258)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:205)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:141)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:781)
at pdfboxpageimageextraction.ExtractImages.doPdf(ExtractImages.java:118)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:67)
The file is rendered, but the color of the third text is incorrect.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-1565 Add support for Lab color spaces
- Closed