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