|
Rank: Advanced Member Groups: Member
Joined: 6/13/2012 Posts: 55
|
htmlToPdfOptions.StartPosition = -.75f; is ignored in the latest release.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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
|
|
Rank: Advanced Member Groups: Member
Joined: 6/13/2012 Posts: 55
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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
|
|
Rank: Advanced Member Groups: Member
Joined: 6/13/2012 Posts: 55
|
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;
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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!
|
|