DocumentInfo
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.metadata.core.IDocumentInfo
public class DocumentInfo implements 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 final FileTypePackage getFileType()
Gets the file type of the loaded document.
Returns: FileTypePackage - The file type of the loaded document.
getSize()
public final long getSize()
Gets the size of the loaded document in bytes.
Returns: long - The size of the loaded document in bytes.
getPageCount()
public final 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 final 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 final 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.