CmdID

CmdID / Commands

weasyprint

Render HTML to PDF or PNG. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Render an HTML file to PDF

weasyprint path/to/input.html path/to/output.pdfIdentify

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

weasyprint path/to/input.html path/to/output.png --stylesheet path/to/stylesheet.cssIdentify

Output additional debugging information when rendering

weasyprint path/to/input.html path/to/output.pdf --verboseIdentify

Specify a custom resolution when outputting to PNG

weasyprint path/to/input.html path/to/output.png --resolution 300Identify

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_filenameIdentify