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

ClassCastException in PDTilingPattern.getContents

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.11, 1.8.12, 2.0.0
    • Fix Version/s: 1.8.12, 2.0.0
    • Component/s: PDModel, Preflight
    • Labels:
      None

      Description

      Exception in thread "main" java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream
              at org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern.getContents(PDTilingPattern.java:160)
              at org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
      

      The file has a COSDictionary instead of a COSStream in a tiling pattern.

        Attachments

        1. PDFBOX-3259.pdf
          386 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: