You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2013/08/06 12:07:47 UTC

[jira] [Updated] (PDFBOX-1681) java.lang.IllegalArgumentException: Color parameter outside of expected range: Red

     [ https://issues.apache.org/jira/browse/PDFBOX-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-1681:
------------------------------------

    Attachment: text_graphic_image.pdf
                text_graphic_image-01.png
    
> java.lang.IllegalArgumentException: Color parameter outside of expected range: Red
> ----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1681
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1681
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>         Attachments: text_graphic_image-01.png, text_graphic_image.pdf
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira