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

ClassCastException in PDCIDFont.readWidths()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.12, 2.0.3
    • Fix Version/s: 1.8.13, 2.0.4, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSNumber
          org.apache.pdfbox.pdmodel.font.PDCIDFont.readWidths(PDCIDFont.java:88)
          org.apache.pdfbox.pdmodel.font.PDCIDFont.<init>(PDCIDFont.java:65)
          org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:83)
          org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:70)
          org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125)
      

      The cause is an indirect object in the width array.

        Attachments

        1. PDFBOX-3609.pdf
          65 kB
          Tilman Hausherr
        2. digitalcourage-verfassungsbeschwerde-vds.pdf
          422 kB
          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: