|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi! We use EO.Pdf to convert HTML files to PDF, and it's working nicely, but in the latest version the HTML footer is wider than the OutputArea we specify. It worked correctly in 3.0.79.2, but in 3.0.120.2 the footer is about half a centimeter too wide.
/Anders
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We tested this and it worked fine for us. Can you post a some test code to demonstrate the problem?
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi! Sure, here is a sample where the blue footer is a few mm wider than the red body.
Code: C#
HtmlToPdf.Options.PageSize = EO.Pdf.PdfPageSizes.A4;
var html = @"<body style=""background:red"">";
for (var i = 0; i < 1000; i++)
{
html += "testing ";
}
html += @"</body>";
HtmlToPdf.Options.FooterHtmlFormat = @"<div style=""background:blue"">footer</div>";
HtmlToPdf.Options.FooterHtmlPosition = HtmlToPdf.Options.PageSize.Height - 0.90f;
HtmlToPdf.Options.OutputArea = new RectangleF(0.8f, 0.5f, HtmlToPdf.Options.PageSize.Width - 1.00f, HtmlToPdf.Options.PageSize.Height - 1.40f);
var tempFile = "test.pdf";
HtmlToPdf.ConvertHtml(html, tempFile);
And here's what the actual PDF looks like: http://speedy.sh/REaGj/test.pdf/Anders
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Thanks for the test code. We have confirmed this to be a bug and will provide you an update build as soon as possible.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have posted a new build that should fix this problem. Please see your private message for the download location.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi, It worked great, thanks!
/Anders
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Great. Thanks for confirming the fix!
|
|
Rank: Member Groups: Member
Joined: 12/7/2007 Posts: 21
|
Is it possible to get a copy of this new build please, I have the same problem. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 5/4/2012 Posts: 6
|
I also have this issue - where can I get a hold of the new build?
Thanks Sarah
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi Sarah,
Please download it from our download page.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 5/4/2012 Posts: 6
|
Thank you - this has solved the fix
|
|