IDocumentInfo class
Leave feedback
On this page
Provides methods required for getting basic document information.
Learn more: Get file info (https://docs.groupdocs.com/redaction/net/get-file-info/).
The IDocumentInfo type exposes the following members:
| Property | Description |
|---|---|
| file_type | The file format description. |
| page_count | The total page count. |
| pages | The list of PageInfo objects representing page information. |
| size | The document size in bytes. |
from groupdocs.redaction import Redactor
with Redactor("document.pdf") as redactor:
info = redactor.get_document_info()
print(info.file_type.file_format, info.page_count, info.size)
for page in info.pages:
print(f"Page {page.page_number} size is {page.width}x{page.height}")
- module
groupdocs.redaction
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.