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

ClassCastException in PDAnnotation.getColour

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 2.0.0
    • Fix Version/s: 1.8.9, 2.0.0
    • Component/s: Parsing
    • Labels:

      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

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment