I have a few dynamically-generated HTML/CSS code that worked great but then some that didn't, and of those that didn't all of them return this:
File "/home/vagrant/pyenv/versions/igbisportal/lib/python2.7/site-packages/pdfkit/pdfkit.py", line 119, in to_pdf
raise IOError("wkhtmltopdf exited with non-zero code {0}. error:\n{1}".format(exit_code, stderr.decode("utf-8")))
IOError: wkhtmltopdf exited with non-zero code 1. error:
There is no error message, any tips on how to debug this?
I suspected maybe an encoding problem?
I'm using pdfkit.from_string where the string is rendered from a chameleon template. Like I said, some work great, others don't, and I can't figure out a pattern. Would help if I had an error message??
Adam