Word Documents
You can compare Microsoft Word 2003 (or later) documents (.docx, .dotx). Microsoft Word is not required to be installed in order to perform such comparisons.
To compare Word documents, invoke the diff command similarly to how this is done for text or XML files:
diffdogserver diff "C:\Reports.docx" "C:\ReportsWithFeedback.docx" --mode=doc
diffdogcmdlclient diff "C:\Reports.docx" "C:\ReportsWithFeedback.docx" --mode=doc
It is best to set the --mode=doc option in order to instruct DiffDog Server to treat the compared files as Word documents.
Note: Besides .docx files created in MS Office, .docx files generated in Text Control are also fully compatible with DiffDog Server.
Word document comparison options
When comparing Word documents, you can choose whether formatting information such as bold, italic, font size and color should be ignored or taken into account. The diff command provides the following options specially for Word documents:
•--doc-format-font-color, --dfc
•--doc-format-font-name, --dff
•--doc-format-font-size, --dfs
•--doc-format-underline, --dfu
In addition, you can set the following options when comparing Word documents:
•--doc-ignore-blank-lines, --dib
Comparison results
For Word documents, the comparison result is reported by the exit code. If differences exist, a detailed XML report can be generated additionally. For more information, see Comparison Results.