com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class DocumentContent

  • All Implemented Interfaces:
    AutoCloseable


    public abstract class DocumentContent
    extends Object
    implements AutoCloseable

    Provides an interface to work with document's content.

    • Constructor Detail

      • DocumentContent

        public DocumentContent()
    • Method Detail

      • getPageCount

        public int getPageCount()

        Gets a page count.

        Returns:
        An int value that represents a page count of the document.
      • setPageCount

        protected void setPageCount(int value)
      • dispose

        public void dispose()

        Releases the unmanaged resources used by the extractor.

      • getPage

        public abstract DocumentPage getPage(int pageIndex)

        Extracts a text areas from the document page.

        Parameters:
        pageIndex - A zero-based index of the page.
        Returns:
        An instance of DocumentPage class.
      • getTextAreas

        public List<TextArea> getTextAreas(int pageIndex)

        Extracts a text areas from the document page.

        Parameters:
        pageIndex - A zero-based index of the page.
        Returns:
        A collection of TextArea objects.
      • getTextAreas

        public abstract List<TextArea> getTextAreas(int pageIndex,
                                  TextAreaSearchOptions searchOptions)

        Extracts a text areas from the document page.

        Parameters:
        pageIndex - A zero-based index of the page.
        searchOptions - A search options for extracting text areas.
        Returns:
        A collection of TextArea objects.
      • dispose

        protected void dispose(boolean isDisposing)

        Releases the unmanaged resources used by the extractor.

        Parameters:
        isDisposing - A boolean true if invoked from Dispose; otherwise, false.