@Deprecated public abstract class DocumentFormat<T extends DocumentMetadata<TK>,TK extends MetadataProperty,TDi extends DocumentInfo> extends FormatBase implements IDocumentFormat
Represents base abstraction for document formats such as PDF, WORD, EXCEL, PowerPoint etc.
T
: Represents DocumentMetadata{TK}
.
TK
: Represents MetadataProperty
.
TDi
: Represents Legacy.DocumentInfo
.
Modifier and Type | Method and Description |
---|---|
void |
clearBuiltInProperties()
Deprecated.
Resets built-in properties.
|
void |
clearCustomProperties()
Deprecated.
Removes all custom document properties.
|
MetadataPropertyCollection |
extractDocumentProperties()
Deprecated.
Extracts document metadata properties.
|
TDi |
getDocumentInfo()
Deprecated.
Gets a set of statistics calculated for the loaded document.
|
T |
getDocumentProperties()
Deprecated.
Gets the metadata properties presented in the document.
|
int |
getFileType()
Deprecated.
Gets the file type.
|
byte[] |
getThumbnail()
Deprecated.
Gets a document thumbnail in the PNG format.
|
MetadataProperty |
readDocumentPropertyByKey(MetadataKey key)
Deprecated.
|
MetadataProperty |
readPropertyByName(String propertyName)
Deprecated.
|
ThumbnailMetadata |
readThumbnail()
Deprecated.
Creates a thumbnail of the document in the PNG format.
|
int |
setProperties(MetadataPropertyCollection properties)
Deprecated.
Updates document metadata properties.
|
cleanMetadata, close, dispose, dispose, getMetadata, getMIMEType, getType, readByMetadataKey, save, save, save
public T getDocumentProperties()
Gets the metadata properties presented in the document.
public int getFileType()
Gets the file type.
public final TDi getDocumentInfo()
Gets a set of statistics calculated for the loaded document.
public final byte[] getThumbnail()
Gets a document thumbnail in the PNG format. The thumbnail is provided only for the first page of the document.
public final MetadataPropertyCollection extractDocumentProperties()
Extracts document metadata properties.
extractDocumentProperties
in interface IDocumentFormat
MetadataPropertyCollection
public final int setProperties(MetadataPropertyCollection properties)
Updates document metadata properties.
setProperties
in interface IDocumentFormat
properties
- A collection of metadata properties.
public void clearBuiltInProperties()
Resets built-in properties.
public void clearCustomProperties()
Removes all custom document properties.
public final ThumbnailMetadata readThumbnail()
Creates a thumbnail of the document in the PNG format.
ThumbnailMetadata
class containing thumbnail metadata (including image bytes).
public MetadataProperty readPropertyByName(String propertyName)
public MetadataProperty readDocumentPropertyByKey(MetadataKey key)
Copyright © 2020. All rights reserved.