Fetching Existing Header and footer of PDF Document

I could not able to fetch the existing Header and Footer of the attached document.

Tried using GetStamps and Artifacts but fails. Please provide the more information to fetch these header and Footer

Case: 1
Aspose.Pdf.Facades.PdfContentEditor pce = new Aspose.Pdf.Facades.PdfContentEditor();
Aspose.Pdf.Facades.StampInfo[] infos = pce.GetStamps(1);

Case: 2
Aspose.Pdf.ArtifactCollection artifact = doc.Pages[1].Artifacts;

withHeaderFooter.pdf (1.1 MB)


We would like to share with you that header/footer is not a separate entity in PDF documents. They can only be specified at the time of PDF generation. Once a PDF is generated, they become the part of PDF content. In your PDF document, header and footer are in text format and can be extracted as text. Please check following article(s) in API documentation to extract them: