Class Jbig2ImageData

java.lang.Object
com.itextpdf.io.image.ImageData
com.itextpdf.io.image.Jbig2ImageData

public class Jbig2ImageData extends ImageData
  • Constructor Details

    • Jbig2ImageData

      protected Jbig2ImageData (URL url, int page)
    • Jbig2ImageData

      protected Jbig2ImageData (byte[] bytes, int page)
  • Method Details

    • getPage

      public int getPage()
    • getNumberOfPages

      public static int getNumberOfPages (byte[] bytes)
      Gets the number of pages in a JBIG2 image.
      Parameters:
      bytes - a byte array containing a JBIG2 image
      Returns:
      the number of pages
    • getNumberOfPages

      public static int getNumberOfPages (RandomAccessFileOrArray raf)
      Gets the number of pages in a JBIG2 image.
      Parameters:
      raf - a RandomAccessFileOrArray containing a JBIG2 image
      Returns:
      the number of pages
    • canImageBeInline

      public boolean canImageBeInline()
      Description copied from class: ImageData
      Checks if image can be inline
      Overrides:
      canImageBeInline in class ImageData
      Returns:
      if the image can be inline