You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
html_to_pdf/README.md

388 B

html_to_pdf

Install

pip install git+https://git.finnendahl.de/Yugon/html_to_pdf.git

API

In python :

import html_to_pdf as h2p

h2p.render_from_url("http://example.com", "out.pdf")
h2p.render_from_file("local_file.html", "out2.pdf")
h2p.render_from_string("<h1>Works</h1>", "out3.pdf")

As console script

html_to_pdf <input> -o <output>