Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
branch: master
Failed to load latest commit information.
.nuget beta
Rotativa.Demo no more link rewrite, introduced base tag
Rotativa.Tests no more link rewrite, introduced base tag
Rotativa.UnitTests reference fixing
Rotativa no more link rewrite, introduced base tag
packages beta
.gitignore beta
LICENSE Create LICENSE
README beta
README.markdown beta
Rotativa.sln beta
UpgradeLog.htm beta

README.markdown

Extremely easy way to create Pdf files from Asp.net MVC.

Usage:

public ActionResult PrintIndex()
{
    return new ActionAsPdf("Index", new { name = "Giorgio" }) { FileName = "Test.pdf" };
}

public ActionResult Index(string name)
{
    ViewBag.Message = string.Format("Hello {0} to ASP.NET MVC!", name);

    return View();
}

ViewAsPdf now available. It enables you to render a view as pdf in just one move, thanks to scoorf

public ActionResult TestViewWithModel(string id)
{
    var model = new TestViewModel {DocTitle = id, DocContent = "This is a test"};
    return new ViewAsPdf(model);
}

Also available a RouteAsPdf, UrlAsPdf and ViewAsPdf ActionResult.

It generates Pdf also from authorized actions (web forms authentication).

Something went wrong with that request. Please try again.