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

java.lang.ClassCastException: org.apache.pdfbox.pdmodel.font.PDType1CFont cannot be cast to org.apache.pdfbox.pdmodel.font.PDType1Font

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Preflight
    • None
    • deb7 , java7

    Description

      java.lang.ClassCastException: org.apache.pdfbox.pdmodel.font.PDType1CFont cannot be cast to org.apache.pdfbox.pdmodel.font.PDType1Font
      at org.apache.pdfbox.preflight.process.reflect.FontValidationProcess.getFontValidator(FontValidationProcess.java:93)
      at org.apache.pdfbox.preflight.process.reflect.FontValidationProcess.validate(FontValidationProcess.java:72)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:106)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:84)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
      at org.apache.pdfbox.preflight.xobject.XObjFormValidator.validateXObjectResources(XObjFormValidator.java:178)
      at org.apache.pdfbox.preflight.xobject.XObjFormValidator.validate(XObjFormValidator.java:75)
      at org.apache.pdfbox.preflight.process.reflect.GraphicObjectPageValidationProcess.validate(GraphicObjectPageValidationProcess.java:70)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateXObjects(ResourcesValidationProcess.java:302)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:88)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:164)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:83)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:58)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:47)
      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)

      Attachments

        1. import_pdfa.pdf
          64 kB
          Ralf Hauser

        Issue Links

          Activity

            People

              jahewson John Hewson
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: