Hi, I want to reject all delete revisions and accept all the insert revisions in a all the paragraphs. My current understanding of code is as follows:
ParagraphCollection paragraphs = doc.getFirstSection().getBody().getParagraphs();
for (int i = 0; i < paragraphs.getCount(); i++) {
Paragraph p = paragraphs.get(i);
RunCollection rns = p.getRuns();
for (int j = 0; j < rns.getCount(); j++) {
Run rn = rns.get(j);
if (rn.isDeleteRevision()) {
// reject this change in run node
}
if (rn.isInsertRevision()){
// accept this change in run node
}
}
}
Thanks in advance.