I have created a pdf document and am going back through it to put in the headers, footers, page numbers and pages for the table of contents.
I can use:
Code: Visual Basic.NET
Dim refDiv As HtmlElement = result.HtmlDocument.GetElementById("TOCEntry_2_Target_ID")
Dim myHeading As String = refDiv.InnerText
to find my pre-marked headings in the html after rendering the document. But when I page through the pdfDocument to put in the page numbers, can't I look for the headings at that time? The header is dependent on which heading is on each page.
So ideally, as I go through each page of the document, I want to also check if any headings are on that page and depending on what I find, yes, display new header, no, display previous header.
What am I missing?
Thanks!