DocumentInfo
Leave feedback
On this page
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
| 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. |
public final FileTypePackage getFileType()
Gets the file type of the loaded document.
Returns: FileTypePackage - The file type of the loaded document.
public final long getSize()
Gets the size of the loaded document in bytes.
Returns: long - The size of the loaded document in bytes.
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.
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).
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.