com.groupdocs.watermark.legacy

Interfaces

Classes

Exceptions

com.groupdocs.watermark.legacy

Class Attachment

    • Constructor Detail

      • Attachment

        public Attachment()
        Deprecated. 
    • Method Detail

      • getDocumentInfo

        public final DocumentInfo getDocumentInfo()
        Deprecated. 

        Gets the information about a document stored in the attached file.

        Returns:
        The information about a document stored in the attached file.
      • getContent

        public abstract byte[] getContent()
        Deprecated. 

        Gets the attached file content.

        Returns:
        The attached file content.
      • setContent

        public abstract void setContent(byte[] value)
        Deprecated. 

        Sets the attached file content.

        Parameters:
        value - The attached file content.
      • loadDocument

        public final Document loadDocument()
        Deprecated. 

        Loads a document from the attached file.

        Returns:
        Instance of appropriate descendant of Document class.
      • loadDocument

        public final Document loadDocument(LoadOptions loadOptions)
        Deprecated. 

        Loads a document from the attached file.

        Parameters:
        loadOptions - Additional options to use when loading a document.
        Returns:
        Instance of appropriate descendant of Document class.
      • loadDocument

        public final <TDocument extends Document> TDocument loadDocument(Class<TDocument> documentType)
        Deprecated. 

        Loads a document from the attached file.

        Parameters:
        documentType - Expected document type.

        TDocument: Expected document type.

        Returns:
        Instance of TDocument class.
      • loadDocument

        public final <TDocument extends Document> TDocument loadDocument(Class<TDocument> documentType,
                                                          LoadOptions loadOptions)
        Deprecated. 

        Loads a document from the attached file.

        Parameters:
        loadOptions - Additional options to use when loading a document.
        documentType - Expected document type.

        TDocument: Expected document type.

        Returns:
        Instance of TDocument class.
      • updateDocument

        public final void updateDocument(Document updatedVersion)
        Deprecated. 

        Updates the attached document.

        Parameters:
        updatedVersion - The updated version of the document.