How to remove all Track Changes when I use Aspose to convert a Docx to PDF?

Recently our product manager finds out that if our Aspose Converter makes Docx2PDF, although the “Track Changes” on the original Docx is off, however the result PDF has still all Track Changes. Now we should remove all such Track Changes in our PDF file.

So how to eliminate all Track Changes durching Docx2PDF?

@zwei You can either accept or reject all changes on the document using the appropriate method in Aspose.Words.

Also, you can use RevisionOptions to configure how revisions are rendered in PDF. For example see the following code:

Document doc = new Document("C:\\Temp\\in.docx");
doc.getLayoutOptions().getRevisionOptions().setShowRevisionMarks(false);
doc.getLayoutOptions().getRevisionOptions().setShowRevisionBars(false);
doc.save("C:\\Temp\\out.pdf");
1 Like