Convert HTML to PDF in a .NetCoreApp

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?

asked May 22, 2017 at 13:47 2,974 7 7 gold badges 45 45 silver badges 73 73 bronze badges Did you tried nuget.org/packages/HtmlRendererCore.PdfSharpCore ? Commented Feb 11, 2019 at 21:09

2 Answers 2

I have used this in .Net Core:

answered May 22, 2017 at 13:50 Mark Redman Mark Redman 24.5k 20 20 gold badges 95 95 silver badges 152 152 bronze badges

I tried it but the error message says: "NU1002 The dependency NReco.PdfGenerator 1.1.15 does not support framework .NETCoreApp,Version=v1.1."

Commented May 22, 2017 at 13:58 I use this one via nugget: NReco.PdfGenerator.LT Commented May 22, 2017 at 14:08 . using VS2017 .net core 1.1.1 libraries Commented May 22, 2017 at 14:09 @IdkWhy I have purchased a license but looks like there is a free version. Commented Jun 13, 2018 at 14:13

This page has a free download link: nrecosite.com/pdf_generator_net.aspx ..maybe it is the generator that you need, have you tried?

Commented Jun 13, 2018 at 14:17

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
answered Feb 10, 2021 at 7:23 Tropin Alexey Tropin Alexey 746 1 1 gold badge 8 8 silver badges 20 20 bronze badges

Related

Hot Network Questions

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.4.14806