java.lang.RuntimeException: com.itextpdf.text.exceptions.UnsupportedPdfException: The color depth 1 is not supported.

Stack Overflow | Mayank Pandey | 5 months ago
  1. 0

    Error in redaction with iText 5: "The color depth 1 is not supported." exception when apply redaction on pdf which contain image also

    Stack Overflow | 5 months ago | Mayank Pandey
    java.lang.RuntimeException: com.itextpdf.text.exceptions.UnsupportedPdfException: The color depth 1 is not supported.
  2. 0

    Error in image extraction with iText 5: "The color space is not supported"

    Stack Overflow | 2 years ago
    com.itextpdf.text.exceptions.UnsupportedPdfException: The color space [/DeviceN, [/Black], /DeviceCMYK, 1153 0 R, 1152 0 R] is not supported.

    Root Cause Analysis

    1. com.itextpdf.text.exceptions.UnsupportedPdfException

      The color depth 1 is not supported.

      at com.itextpdf.text.pdf.parser.PdfImageObject.decodeImageBytes()
    2. iText, a Free Java-PDF library
      ImageRenderInfo.getImage
      1. com.itextpdf.text.pdf.parser.PdfImageObject.decodeImageBytes(PdfImageObject.java:315)
      2. com.itextpdf.text.pdf.parser.PdfImageObject.<init>(PdfImageObject.java:200)
      3. com.itextpdf.text.pdf.parser.PdfImageObject.<init>(PdfImageObject.java:169)
      4. com.itextpdf.text.pdf.parser.ImageRenderInfo.prepareImageObject(ImageRenderInfo.java:124)
      5. com.itextpdf.text.pdf.parser.ImageRenderInfo.getImage(ImageRenderInfo.java:114)
      5 frames
    3. com.itextpdf.text
      PdfCleanUpRenderListener.renderImage
      1. com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpRenderListener.renderImage(PdfCleanUpRenderListener.java:63)
      1 frame