Extremely simple project to show and learn the use of DinkToPdf With RazorEngine to render a razor view as html template.
- Run the project
- Execute endpoint /api/report
- Get the pdf
- ASP.Net Web Api
- .Net 4.7.2
- Autofac.WebApi
- DinkToPdf
- RazorEngine
- Library libwkhtmltox.dll
You have to select the right version of libwkhtmltox.dll according to your OS and activate Copy always in its properties.
@WesCossick and @HazemKhaled for their Invoice template