Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf.HtmlToPdf.ConvertHtml event after each page completes? Options
Brad Mathews
Posted: Wednesday, July 17, 2013 1:00:45 PM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
Hello,

I make some rather large PDFs and the user will think my site has hung while it is being built so I would like to implement some sort of progress bar or other progress update.

I am calling a function using HtmlToPdf.Options.AfterRenderPage to add my headers and footers, so I can capture that progress, however after some testing this appears to only fire after the entire document has been rendered, not after each page, and then loops through each page and calls the the AfterRenderPage function for that page.

Is there a way to get notified with some more granularity during the conversion?

Thanks!
Brad
eo_support
Posted: Wednesday, July 17, 2013 5:21:04 PM
Rank: Administration
Groups: Administration

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

Your observation is correct. Paging occurs AFTER the whole HTML document has been rendered ---- this is what takes most of the time. Only after paging your AfterRenderPage will be called. So by the time AfterRenderPage is called, the conversion is almost done.

Thanks!
Brad Mathews
Posted: Wednesday, July 17, 2013 5:55:57 PM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
So to confirm, there is no visibility into the rendering in progress at all? Is there some hack to do this, some undocumented event I can attach to?

Thanks,
Brad
eo_support
Posted: Wednesday, July 17, 2013 6:05:46 PM
Rank: Administration
Groups: Administration

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

No. There is no way to do that. Sorry about it!

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.