|
Rank: Newbie Groups: Member
Joined: 8/17/2012 Posts: 2
|
Hi,
I have been using the 2013 PDF library and have decided to trial the latest 2016 library; as I am also working with MVC too. I am using the latest 2016 trial but the BeforeRenderPage event is not being called / executed:
EO.Pdf.HtmlToPdf.Options.BeforeRenderPage = new EO.Pdf.PdfPageEventHandler(On_BeforeRenderPage);
I use this to created headers, footers and watermarks.
Is there an issue in the latest or has this been depreciated?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is an issue in the latest build and we are still investigating it ---- it MAYBE depreciated if we can not implement it reliably (due to change of the browser engine). If that's the case, you will need to rely on AfterRenderPage event. We will reply again if we do implement BeforeRenderPage event.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/17/2012 Posts: 2
|
Thanks for the quick reply! Good luck!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We have just posted a new build (2016.0.21.0) that should fix this problem. Please download it from our download page and let us know how it goes.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/8/2016 Posts: 1
|
Thanks chaps!
I have downloaded latest and tested. There are improvements, however, still buggy. A couple of examples: 1. One cannot set EO.Pdf.HtmlToPdf.Options.OutputArea or EO.Pdf.HtmlToPdf.Options.PageSize for the main document and make use of EO.Pdf.HtmlToPdf.Options.BeforeRenderPage - the page always defaults to Portrait and the output is irregular. Even if you just call the event and do nothing in the method. Also, the FooterHtml does not render.
2. Making use of EO.Pdf.HtmlToPdf.Options.AfterRenderPage does not render Header or Footer. However, one can resize the page.
It just does not seem stable compared to previous releases.
I hope that helps?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please download build 2016.0.24.0 from our download page. This build fixed the page size issue.
Thanks!
|
|