com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class Attachment

    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getDocumentInfo

        public final DocumentInfo getDocumentInfo()

        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()

        Gets the attached file content.

        Returns:
        The attached file content.
      • setContent

        public abstract void setContent(byte[] value)

        Sets the attached file content.

        Parameters:
        value - The attached file content.
      • loadDocument

        public final Document loadDocument()

        Loads a document from the attached file.

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

        public final Document loadDocument(LoadOptions loadOptions)

        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)

        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)

        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)

        Updates the attached document.

        Parameters:
        updatedVersion - The updated version of the document.