com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

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

    • Method Detail

      • getDocumentProperties

        public T getDocumentProperties()

        Gets the metadata properties presented in the document.

        Returns:
        The document properties.
      • getFileType

        public int getFileType()

        Gets the file type.

        Returns:
        The file file.
      • getDocumentInfo

        public final TDi getDocumentInfo()

        Gets a set of statistics calculated for the loaded document.

        Returns:
        A set of statistics calculated for the loaded document.
      • getThumbnail

        public final byte[] getThumbnail()

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

        Returns:
        The thumbnail.


        Returns thumbnail of the first page only.

      • setProperties

        public final int setProperties(MetadataPropertyCollection properties)

        Updates document metadata properties.

        Specified by:
        setProperties in interface IDocumentFormat
        Parameters:
        properties - A collection of metadata properties.


        This feature is not available in trial mode.

        Returns:
        The number of affected properties.
      • 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()

        Creates a thumbnail of the document in the PNG format.

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


        Returns a thumbnail of the first page only.