Extremely simple project to show and learn the use of DinkToPdf With RazorEngine to render a razor view as html template.

Getting started

  • Run the project
  • Execute endpoint /api/report
  • Get the pdf

Architecture

  • ASP.Net Web Api
  • .Net 4.7.2

Dependencies

Warning

You have to select the right version of libwkhtmltox.dll according to your OS and activate Copy always in its properties.

Thanks to

@WesCossick and @HazemKhaled for their Invoice template