IDocumentInfo

public interface IDocumentInfo

Contains metadata for a document.

Methods

Method Description
getPagesCount() Document pages count.
getFormat() Document format
getSize() Document size in bytes
getCreationDate() Document creation date
getPropertyNames() List of all properties which could be get for the current document info
getProperty(String propertyName) Get value for a property provided as a key

getPagesCount()

public abstract int getPagesCount()

Document pages count.

Returns: int

getFormat()

public abstract String getFormat()

Document format

Returns: java.lang.String - Document format

getSize()

public abstract long getSize()

Document size in bytes

Returns: long - Document size in bytes

getCreationDate()

public abstract Date getCreationDate()

Document creation date

Returns: java.util.Date - Document creation date

getPropertyNames()

public abstract List<String> getPropertyNames()

List of all properties which could be get for the current document info

Returns: java.util.List<java.lang.String> - List of all properties which could be get for the current document info

getProperty(String propertyName)

public abstract String getProperty(String propertyName)

Get value for a property provided as a key

Parameters:

Parameter Type Description
propertyName java.lang.String property name

Returns: java.lang.String - value for a property provided as a key