tutorcruncher / pydf

PDF generation in python using wkhtmltopdf for heroku and docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can pydf generate from URL directly?

cychongaspevo opened this issue · comments

In the "wkhtmltopdf.py" file it has mention "Generate a pdf from either a url or a html string", how to pass in generate via URL?

Yes, just try it

is it like this ?
pdf = pydf.generate_pdf("", url="https://www.google.com")

pydf.generate_pdf('https...')

Somehow, my pdf content has the url path instead of the content in the url. Is there anything I am missing? @samuelcolvin pydf.generate_pdf('https...')