com.groupdocs.metadata.legacy

Interfaces

Classes

Exceptions

com.groupdocs.metadata.legacy

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

    • Method Detail

      • getDocumentProperties

        public T getDocumentProperties()
        Deprecated. 

        Gets the metadata properties presented in the document.

        Returns:
        The document properties.
      • getFileType

        public int getFileType()
        Deprecated. 

        Gets the file type.

        Returns:
        The file file.
      • getDocumentInfo

        public final TDi getDocumentInfo()
        Deprecated. 

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

        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)
        Deprecated. 

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

        Resets built-in properties.


        This feature is not available in trial mode.

      • clearCustomProperties

        public void clearCustomProperties()
        Deprecated. 

        Removes all custom document properties.


        This feature is not available in trial mode.

      • readThumbnail

        public final ThumbnailMetadata readThumbnail()
        Deprecated. 

        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.