Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Bug in 2018 release Options
Exameron
Posted: Tuesday, December 12, 2017 10:59:53 PM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2012
Posts: 51
htmlToPdfOptions.StartPosition = -.75f; is ignored in the latest release.
eo_support
Posted: Wednesday, December 13, 2017 8:41:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,678
Please check if you have set it every time. This property is automatically reset after every conversion.

If that's not the problem, please send us a test app and we will investigate further.

Thanks
Exameron
Posted: Wednesday, December 13, 2017 2:31:44 PM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2012
Posts: 51
The app this is in has gotten very large.

I was able to confirm on my end the only difference was swapping out the 2017 version vs the 2018 version.

Have you tested a negative start position with 2018 version?
eo_support
Posted: Wednesday, December 13, 2017 2:35:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,678
We did test it here. You need to isolate the problem into a test app and send us the test app, not your actual large real application, We will not look into that. See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx
Exameron
Posted: Sunday, December 31, 2017 7:44:34 PM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2012
Posts: 51
I tracked down the issue.

If the page begins with <div style="page-break-before: always;">... it ignores the negative start position in the latest release. This wasnt a problem in 2017 version.

So, the following html would start 1.5f down from the top of the first page, but it should start at 0f.

Code: C#
EO.Pdf.HtmlToPdfOptions htmlToPdfOptions = new EO.Pdf.HtmlToPdfOptions();
            htmlToPdfOptions.PageSize = new SizeF(16f, 9f);
            htmlToPdfOptions.OutputArea = new RectangleF(0.0f, 1.5f, 16f, 7.65f); 
            htmlToPdfOptions.StartPosition = -1.5f;
eo_support
Posted: Tuesday, January 9, 2018 4:13:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,678
Thanks for the test code and sorry for the delay. We were able to find the root of the problem and this will be fixed in our next build. We will reply again when the new build is posted.
eo_support
Posted: Tuesday, January 16, 2018 8:07:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,678
Hi,

This is just to let you know that we have posted a new build that should fix this problem. You can download the new build from our download page. Please take a look and let us know how it goes.

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.