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

java.lang.ClassCastException in PDImageXObject.getMask()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.15
    • 2.0.16, 3.0.0 PDFBox
    • Rendering
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: