Convert HTML to PDF in a .NetCoreApp

Viewed 7724

Im developing a function in a .NetCoreApp Ver 1.1. Ive been looking for a way to convert HTML to PDF and other similar questions here on Stack recommended https://www.nuget.org/packages/HtmlRenderer.PdfSharp

But it seems it can be run in a .NetCoreApp. Are there any simple ways to convert HTML to PDF in a .NetCoreApp?

2 Answers

Nreco is nice, but today's free version (not LT, which is not free) is for .net core up to version 2. I have netcore 3.1 and will upgrade to 5 soon, so I searched further yesterday. After trying few popular, I found: https://www.nuget.org/packages/HiQPdf.Free.NetCore/

What are it's PRO's:

  1. It is lightweight, only 40 Mb. Others are minimum as twice bigger.
  2. It has all in one package functionality. You don't need any additional packages or Qt libraries or something else.
  3. There is a free version
Related