Gets the information about the format of the loaded document.
Learn more about getting the document information.
defget_document_info(self):...
Returns: IDocumentInfo: The instance that contains detected information.
Example
fromgroupdocs.watermarkimportWatermarkerwithWatermarker("./sample.docx")aswatermarker:info=watermarker.get_document_info()print("File type:",info.file_type)print("Pages:",info.page_count)print("Size, bytes:",info.size)```### See Also*class[`Watermarker`](/watermark/python-net/groupdocs.watermark/watermarker/)
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.