Unable to disable tracked revisions for RTF to PDF conversion. (Java)

I’m using Aspose to convert RTF to PDF, but I’m facing an issue disabling tracked revisions in the RTF. It appears that these revisions stem from the {deleted} and {revised} tags, causing the resulting PDF to display color-coded versions – like blue-striked text for the deleted tag and red text for the revised tag. Is there a method to disable this feature and obtain the latest version of the text uniformly in black?

@rajesh.pai 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");

Thanks, it works as expected.

1 Like