Working with Headers and Footers

How to Create Headers or Footers using DocumentBuilder

The code example given below shows how to create headers footers using DocumentBuilder.

Each section in a document can have up to three headers and up to three footers (for first, even and odd pages). If you want to delete all footers in a document you need to loop through all sections and remove every footer node.

How to Remove Footers and Leave Headers Intact

The code example given below deletes all footers from all sections, but leaves headers intact. You can download the template file of this example from here.