com.groupdocs.parser.options

Interface IDocumentInfo

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      FileType getFileType()
      Gets the document type.
      int getPageCount()
      Gets the total number of document pages.
      List<PageInfo> getPages()
      Gets the information about pages such as the index and page size.
      int getRawPageCount()
      Gets the total number of document raw pages.
      long getSize()
      Gets the size of the document in bytes.
    • Method Detail

      • getFileType

        FileType getFileType()
        Gets the document type.
        Returns:
        An instance of FileType class that represents the type of the document.
      • getPageCount

        int getPageCount()
        Gets the total number of document pages.
        Returns:
        An integer value that represents a total number of pages.
      • getRawPageCount

        int getRawPageCount()
        Gets the total number of document raw pages.

        Use getRawPageCount() property instead of getPageCount() property for raw text extraction. Some documents have different page numbers in accurate and raw text extraction modes. getPageCount() property may perform extra calculations which impacts on text extraction speed in raw mode.

        Returns:
        An integer value that represents a total number of raw pages.
      • getSize

        long getSize()
        Gets the size of the document in bytes.
        Returns:
        An integer value that represents the size of the document in bytes.
      • getPages

        List<PageInfo> getPages()
        Gets the information about pages such as the index and page size.
        Returns:
        A collection with instances of PageInfo classes.