You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, on, ubuntu 14.04, I have it installed like this:
$ which wkhtmltopdf
/usr/bin/wkhtmltopdf
$wkhtmltopdf -V
Name:
wkhtmltopdf 0.9.9
...
I am using it like this:
valhtml:String="<html> .... "valpdf=Pdf("/usr/bin/wkhtmltopdf", PdfConfig.default)
valdestination=File.createTempFile("html2pdf", ".pdf")
valexitCode= pdf.run(html, destination)
if (exitCode !=0) Logger.error(s"PDF generation task exited with non-zero exitCode=$exitCode")
if (destination.length() ==0) Logger.warn(s"Generated PDF is empty")
But, I see that exitCode is 1 and the generated PDF is empty.
What's wrong? Why is it silently failing? It does not print any other helpful debug info at all! How can I make it print debug info and underlying error?
The text was updated successfully, but these errors were encountered:
This library works on my mac just fine.
But, on, ubuntu 14.04, I have it installed like this:
$ which wkhtmltopdf /usr/bin/wkhtmltopdf $wkhtmltopdf -V Name: wkhtmltopdf 0.9.9 ...
I am using it like this:
But, I see that exitCode is 1 and the generated PDF is empty.
What's wrong? Why is it silently failing? It does not print any other helpful debug info at all! How can I make it print debug info and underlying error?
The text was updated successfully, but these errors were encountered: