Class Content


  • public class Content
    extends Object
    This class provides information about the content of the specified PDF file, such as number of images, textual content etc.
    • Constructor Detail

      • Content

        public Content()
    • Method Detail

      • getNumberOfImages

        public Integer getNumberOfImages()
        Returns the number of images in the content.
        Returns:
        An Integer denoting the number of images in the content
      • containsImagesOnly

        public Boolean containsImagesOnly()
        Returns a boolean specifying whether the content consists only images.
        Returns:
        true if the content consists only images. False otherwise.
      • containsText

        public Boolean containsText()
        Returns a boolean specifying whether the content has any text.
        Returns:
        true if the content has any text. False otherwise.
      • containsImages

        public Boolean containsImages()
        Returns a boolean specifying whether the content has any images.
        Returns:
        true if the content has any images. False otherwise.
      • isEmpty

        public Boolean isEmpty()
        Returns a boolean specifying whether the content is empty/blank.
        Returns:
        true if the content is empty. False otherwise.