get_document_info method
Leave feedback
On this page
Retrieves information about the document, including its type, size, page count, and detailed page data.
def get_document_info(self):
...
with Annotator("document.pdf") as annotator:
info = annotator.document.get_document_info()
print(info.file_type.file_format, info.page_count, info.size)
- class
Document
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.