GroupDocsGists
10/19/2017 - 11:34 AM

RemoveComments.cs

//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize DocFormat
DocFormat docFormat = new DocFormat(Common.MapSourceFilePath(filePath));

// remove comments
docFormat.ClearComments();

// save file in destination folder
docFormat.Save(Common.MapDestinationFilePath(filePath));