MVCToPDF is a feature provided by EO.Pdf that allows you to render the
an ASP.NET MVC page to PDF.
Use it in your Application
To use MVCToPDF, simply reference EO.Pdf.dll and EO.Pdf.Mvc.dll, then apply attribute
RenderAsPDFAttribute to your action method. For example:
[HttpPost]
[RenderAsPDF]
public ActionResult Input(AddressModel m)
{
....
}
<HttpPost> _
<RenderAsPDF> _
Public Function Input(m As AddressModel) As ActionResult
....
End Function
The above code automatically triggers a conversion when the action is executed. You can
also trigger the conversion conditionally in code. See
here for more detailed
information on how to use this feature.
MVCToPDF feature is similar to ASPXToPDF, but is specifically designed for ASP.NET MVC pages.
Like ASPXToPDF, internally it uses EO.Pdf to perform the conversion, so almost all options
available to EO.Pdf are available to MVCToPDF.
|