Hi I found problem with compare images in documents.
code to show problem :
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.HTML);
htmlSaveOptions.setPrettyFormat(true);
htmlSaveOptions.setExportListLabels(ExportListLabels.AS_INLINE_TEXT);
htmlSaveOptions.setImageSavingCallback(imageSavingArgs -> {});
htmlSaveOptions.setExportHeadersFootersMode(ExportHeadersFootersMode.NONE);
htmlSaveOptions.setExportImagesAsBase64(true);
htmlSaveOptions.setExportTextInputFormFieldAsText(true);
Document doc = new Document("…\test.docx");
String st = doc.toString(htmlSaveOptions);
DocumentBuilder builder = new DocumentBuilder();
builder.insertHtml(st);
Document docFromHtml = builder.getDocument();
docFromHtml.save("…\test_fromHtml.docx");
docFromHtml.save("…\test_fromHtml2.docx");
Document docWithChanges = new Document("…\test_fromHtml2.docx");
docFromHtml.compare(docWithChanges, “me”, new Date());
docFromHtml.save("…\test_out.docx");
docFromHtml.save("…\test_out.html");
As y can see there are revisions but nothing changed. In attach test documents.
imageCompareTest.zip (132.0 KB)