Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4801

ArrayIndexOutOfBoundsException in PDICCBased.toRGB()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.19
    • 2.0.20, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      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) 

      The reason is that the attached file has an incorrect ICC colorspace. N is 3 but should be 4.

      Attachments

        1. PDFBOX-4801-Bad-ICC-N.pdf
          229 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: