com.groupdocs.comparison

Class Document



  • public class Document
    extends Object

    Represents compared document.

    • Constructor Detail

      • Document

        public Document(InputStream stream)

        Initializes new instance of Document class.

        Parameters:
        stream - Document stream
      • Document

        public Document(InputStream stream,
                String password)

        Initializes new instance of Document class.

        Parameters:
        stream - Document stream
        password - Document password
      • Document

        public Document(String filePath)

        Initializes new instance of Document class.

        Parameters:
        filePath - Document path
      • Document

        public Document(String filePath,
                String password)

        Initializes new instance of Document class.

        Parameters:
        filePath - Document path
        password - Document password
    • Method Detail

      • generatePreview

        public final void generatePreview(PreviewOptions previewOptions)

        Generates document pages preview.

        Parameters:
        previewOptions - The document preview options
      • getChanges

        public final List<ChangeInfo> getChanges()

        List of changes.

      • getDocumentInfo

        public final IDocumentInfo getDocumentInfo()

        Gets information about document - document type, pages count, page sizes etc.

        Returns:
        document info
      • getName

        public final String getName()

        Document name.

      • getPassword

        public String getPassword()

        Document password.

      • getStream

        public InputStream getStream()

        Document stream.

      • setChanges

        public final void setChanges(List<ChangeInfo> value)

        List of changes.

      • setName

        public final void setName(String value)

        Document name.