The following example demonstrates how to retrieve the general document information using [IDocumentInfo](../../com.groupdocs.watermark.common/idocumentinfo).
public abstract System.Collections.Generic.IGenericList<PageInfo> getPages()
Gets the collection of document pages descriptions.
Returns:
com.aspose.ms.System.Collections.Generic.IGenericList<com.groupdocs.watermark.common.PageInfo> - The collection of document pages descriptions.
getSize()
public abstract long getSize()
Gets the document size in bytes.
Returns:
long - The document size in bytes.
isEncrypted()
public abstract boolean isEncrypted()
Gets a value indicating whether the document is encrypted and requires a password to open.
Returns:
boolean - True if the document is encrypted and requires a password to open; otherwise, false.
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.