Rank: Newbie Groups: Member
Joined: 4/10/2014 Posts: 1
|
Hi, The mvc example you have in the sample documentation works ok when saving controller to pdf file, but it also outputs the content back to the calling page. I need to generate the pdf file by calling a different controller, don't return this output, but return the output of the calling controller.
Could you provide an example please?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please see if this is what you are looking for: http://www.essentialobjects.com/doc/4/web/mvc.aspx#saveYou can also call ConvertHtml/ConvertUrl directly if that fits your need better. MVCToPDF is built-in on top of ConvertHtml. It works by capturing the output HTML of your web page and then call ConvertHtml to convert that into PDF. However you already have the HTML or can easily get the HTML yourself, then you can bypass MVCToPDF and call ConvertHtml directly. Please let us know if you still have any questions. Thanks!
|