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

ClassCastException in PDDocumentCatalog.java:339

    Details

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: