Save to PDF without track changes

Using version: aspose-words-23.1-jdk17.jar
Have a docx file with track changes. When save to pdf, the converted pdf show track changes.
How to turn off the track changes from docx does not show in the converted pdf?

testfile.pdf (17.3 KB)
testfile.docx (13.8 KB)

Thank You

@nlee08 You can accept all revision before converting the document to PDF:

Document doc = new Document("C:\\Temp\\in.docx");
doc.acceptAllRevisions();
doc.save("C:\\Temp\\out.pdf");

In this case you the final version of the document will be rendered.

Also, you can configure how Aspose.Words rendered revisions in RevisionOptions. 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");