We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Re: Clear ink annotation from the word document

Hi,

Are there any news on the topic? I would need the functionality for Aspose.Words in .NET. What I need is to render a pdf like Word in “No Markup” view (Ribbon Review, Tab Tracking, drop down at the top).

Kind regards

Hi Markus,

Thanks for your inquiry.
ecms:
Are there any news on the topic?
The feature WORDSNET-9859 is about deletion of all ink annotations from document. Please use following code example to workaround this issue.

Document doc = new Document(MyDir + "in.docx");

Node[] shapes = doc.GetChildNodes(NodeType.Shape, true).ToArray();

foreach (Shape shape in shapes)

{

if (shape.Name.Contains("Ink"))

shape.Remove();

}

ecms:
I would need the functionality for Aspose.Words in .NET. What I need is to render a pdf like Word in "No Markup" view (Ribbon Review, Tab Tracking, drop down at the top).
Please call Document.AcceptAllRevisions method before saving the document to PDF to get the desired output.

Document doc = new Document(MyDir + "in.docx");

doc.AcceptAllRevisions();

doc.Save(MyDir + "17.4.pdf");