com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

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

    • Method Detail

      • getDocumentProperties

        public T getDocumentProperties()

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

        Returns:
        The document properties.
      • getFileType

        public int getFileType()

        Gets the file type.

        Returns:
        File file.
      • getDocumentInfo

        public final DI getDocumentInfo()

        Gets the document calculated info.

        Returns:
        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 and VisioFormat.
        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.

      • readThumbnail

        public final ThumbnailMetadata readThumbnail()

        Reads the thumbnail of the document in PNG format.

        Returns:
        An instance of ThumbnailMetadata class containig thumbnail metadata (including image bytes).


        Returns a thumbnail of the first page only.