Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF Options
JP
Posted: Wednesday, October 24, 2018 9:48:46 AM
Rank: Newbie
Groups: Member

Joined: 10/24/2018
Posts: 3
Hi,

I am using EO Pdf to convert my html script to a PDF document. I am managing the content dynamically. Also set the options to following settings
var options = new HtmlToPdfOptions
{
PageSize = new SizeF(8.5f, 11f),
OutputArea = new RectangleF(0.75f, 0.75f, 6.75f, 9f),

HeaderHtmlFormat = "<p style='text-align: center; font-family: verdana; color: black;font-weight: bold;border-bottom: 1px solid black '>Test Report Header</p>",
FooterHtmlFormat = "<p style='text-align: center; font-family: verdana; color: black;font-weight: bold;'>Test Report Header | "+ asOfDate.Date.ToString("MM/dd/yyyy") + " | Page - <I>{page_number}</I></p>",

};

HtmlToPdf.ConvertHtml(textString, Path.Combine(destinationDirectory, tempFile+".pdf"), options);



But for each page the header height is changing automatic. Not sure what is going on. I am new to EO PDf lib and need some help.

Header 1

eo_support
Posted: Wednesday, October 24, 2018 9:59:18 AM
Rank: Administration
Groups: Administration

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

Do you mean that when you make a single ConvertHtml call that produces a single PDF file with multiple pages, and the headers are of different height in each page in the same PDF document?

Thanks
JP
Posted: Wednesday, October 24, 2018 10:46:51 AM
Rank: Newbie
Groups: Member

Joined: 10/24/2018
Posts: 3
Yes, It is a single call and making a multi page pdf. But for each page the header height increases automatically. not sure why.
eo_support
Posted: Wednesday, October 24, 2018 11:48:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,258
What version do you use? Have you tried if the latest build has the same problem?


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.