Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF Multiline footer? Options
Vasil Vasilev
Posted: Tuesday, April 23, 2013 9:15:35 AM
Rank: Newbie
Groups: Member

Joined: 4/23/2013
Posts: 4
Hello,
I want to put multiline footer in pdf document, but footer is always fixed size. I make HtmlToPdfOptions object in which I write the html code of footer, but it is too large and don't show everything in the pdf file. Please, help!

HtmlToPdfOptions options = new HtmlToPdfOptions();
options.BaseUrl = HttpContext.Current.Request.Url.AbsoluteUri.ToString();
options.PageSize = EO.Pdf.PdfPageSizes.A4;
options.FooterHtmlFormat = "<div>....<br />...</div>";
HtmlToPdf.ConvertHtml(strHTMLContent.ToString(), HttpContext.Current.Response.OutputStream, options);
eo_support
Posted: Tuesday, April 23, 2013 9:31:37 AM
Rank: Administration
Groups: Administration

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

Your code looks fine. You may want to adjust this property to see if you can get them displayed:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.footerhtmlposition.aspx

Thanks!
Vasil Vasilev
Posted: Tuesday, April 23, 2013 9:48:59 AM
Rank: Newbie
Groups: Member

Joined: 4/23/2013
Posts: 4
I tried to write:
options.FooterHtmlPosition = 20;
for example, but the footer disappear, what I should write here, because I couldn't find a example.
eo_support
Posted: Tuesday, April 23, 2013 8:47:39 PM
Rank: Administration
Groups: Administration

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

The position is in inches.

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.