Get

This REST API retrieves a Header or a Footer.

Usage examples with cURL and Postman

~/{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.

You can carry out REST API interactions using cURL and Postman. Please read these instructions to receive a personal JWT_TOKEN for authorization.

Case 1: Get a Header or Footer in a Document

Case 2: Get a Header or Footer in a Section

Aspose.Words Cloud SDK Family

Using SDK is the best way to speed up the development. Please go to the GitHub repository to explore a wide family of our Cloud SDKs. These powerful libraries take care of all low-level programming details and let you focus on your primary tasks.

Usage examples in Python, Java, C#, etc.

The following code samples show how to interact with the REST API using almost any mainstream programming language.

You can find a lot of other examples in Python, Java, C#, JavaScript, PHP, C++, Golang, Ruby, Swift, Dart on GitHub. All codes are thoroughly tested and ready for production use.

Case 1: Get a Header or Footer in a Document

Case 2: Get a Header or Footer in a Section