IDocumentInfo
public interface IDocumentInfo
Provides common information about a loaded document.
Learn more
Methods
Method | Description |
---|---|
getFileType() | Gets the file type of the loaded document. |
getSize() | Gets the size of the loaded document in bytes. |
getPageCount() | Gets the number of pages (slides, worksheets, etc) in the loaded document. |
getPages() | Gets a collection of objects representing common information about the document pages (slides, worksheets, etc). |
isEncrypted() | Gets a value indicating whether the document is encrypted and requires a password to open. |
getFileType()
public abstract FileTypePackage getFileType()
Gets the file type of the loaded document.
Returns: FileTypePackage - The file type of the loaded document.
getSize()
public abstract long getSize()
Gets the size of the loaded document in bytes.
Returns: long - The size of the loaded document in bytes.
getPageCount()
public abstract int getPageCount()
Gets the number of pages (slides, worksheets, etc) in the loaded document.
Returns: int - The number of pages (slides, worksheets, etc) in the loaded document.
getPages()
public abstract IReadOnlyList<PageInfo> getPages()
Gets a collection of objects representing common information about the document pages (slides, worksheets, etc).
Returns: IReadOnlyList - A collection of objects representing common information about the document pages (slides, worksheets, etc).
isEncrypted()
public abstract boolean isEncrypted()
Gets a value indicating whether the document is encrypted and requires a password to open.
Returns: boolean - A value indicating whether the document is encrypted and requires a password to open.