|
Rank: Newbie Groups: Member
Joined: 6/14/2016 Posts: 1
|
Hi How can I create full page width header and footer. Currently Headers and footers are shown with some margin on left and right. That margin actually requires for the content but I want my headers and footers to consume the full width of page.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, You can't use the built-in header footer feature to do this. You would just call ConvertHtml again to write the header/footer. You will need to: 1. Set HtmlToPdf.Options.OutputArea to the desired header/footer area; 2. Call this method to create the header/footer: http://www.essentialobjects.com/doc/eo.pdf.htmltopdf.converthtml_overload_3.aspxNote that the key is here the second argument is a PdfPage object. This tells the converter on which page to create the output. Hope this helps. Please let us know if you still have any questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/14/2016 Posts: 1
|
Hi, I´m trying to add a footer with 5 lines but it´s showing just 2 lines. How can I change the height of the footer?.
I´m using EO.Pdf.HtmlToPdf.Options.HeaderHtmlFormat = myFooter;(http://www.essentialobjects.com/doc/pdf/htmltopdf/header.aspx) to assign my footer html.
Thanks in advance.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Dejesus wrote:Hi, I´m trying to add a footer with 5 lines but it´s showing just 2 lines. How can I change the height of the footer?.
I´m using EO.Pdf.HtmlToPdf.Options.HeaderHtmlFormat = myFooter;(http://www.essentialobjects.com/doc/pdf/htmltopdf/header.aspx) to assign my footer html.
Thanks in advance. Hi, Please read the exact documentation link you posted again. I believe that article already answered your question. Thanks!
|
|