Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult.
This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
Please see the following URL for instructions and a demo link:
This uses the newer version/licence of iText/iTextXmlWorker and can process the html that is produced from your views.
Install-Package MvcRazorToPdf -Version 1.0.2
dotnet add package MvcRazorToPdf --version 1.0.2
<PackageReference Include="MvcRazorToPdf" Version="1.0.2" />
paket add MvcRazorToPdf --version 1.0.2
#r "nuget: MvcRazorToPdf, 1.0.2"
// Install MvcRazorToPdf as a Cake Addin #addin nuget:?package=MvcRazorToPdf&version=1.0.2 // Install MvcRazorToPdf as a Cake Tool #tool nuget:?package=MvcRazorToPdf&version=1.0.2
Resolved issues thanks to ElanHasson.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.