com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class DocumentFormat<T extends DocumentMetadata<TK>,TK extends MetadataProperty,DI extends DocumentInfo>

    • Constructor Detail

      • DocumentFormat

        protected DocumentFormat(String fileName)

        Initializes a new instance of the DocumentFormat{T,TK, DI} class.

        Parameters:
        fileName - Absolute path to the file.
      • DocumentFormat

        protected DocumentFormat(InputStream input)

        Initializes a new instance of the DocumentFormat{T,TK, DI} class.

        Parameters:
        input - File stream.
    • Method Detail

      • getDocumentProperties

        public T getDocumentProperties()

        Gets document properties T presented in DocumentFormat{T,TK,DI}.

        Value: The document properties.
      • getFileType

        public int getFileType()

        Gets the file type.

        Value: File file.
      • getDocumentInfo

        public final DI getDocumentInfo()

        Gets the document calculated info.

        Value: The document information.
      • getThumbnail

        public final byte[] getThumbnail()

        Gets the thumbnail of document in PNG format. Thumbnail is provided only for first page in document.

        Throws:
        com.aspose.ms.System.NotSupportedException - Reading of thumbnail is not supported for PptFormat.
        GroupDocsException - Could not read thumbnail. Value: The thumbnail.


        Returns thumbnail of first page only.

      • setProperties

        public final int setProperties(MetadataPropertyCollection properties)

        Updates document properties.

        Specified by:
        setProperties in interface IDocumentFormat
        Parameters:
        properties - Document properties.


        This feature is not available in trial mode.

        Returns:
        Amount of affected properties.
        Throws:
        ArgumentNullException - Properties could not be null.
      • clearBuiltInProperties

        public void clearBuiltInProperties()

        Resets built-in properties.


        This feature is not available in trial mode.

      • clearCustomProperties

        public void clearCustomProperties()

        Removes all custom document properties.


        This feature is not available in trial mode.