weasyprint

weasyprint

TLDR

Render a HTML file to PDF

>_ weasyprint [path/to/input.html] [path/to/output].pdf
copy

Render a HTML file to PNG, including an additional user stylesheet

>_ weasyprint [path/to/input.html] [path/to/output].png --stylesheet [path/to/stylesheet.css]
copy

Output additional debugging information when rendering

>_ weasyprint [path/to/input.html] [path/to/output].pdf --verbose
copy

Specify a custom resolution when outputting to PNG

>_ weasyprint [path/to/input.html] [path/to/output].png --resolution [300]
copy

Specify a base url for relative urls in the input HTML file

>_ weasyprint [path/to/input.html] [path/to/output].png --base-url [url_or_filename]
copy

Copied to clipboard
free 100$ digital ocean credit