Export HTML to PDF in MVC 4 Application

I just solved my old obstacel, generate html to pdf, in Joniss project. I am using rotativa library for it.

Apparently it is so simple. First step is I create generator action then its action will be direct to which action and of course view want to generate to pdf. That’s it.

public ActionResult GeneratePDF(int ProNo)
{
return new Rotativa.ActionAsPdf("Details", new { ProNo = ProNo });
}