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

java.lang.ClassCastException in PDImageXObject.getMask()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.15
    • Fix Version/s: 2.0.16, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
      None
    • Environment:
      Oracle Java 8 update125 on both Mac OS X and centos

      Description

      I found several unexpected exceptions while running pdfbox, could anyone please help take a look? 

      stacktraces: 

      java.lang.ClassCastException
       
      org.apache.pdfbox.cos.COSString cannot be cast to org.apache.pdfbox.cos.COSStream 

      org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getMask - Line 626 (PDImageXObject.java) 
      org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage - Line 456 (PDImageXObject.java) 
      org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage - Line 425 (PDImageXObject.java) 
       

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: