Class ImagePdfBytesInfo

java.lang.Object
com.itextpdf.kernel.pdf.xobject.ImagePdfBytesInfo

class ImagePdfBytesInfo extends Object
  • Field Details

    • TIFFTAG_SOFTWARE_VALUE

      private static final String TIFFTAG_SOFTWARE_VALUE
    • bpc

      private final int bpc
    • width

      private final int width
    • height

      private final int height
    • colorspace

      private final PdfObject colorspace
    • decode

      private final PdfArray decode
    • pngColorType

      private int pngColorType
    • pngBitDepth

      private int pngBitDepth
    • palette

      private byte[] palette
    • icc

      private byte[] icc
    • stride

      private int stride
  • Constructor Details

    • ImagePdfBytesInfo

      public ImagePdfBytesInfo(PdfImageXObject imageXObject)
  • Method Details

    • getPngColorType

      public int getPngColorType()
    • decodeTiffAndPngBytes

      public byte[] decodeTiffAndPngBytes(byte[] imageBytes) throws IOException
      Throws:
      IOException
    • processSeperationColor

      private byte[] processSeperationColor(byte[] imageBytes, PdfArray colorSpaceArray) throws IOException
      Throws:
      IOException
    • processPng

      private byte[] processPng(byte[] imageBytes, int pngBitDepth, int pngColorType) throws IOException
      Throws:
      IOException
    • findColorspace

      private void findColorspace(PdfObject csObj, boolean allowIndexed)
      Sets state of this object according to the color space
      Parameters:
      csObj - the colorspace to use
      allowIndexed - whether indexed color spaces will be resolved (used for recursive call)
      Throws:
      IOException - if there is a problem with reading from the underlying stream