Add Header and Footer to PDF

Aspose.PDF for .NET enables you to add headers and footers to an existing PDF file. You can insert both images and text into the document.

The following code snippet also work with Aspose.PDF.Drawing library.

Adding Headers and Footers as Text Fragments

The following code snippet demonstrates how to add headers and footers as text fragments in a PDF using C#.

Adding Headers and Footers as HTML Fragments

The following code snippet demonstrates how to add headers and footers as HTML fragments to a PDF using C#.

Adding Headers and Footers as images

The following code snippet demonstrates how to add headers and footers as images to a PDF using C#.