public static void Run() { var apiInstance = new AnnotateApi(Constants.GetConfig()); try { var fileInfo = new FileInfo { FilePath = "one-page.docx" }; var options = new RemoveOptions(); options.FileInfo = fileInfo; options.AnnotationIds = new List <int?> { 1, 2, 3 }; options.OutputPath = "Output/output.docx"; var request = new RemoveAnnotationsRequest(options); var link = apiInstance.RemoveAnnotations(request); Console.WriteLine("DeleteAnnotations: Annotations deleted: " + link.Title); } catch (Exception e) { Console.WriteLine("Exception while calling AnnotateApi: " + e.Message); } }
public void TestRemoveAnnotations(string filePath) { var options = new RemoveOptions { FileInfo = new Model.FileInfo { FilePath = filePath }, AnnotationIds = new List <int?> { 1, 2, 3 }, OutputPath = $"{DefaultOutputPath}/{Path.GetFileName(filePath)}" }; var result = AnnotateApi.RemoveAnnotations(new RemoveAnnotationsRequest(options)); Assert.NotNull(result); Assert.IsNotEmpty(result.Href); }