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

GitHub | torakiki | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException when optimizing xObject of the wrong type

    GitHub | 6 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