com.groupdocs.annotation

Class Document



  • public class Document
    extends Object

    Represents document properties

    • Constructor Detail

      • Document

        public Document(com.aspose.ms.System.IO.Stream stream)

        Initializes new instance of Document class.

        Parameters:
        stream - The document stream.
      • Document

        public Document(com.aspose.ms.System.IO.Stream stream,
                String password)

        Initializes new instance of Document class.

        Parameters:
        stream - The document stream.
        password - The document password.
    • Method Detail

      • generatePreview

        public final void generatePreview(PreviewOptions previewOptions)

        Generates document pages preview.

        Parameters:
        previewOptions - The document preview options
      • getDocumentInfo

        public final IDocumentInfo getDocumentInfo()

        Gets information about document - document type and size, pages count etc.

        Returns:
      • getName

        public final String getName()

        Document name

        Returns:
      • getPassword

        public final String getPassword()

        Document password

        Returns:
      • getStream

        public final com.aspose.ms.System.IO.Stream getStream()

        Document stream

        Returns:
      • setCache

        public final void setCache(ICache value)
      • setName

        public final void setName(String value)

        Document name

        Parameters:
        value -
      • setPassword

        public final void setPassword(String value)