Hello Everyone and @aleXey.noskov,
In my Java code I remove comments from my document.
When converting word to PDF using Aspose.words:
com.aspose.words.NodeCollection comments = (com.aspose.words.NodeCollection)doc.ge…...size(); index++) { String x = page.getAnnotations().get_Item(index)...get_Item(index).toString(); if(!x.contains("pdf.WidgetAnnotation"))...