update_document_statistics method
Leave feedback
On this page
Recalculates count of pages, paragraphs, words, lines, characters in the document and updates appropriate metadata packages.
Learn more
- Working with metadata in WordProcessing documents: https://docs.groupdocs.com/display/metadatanet/Working+with+metadata+in+WordProcessing+documents
def update_document_statistics(self):
...
from groupdocs.metadata import Metadata, WordProcessingRootPackage
with Metadata(Constants.InputDoc) as metadata:
root = metadata.get_root_package(WordProcessingRootPackage)
root.update_document_statistics()
metadata.save(Constants.OutputDoc)
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.