get_document_info method

get_document_info

Retrieves source document info, including page count and other properties specific to the file type.

Learn more about converted document – file type, pages count, creation date and many other format‑specific properties:

def get_document_info(self):
    ...

Returns: Document information as IDocumentInfo.

Example

from groupdocs.conversion import Converter

with Converter("document.pdf") as converter:
    info = converter.get_document_info()
    print(f"Pages: {info.pages_count}, Format: {info.format}")

See Also