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

ClassCastException in PDAnnotation.getColour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.8, 2.0.0
    • 1.8.9, 2.0.0
    • Parsing

    Description

      java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
      	at org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.getColour(PDAnnotation.java:644)
      	at org.apache.pdfbox.preflight.annotation.AnnotationValidator.checkColors(AnnotationValidator.java:134)
      

      The cause is this:

      /C 19 0 R
      

      The current code doesn't expect it to be an indirect object.

      Attachments

        1. 176622.pdf
          53 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: