Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.
Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.
RazorPDF is a good alternative, but is incompatible with iTextSharp version 5 or higher. With that in mind, I developed RazorPDF2 .
Here are some examples of use . Basically, define your View normally, but use PdfActionResult
or PdfResult
to return the result. PdfActionResult
works with normal HTML. PdfResult
works with the iTextSharp markup syntax up to version 4.
There is Rotative , but that does not work on Azure.
How much do we work with .NET development (though most of it does today) has a package repository that is called in the .NET world. NUGET < a>.
There are several, I would recommend this: RazorPDF for MVC - Generate PDFs with ... 1.0.0 and have the tutorial at this link: RazorPDF . Just remembering that it generates from a View a PDF!
If you want to search for another package click on this search link .