Welcome Guest Search | Active Topics | Sign In | Register

Calling HtmlToPdf.ConvertHtml multiple times is overlapping content on the first page Options
Adam Saunders
Posted: Thursday, April 7, 2016 3:32:14 PM
Rank: Member
Groups: Member

Joined: 4/7/2016
Posts: 10
All the documentation and anything I find in the forums show that this should be working fine, but it's not and I can't see why.

I have a really simple bit of code

Quote:

var pdf = new EO.Pdf.PdfDocument();
pdf.Info.Creator = "The System";
pdf.Info.Author = "The Company";
pdf.Info.Title = "Mail Merged Letter";
pdf.Info.CreationDate = DateTime.UtcNow;

var sizeW = 8.5f; var sizeH = 11f;
var options = new HtmlToPdfOptions();
options.ZoomLevel = 1f;
var margin = marginSize / 60f;
options.OutputArea = new RectangleF(margin, margin, sizeW - (margin * 2), sizeH - (margin * 2));

HtmlToPdf.ConvertHtml(ParseTaggedText(html), pdf, options);
HtmlToPdf.ConvertHtml(ParseTaggedText(html2), pdf, options);
HtmlToPdf.ConvertHtml(ParseTaggedText(html3), pdf, options);

pdf.Save(fileStream);


When it renders the PDF, all of the content is shown overlapping on the first page. I'm using the latest versions. I've litterally just purchased a license today.

Any ideas?

eo_support
Posted: Friday, April 8, 2016 12:42:32 PM
Rank: Administration
Groups: Administration

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

We have confirmed this to be a bug on our end. We will fix it as soon as possible and reply again when the new build is posted. Sorry about the problem.

Thanks!
Adam Saunders
Posted: Friday, April 8, 2016 12:44:43 PM
Rank: Member
Groups: Member

Joined: 4/7/2016
Posts: 10
Thanks. At least it's not me going mad. I'm new to you guys, so wondered how long fixes like this generally take to go live?
eo_support
Posted: Friday, April 8, 2016 12:51:37 PM
Rank: Administration
Groups: Administration

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

This particular one will be a fast fix since the code change is very minimum. We have a new build scheduled to be released during the weekend and this fix should make into that build.

Thanks!
Adam Saunders
Posted: Friday, April 8, 2016 12:52:36 PM
Rank: Member
Groups: Member

Joined: 4/7/2016
Posts: 10
Excellent.. Thanks!!
eo_support
Posted: Friday, April 8, 2016 12:58:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
You are very welcome. Please feel free to let us know if there is anything else.
Adam Saunders
Posted: Monday, April 11, 2016 8:23:21 AM
Rank: Member
Groups: Member

Joined: 4/7/2016
Posts: 10
Just to let you know, the update you put out over the weekend has fixed the issue. Thanks for the rapid response with this!!
eo_support
Posted: Monday, April 11, 2016 10:02:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Thank you very much for confirming the fix!


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.