Welcome Guest Search | Active Topics | Sign In | Register

Get HtmlDocument from PdfDocumentEventArgs (RenderAsPDF) Options
Rabobank Support
Posted: Monday, October 20, 2014 5:15:44 AM
Rank: Newbie
Groups: Member

Joined: 10/20/2014
Posts: 9
This is about MVCToPDF.

After converting a MVC View via MvcToPDF, I'm trying to locate various HTML elements, but cannot do so because the callback from PdfDocumentEventArgs does not contain the HtmlDocument attribute. I thus have to resort to ConvertUrl, which causes some problems for me due to complex authentication in our app.

Is it possible to still locate Html elements or get the HtmlDocument from the MVCToPDF.RenderAsPDF workflow?

thanks in advance
eo_support
Posted: Monday, October 20, 2014 9:46:14 PM
Rank: Administration
Groups: Administration

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

This appears to be a problem. We will add a static HtmlToPdf.Result property that will allow you to get the last conversion result. The new build should be ready in a few days. We will reply again as soon as the new build is ready.

Thanks!
eo_support
Posted: Wednesday, October 22, 2014 9:07:13 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that added HtmlToPdf.Result property:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdf.result.aspx

You can use this property to get the conversion result inside your post handler callback.

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.