Skip to content

webgio/Rotativa.AspNetCore

Repository files navigation

Rotativa.AspNetCore for .Net core 3.1, .Net 5, .Net 6, .Net 7

Rotativa for Asp.Net Core, easy Pdf from Razor views for .Net core 3.1, .Net 5, .Net 6, .Net 7.

Docs are in the making. Should work almost exactly as Rotativa https://github.com/webgio/Rotativa

Install with nuget.org:

https://www.nuget.org/packages/Rotativa.AspNetCore

Please give feedback!

Needs configuration

Basic configuration done in Program.cs (.net 6 or 7, beta package):

app.UseRotativa();

or, if using .Net Core 3.1 and .Net 5:

app.UseRotativa(env);

Make sure you have a folder with the wkhtmltopdf.exe file accessible by the process running the web app. By default it searches in a folder named "Rotativa" in the root of the web app. If you need to change that use the optional parameter to the Setup call RotativaConfiguration.Setup(env, "path/relative/to/root")

Issues and Pull Request

Contribution is welcomed. If you would like to provide a PR please add some testing.

rotativa.io

rotativa.io is an API (SaaS) version of Rotativa, hosted on Azure. Works with just a HTTP call, no need to host the process on your server. You can register for free.