Welcome Guest Search | Active Topics | Sign In | Register

full width header and footer Options
Muhammad Jahanzeb
Posted: Tuesday, June 14, 2016 8:42:00 AM
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.
eo_support
Posted: Tuesday, June 14, 2016 9:29:09 AM
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.aspx

Note 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!
Dejesus
Posted: Wednesday, June 15, 2016 2:38:21 AM
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.
eo_support
Posted: Wednesday, June 15, 2016 11:21:56 AM
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!


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.