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?
|
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!
|