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

ClassCastException in StreamValidationProcess.checkFilters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.7, 1.8.8, 2.0.0
    • 1.8.8, 2.0.0
    • Preflight
    • None

    Description

      078083.pdf preflight fail: java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
      	at org.apache.pdfbox.preflight.process.StreamValidationProcess.checkFilters(StreamValidationProcess.java:101)
      	at org.apache.pdfbox.preflight.process.StreamValidationProcess.validateStreamObject(StreamValidationProcess.java:83)
      	at org.apache.pdfbox.preflight.process.StreamValidationProcess.validate(StreamValidationProcess.java:67)
      	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
      	at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
      	at pdfboxpageimageextraction.PreflightTest.main(PreflightTest.java:44)
      

      The cause are entries like this one:

      /Filter 778 0 R
      

      Attachments

        1. 078083.pdf
          1.51 MB
          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: