Get

This REST API retrieves a Header or a Footer.

REST API

~/{file-name}/headersFooters/{index}
~/{file-name}/sections/{sectionIndex}/headersFooters/{index}
  • {file-name} is the name of a Word document containing elements.
  • {sectionIndex} is the index of a section that contains headers and footers. If this syntax is used, only elements within a specified section are returned.
  • {index} is the index of specific header/footer.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. 

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL.

Case 1: Get a Header or Footer in a Document

Case 2: Get a Header or Footer in a Section

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Words Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs:

Case 1: Get a Header or Footer in a Document

Case 2: Get a Header or Footer in a Section