|
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
|
|
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!
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
No. There is no way to do that. Sorry about it!
Thanks!
|
|