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

ClassCastException in preflight: PDAnnotationWidget cannot be cast to PDField

    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

      java.lang.ClassCastException: org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget cannot be cast to org.apache.pdfbox.pdmodel.interactive.form.PDField
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
      	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.validate(AcroFormValidationProcess.java:60)
      	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)
      

      Attachments

        1. 032618.pdf
          2.96 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: