IDocumentInfo class

IDocumentInfo class

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:

Properties

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.

Example

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}")

See Also