Pdfkit - Returns A Blank Pdf With Only Requested Url
I'm trying to render a webpage with pdfkit My code: import pdfkit config = pdfkit.configuration(wkhtmltopdf='/Library/Python/2.7/site-packages/wkhtmltopdf/wkhtmltopdf') pdfkit.from
This works fine with me:
>>>import pdfkit>>>pdfkit.from_url('http://stackoverflow.com', 'out.pdf')
What is your pdfkit
and wkhtmltopdf
version?
If your job is only calling one simple page, you can also do something like directly:
>>>import os>>>os.system('wkhtmltopdf http://stackoverflow.com out.pdf')
Post a Comment for "Pdfkit - Returns A Blank Pdf With Only Requested Url"