# Headers and Footers

> Add headers and footers in the Document Editor from JavaScript: for all or single sections, first and even pages, their text, distance and page number fields.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > Document Editor > Headers and Footers
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/llms-full.txt

---

## On This Page

- [How Headers and Footers Work](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#how-headers-and-footers-work)
- [Header and Footer Types](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#header-and-footer-types)
- [Add a Footer With Page Numbers](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#add-a-footer-with-page-numbers)
- [Give a Section Its Own Header](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#give-a-section-its-own-header)
- [React When a Header or Footer Is Edited](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#react-when-a-header-or-footer-is-edited)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/#next-steps)

---

## Nearby

- **Previous:** [Charts and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/charts-barcodes/llms.txt)
- **Next:** [Sections](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/sections/llms.txt)
