How to highlight formatted document compare in aspose java

how to highlight formatted document compare in aspose java

org.jsoup.nodes.Document olddoc = null;
olddoc = Jsoup.parse(getStringFromInputStream(oldStream));
for (Element element : olddoc.select("p"))
			{

				Elements children = element.children();
				for (Element child : children)
				{
					if (!child.hasAttr("class") && !child.hasText())
						child.remove();
				}
				if (element.children().isEmpty() && !element.hasText())
					element.remove();
			}
String oldString = olddoc.toString();

we are changing the company font Calibri to Segoe but it’s not highlighted the font related like id = added-diff-0, id=“removed-diff-0”

oldString output

 

The company name is UNDEFINED_COMPANY_NAME_FLAGFLA      kk

@rabinintig Your code example does not use Aspose.Words. Could you please elaborate your requirements a bit more? Also please attach your input, output and expected output documents. We will investigate the issue and provide you more information.