PDF .NET Library Logo

Setting different headers for different pages

The code sample demonstrates how to set different headers for different pages.

C# sample:

PDFDocument doc = new PDFDocument("sample.pdf");

doc.CurrentPage.Header.AddImage(new PDFImage("sample.bmp"));

doc.NewPage();

doc.CurrentPage.Header.AddText("Sample text");

doc.Save();

 

Back to PDF Code Library