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

Free Support Forum - aspose.com

About markup

Hi,
How to convert DOC(X) to PDF to make the document being converted come out as a final with no markup. Currently, if I convert a marked up documnet to PDF, I get all the markup.
Thanks!

Hi Chen,

Thanks for your inquiry. Could you please share some detail about your query ‘marked up Word document’? Please also share your input Word document and expected output Pdf. We will then provide you more information about your query along with code.

You may use the following code example to accept all tracked changes in the document and clear the comments in final output document.

Document doc = new Document(MyDir + "in.docx");
// Accepts all tracked changes in the document. 
doc.AcceptAllRevisions();
// remove comments from document.
doc.GetChildNodes(NodeType.Comment, true).Clear();
doc.Save(MyDir + "Out.pdf");

Thank you! It’s cool! You solved my problem easily.

Hi Chen,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.