After 10 hours and trying 4 other HTML to PDF tools I'm about ready to explode.
wkhtmltopdf sounds like an excellent solution...the problem is that I can't execute a process with enough permissions from asp.net so...
Process.Start("wkhtmltopdf.exe","http://www.google.com google.pdf");
starts but doesn't do anything.
Is there an easy way to either:
-a) allow asp.net to start processes (that can actually do something) or
-b) compile/wrap/whatever wkhtmltopdf.exe into somthing I can use from C# like this: WkHtmlToPdf.Save("http://www.google.com", "google.pdf");
You could also use Pechkin
.NET Wrapper for WkHtmlToPdf DLL, library that uses Webkit engine to convert HTML pages to PDF.
Nuget packages:
Pechkin.Synchronized
Pechkin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With