Hi,
Hi,
You can use [Page.Header] and [Page.Footer] properties for this purpose.
Best Regards,
Hi,
You can loop through each page and use [Page.Header] and [Page.Footer] properties to get header and footer of the page.
Best Regards,
Hi there,
PdfContentEditor pce = new PdfContentEditor();<o:p></o:p>
pce.BindPdf(“input.pdf”);<o:p></o:p>
StampInfo[] infos = pce.GetStamps(1);<o:p></o:p>
foreach (StampInfo si in infos)<o:p></o:p>
{ Console.WriteLine(si.Text); }<o:p></o:p>
<o:p> </o:p>
And if we need to get text of header/footer added with Adobe Acrobat (not stamps added by Aspose software) Page.Artifacts property to read header and footer artifacts on the page.
foreach (Artifact artifact in doc.Page[1].Artifacts)<o:p></o:p>
{ if (artifact.Subtype == Artifact.ArtifactSubtype.Header || artifact.Subtype == Artifact.ArtifactSubtype.Footer)<o:p></o:p>
Console.WriteLine(artifact.Text);<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
<o:p>Please feel free to contact us for any further assistance.</o:p>
<o:p>
</o:p>
<o:p>Best Regards,</o:p>
Hi Muhammad,
Page.Header and Page.Footer is returning null values.
Can u share the code