get_document_info method
Leave feedback
On this page
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:
- How to get document info (https://docs.groupdocs.com/display/conversionnet/Get+document+info)
def get_document_info(self):
...
Returns: Document information as IDocumentInfo.
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}")
- class
Converter
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.