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

ClassCastException in PDDocumentCatalog.java:339

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.9, 1.8.10, 2.0.0
    • 1.8.10, 2.0.0
    • PDModel
    • None

    Description

      this issue is similar to PDFBOX-2687. I was calling document.getDocumentCatalog().getOutputIntents();

      and got a

      java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSDictionary
      

      Here is the file where the error occurs the output intent was set with pdfbox 1.8.6/7/8 not sure.

      https://www.dropbox.com/s/9fpytrdggzehv7s/20120312-Example.pdf?dl=0

      Attachments

        1. 20120312-Example.pdf
          34 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            vadimbauer Vadimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: