Converting word to pdf. How to hide markups?

Hi!

We use aspose-words-13.11.0 for Java to convert *.doc to *.pdf

public static void convertToPdf() throws Exception{
final License license = new License();
license.setLicense(PATH_TO_LICENSE);
Document doc = new Document(PATH+“01 - original.doc”);

doc.acceptAllRevisions();

PdfSaveOptions saveOptions = new PdfSaveOptions();
doc.save(PATH + “02 - converted.pdf”, saveOptions);
}

But markups (comments, insertion/deletions) are still present in converted pdf.
Is there any way to get “clean” pdf view of the document with all revisions accepted and no markups displayed?

Original, converted and expected (what i would like to see) files are attached.
Any suggestions or workarounds?

I really appreciate any help you can provide.
Hi Serg,

Thanks for your inquiry.

After an initial test with Aspose.Words 14.1.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Moreover, I executed the following code to generate the attached .pdf document (out-14.1.0.pdf).
Document doc = new Document("C:\\temp\\01+-+original.doc");
doc.acceptAllRevisions();
PdfSaveOptions saveOptions = new PdfSaveOptions();
doc.save("C:\\temp\\out-14.1.0.pdf", saveOptions);
Best regards,

Hi, Awais!

Thanks for your reply.
With 14.1.0 all works fine!