java.lang.ClassCastException: org.sejda.sambox.cos.COSDictionary cannot be cast to org.sejda.sambox.cos.COSStream

GitHub | torakiki | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException when optimizing xObject of the wrong type

    GitHub | 8 months ago | torakiki
    java.lang.ClassCastException: org.sejda.sambox.cos.COSDictionary cannot be cast to org.sejda.sambox.cos.COSStream

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.sejda.sambox.cos.COSDictionary cannot be cast to org.sejda.sambox.cos.COSStream

      at org.sejda.impl.sambox.component.optimizaton.ImagesOptimizer$XObjectOperator.process()
    2. org.sejda.impl
      ImagesOptimizer$XObjectOperator.process
      1. org.sejda.impl.sambox.component.optimizaton.ImagesOptimizer$XObjectOperator.process(ImagesOptimizer.java:108)
      1 frame
    3. org.sejda.sambox
      PDFStreamEngine.processOperator
      1. org.sejda.sambox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:781)
      1 frame