IDocumentInfo class

IDocumentInfo class

Provides methods required for retrieving basic document information.

Learn more: https://docs.groupdocs.com/redaction/python-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 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)

See Also