IDocumentInfo class
Leave feedback
On this page
Provides methods required for retrieving basic document information.
Learn more
The IDocumentInfo type exposes the following members:
| Property | Description |
|---|---|
| file_type | The file format description. |
| is_encrypted | The document is encrypted and requires a password to open; returns True if encrypted, otherwise False. |
| page_count | The total page count. |
| pages | The collection of document pages descriptions. |
| size | The document size in bytes. |
from groupdocs.watermark import Watermarker
with Watermarker(r"D:\input.pdf") as watermarker:
doc_info = watermarker.get_document_info()
print(f"Document size: {doc_info.size}")
print(f"Document format: {doc_info.file_type.file_format}")
print(f"Document contains {doc_info.page_count} pages")
- module
groupdocs.watermark.common
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.