eric.savage-clyral
-
11/6/2012 4:10:09 AM
Render document html for PDF download
I am implementing an option to download a page content as PDF. I can't see any documentation on how to do this, so my best attempt so far is to implement an MVC controller and return a FileContentResult, generating the PDF with Winnovative.
However, I'm trying to generate the html in the controller if I pass in a url as a parameter on the action. How can I do this? I get as far as retrieving the TreeNode, but I don't know what to do with it. Could you advise? And if there's a better way to achieve PDF rendering and download, perhaps you can point me in the right direction as I couldn't see documentation (we won't use the ABC pdf option).
|