Welcome Guest Search | Active Topics | Sign In | Register

Controlling page headers and footers via html Options
Dimitri Daras
Posted: Tuesday, January 21, 2014 6:38:57 AM
Rank: Newbie
Groups: Member

Joined: 1/16/2014
Posts: 7
Hi. We need to control the generated pdf entirely through html. Part of our requirements is that a section in our document has page headers and footers, but this needs to be driven from html. The repeating table header/footer functionality almost achieves what we want, however, the footer does not sit against the bottom of the page. Is there a way of achieving this entirely through html?
eo_support
Posted: Tuesday, January 21, 2014 9:08:09 AM
Rank: Administration
Groups: Administration

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

You would just run the HTML to PDF converter without header and footer first. After that you can use the HTML to PDF converter or ACM interface to add the header/footer to any page. For example:

Code: C#
HtmlToPdf.ConvertHtml("header", doc.Pages[2]);


Would add text "header" to the 3rd page. Note that you will need to set HtmlToPdf.Options.OutputArea so that output will go to the header/footer area.

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.