Dear Team,
I tried to get a trackchages for the paragraph, but it returns the empty value,
I use this code (Aspose sample GitHub code):
ParagraphCollection paragraphs = doc.getFirstSection().getBody().getParagraphs();
for (int i = 0; i < paragraphs.getCount(); i++) {
System.out.println(paragraphs.get(i).toString(SaveFormat.TEXT));
if (paragraphs.get(i).isMoveFromRevision())
System.out.println("The paragraph " + i + " has been moved (deleted).");
if (paragraphs.get(i).isMoveToRevision())
System.out.println("The paragraph " + i + " has been moved (inserted).");
}
I attached the sample for your reference.
Despatched_Sample.docx (27.4 KB)
If I use revisiongroup or revision class, how i get the parent paragraph, please provide some solution.
Thanks
Rjnick