DinkToPdf
DinkToPdf copied to clipboard
Is this library dead?
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 :-)
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.
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
We could fork this and continue the development. Anyone wanna champion that?
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
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).
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.
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!!!!!!
An interesting alternative: https://github.com/jsreport/jsreport
https://henriquemauri.net/convertendo-html-para-pdf-com-o-jsreport-no-net/