get_document_info method
get_document_info
Retrieves information about the document, including its type, size, page count, and detailed page data.
def get_document_info(self):
...
Example
with Annotator("document.pdf") as annotator:
info = annotator.document.get_document_info()
print(info.file_type.file_format, info.page_count, info.size)
See Also
- class
Document