DinkToPdf icon indicating copy to clipboard operation
DinkToPdf copied to clipboard

Is this library dead?

Open ssougnez opened this issue 5 years ago • 8 comments

Hi,

I'm currently looking for a stable library to generate PDF and it looks like DinkToPdf is the most popular. However, I can see that the last version is almost 2 years old, that there are some very old open issues and some interesting PR pending (like, for example, the one including the native library in the NuGet package...)

Therefore, I'm wondering... Is this library not maintained anymore? To be honest, I just spent 30 min browsing Google to find a valid solution to generate PDF in .NET Core and it's very surprising that DinkToPdf is like the only realistic solution, so it would deserve a bit more attention.

Now, maybe this library is already perfect and does not need any improvements, if so, please excuse the question :-)

ssougnez avatar Jan 18 '19 22:01 ssougnez

I'm looking into a PDF creator as well. It appears this library won't run on IIS / Azure so it's pretty much not-done for me.

Alternatives I've found; https://code.msdn.microsoft.com/Convert-from-HTML-to-PDF-d63582e8 https://github.com/YetaWF/PDFsharp-.netcoreapp2.0 *

* = This is a fork of PDFSharp but it mentions in the README that the original version now also works in Core 2.2.

Miesvanderlippe avatar Jan 20 '19 08:01 Miesvanderlippe

Hi there !

I actually found that library recently but gave up on it after I read that I had to clone the project. After your comment I read the readme more carefully and saw that it is not needed anymore so I'll give it a shot.

If you try it and it works, can you post an update here ?

Thanks

ssougnez avatar Jan 20 '19 08:01 ssougnez

We could fork this and continue the development. Anyone wanna champion that?

andre-ss6 avatar Jan 23 '19 18:01 andre-ss6

In case you folks are looking for a (azure) asp net core DinkToPdf recipe: https://github.com/rdvojmoc/DinkToPdf/issues/70

@ssougnez: maybe there's not much to d, if the relevant wkhtmltopdf API does not change. But missing things could be added. Like conversion directly from a byte array instead of an html string.

@Miesvanderlippe: it does work with local IIS Express and on Azure (in an asp net core app service).

Plus I guess many people are just waiting for a (sane) way to use puppeteer-sharp/WebKit in azure asp core app services and azure functions. See https://github.com/kblok/puppeteer-sharp/issues

Casimodo72 avatar Feb 07 '19 10:02 Casimodo72

I forked it and did some fixes plus upgraded the binaries (wkhtmltopdf) to 0.12.5. I've included those in the NuGet package as well so it's a simple install. https://github.com/hakanl/DinkToPdf and here's the NuGet https://www.nuget.org/packages/Haukcode.DinkToPdf. I've tested it on Linux (docker), Mac OSX and Windows (only 64-bit though).

HakanL avatar Apr 24 '19 18:04 HakanL

I forked it and did some fixes plus upgraded the binaries (wkhtmltopdf) to 0.12.5. I've included those in the NuGet package as well so it's a simple install. https://github.com/hakanl/DinkToPdf and here's the NuGet https://www.nuget.org/packages/Haukcode.DinkToPdf. I've tested it on Linux (docker), Mac OSX and Windows (only 64-bit though).

Thank you, this actually works on Release x64 on IIS without any needed library modifications.

thelok avatar May 16 '19 18:05 thelok

I forked it and did some fixes plus upgraded the binaries (wkhtmltopdf) to 0.12.5. I've included those in the NuGet package as well so it's a simple install. https://github.com/hakanl/DinkToPdf and here's the NuGet https://www.nuget.org/packages/Haukcode.DinkToPdf. I've tested it on Linux (docker), Mac OSX and Windows (only 64-bit though).

Thank you very much!!!!!!

elreyponce avatar Mar 11 '20 12:03 elreyponce

An interesting alternative: https://github.com/jsreport/jsreport

https://henriquemauri.net/convertendo-html-para-pdf-com-o-jsreport-no-net/

silvairsoares avatar Sep 14 '23 17:09 silvairsoares