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 2020/03/19 21:11:00 UTC

[jira] [Created] (PDFBOX-4801) ArrayIndexOutOfBoundsException in PDICCBased.toRGB()

Tilman Hausherr created PDFBOX-4801:
---------------------------------------

             Summary: ArrayIndexOutOfBoundsException in PDICCBased.toRGB()
                 Key: PDFBOX-4801
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4801
             Project: PDFBox
          Issue Type: Bug
            Reporter: Tilman Hausherr
         Attachments: PDFBOX-4801-Bad-ICC-N.pdf

{noformat}

java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
    org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.toRGB(PDICCBased.java:403)
    org.apache.pdfbox.rendering.PageDrawer.getPaint(PageDrawer.java:324)
    org.apache.pdfbox.rendering.PageDrawer.getNonStrokingPaint(PageDrawer.java:684)
    org.apache.pdfbox.rendering.PageDrawer.fillPath(PageDrawer.java:784) {noformat}
The reason is that the attached file has an incorrect ICC colorspace. N is 3 but should be 4.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org