Welcome Guest Search | Active Topics | Sign In | Register

Find headings in pdfDocument Options
Becky
Posted: Friday, May 25, 2012 7:11:19 PM
Rank: Advanced Member
Groups: Member

Joined: 5/24/2012
Posts: 45
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!
eo_support
Posted: Friday, May 25, 2012 7:26:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You understood it correctly. You can only get your marker after the conversion. What you ned to do is to run the converter for a second time. Expert for the second time you will use the version that take a PdfPage object. That allows you to output to an existing page.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.