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
I'm getting error when trying to use CSS. I'm using webkit wkhtmltopdf 0.10.0 rc2
/usr/bin/python2.7 report/html_to_pdf.py
Traceback (most recent call last):
File "report/html_to_pdf.py", line 7, in <module>
pdfkit.from_file('results_report.html', 'results_report.pdf', css=css)
File "/usr/local/lib/python2.7/dist-packages/pdfkit/api.py", line 46, in from_file
return r.to_pdf(output_path)
File "/usr/local/lib/python2.7/dist-packages/pdfkit/pdfkit.py", line 101, in to_pdf
input = self.source.to_s().encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 2149: ordinal not in range(128)
I'm getting error when trying to use CSS. I'm using webkit wkhtmltopdf 0.10.0 rc2
My code is:
The text was updated successfully, but these errors were encountered: