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

ClassCastException in preflight: PDAnnotationWidget cannot be cast to PDField

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.8.8, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: Preflight
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: