Delete Footnote in Word with C# REST API

This tutorial describes how to delete footnote in DOC with C# REST API. You will learn to automatically remove a footnote in Word with C# Low Code API using a Cloud SDK on multiple platforms. It will guide you to perform the operation online and fetch the updated Word file for saving on the disk.

Prerequisite

Steps to Remove Footnote in Word with C# .NET-based API

  1. Create the Configuration object by setting the client ID and secret
  2. Instantiate the WordsApi object to delete footnotes
  3. Read the input Word file with footnotes into a byte array
  4. Create the DeleteFootnoteOnlineRequest() by setting the input document stream and target footnote index
  5. Invoke the DeleteFootnoteOnline() method to remove the requested footnote
  6. Fetch the output stream from the API response and save it as a Word doc on the disk

The steps above summarize how to delete a footnote in Word with C# REST Interface. Create the WordsApi object by passing the Configuration class object with a client ID and secret. Use the DeleteFootnoteOnlineRequest class to create the request object for the footnote and call the DeleteFootnoteOnline() method to remove the footnote using this request object.

Code to Remove Footnote with C# Low Code API

This sample code has demonstrated how to remove a footnote in Word with C# RESTful Service. You may define the encoding for loading the source Word file and provide a password also if the input file is password-protected. You can also set the Node path in the Word document while instantiating the request object.

You may also check out another similar feature on the following page: Convert Word DOC to Markdown with NET REST API.

 English