get_document_info method
Leave feedback
On this page
Retrieves source document information, including page count and other properties specific to the file type.
def get_document_info(self):
...
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}")
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.