Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Feb 06, 2026 9:20 am

While comparing 2 documents, if the form fields have differences( in the first document check box field is unchecked and in the second document, check box field is checked), then the changes are not tracked.
Below is the code used

Document doc1 = new Document();
doc1.loadFromFile("D:\\doc1.rtf");

//Load the other Word document
Document doc2 = new Document();
doc2.loadFromFile("D:\\doc2.rtf");

CompareOptions co = new CompareOptions();
co.setIgnoreFormatting(true);
doc1.compare(doc2, "Author",co);

doc1.saveToFile("D:\\Compare1.docx", FileFormat.Docx_2019);

suma_ar8
 
Posts: 9
Joined: Fri Jun 21, 2024 4:28 am

Fri Feb 06, 2026 10:31 am

Hello,

Thank you for your feedback.
I have reproduced the issue you encountered and logged it into our issue tracking system under ID SPIREDOC-11824. We will notify you promptly once the issue is resolved and a new version is available.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Fri Jul 03, 2026 10:11 am

Hello,

Thank you for your patience.

I'm glad to inform you that SPIREDOC-11824 has been resolved. Welcome to download and test [Spire.Doc for Java Version:14.7.0].
Our website link: https://www.e-iceblue.com/Download/doc-for-java.html

Install from Maven Repository:
Code: Select all
<dependency>
    <groupId>e-iceblue</groupId>
    <artifactId>spire.doc</artifactId>
    <version>14.7.0</version>
</dependency>


Sample code:
Code: Select all
CompareOptions compareOptions = new CompareOptions();
compareOptions.setIgnoreFormatting(true);
compareOptions.setIgnoreFields(false);


If you have any questions, please let us know.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron