Use case: ensure key metadata values remain consistent across document versions.
The result is as follows:
Property types
Microsoft Word recognises three property surfaces:
Property type
Examples
CompareOption
Built-in properties
Title, Author, Subject, Created, Last modified
compare_document_property
Custom properties
Any user-defined key/value pair (Department, Project code)
compare_document_property
Document variables
Mail-merge fields, automation variables set via VBA / templating tools
compare_variable_property
compare_document_property = True covers built-in AND custom properties. compare_variable_property = True specifically targets the document-variables surface — this is most useful when comparing generated documents (mail-merge output, templating engines like Jinja-into-Word) where the variable values are the meaningful diff.