Welcome Guest Search | Active Topics | Sign In | Register

Before Render Page Event Options
Admelck
Posted: Wednesday, March 9, 2016 3:37:15 AM
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?
eo_support
Posted: Wednesday, March 9, 2016 9:08:09 AM
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!
Admelck
Posted: Wednesday, March 9, 2016 11:01:43 AM
Rank: Newbie
Groups: Member

Joined: 8/17/2012
Posts: 2
Thanks for the quick reply! Good luck!
eo_support
Posted: Saturday, March 12, 2016 9:14:33 PM
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!
Admelck
Posted: Sunday, March 13, 2016 5:53:19 PM
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?
eo_support
Posted: Tuesday, March 15, 2016 9:39:31 AM
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!


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.