Documentation
¶
Overview ¶
Command html2pdf renders a static HTML file, or a fetched page, to a vector PDF.
html2pdf --in report.html --out report.pdf html2pdf --url https://example.org/report --out report.pdf
With --url the page is fetched through go-webengine's own client (charset decoding, redirects) and its final URL becomes the base for relative image sources; with --in, pass --base for the same when the file has relative images.
The single-dash spellings of earlier releases (-in, -out, -url, -margin, -media, -image-dpi, -base, -timeout) still work: main rewrites them to their POSIX form before cobra sees the arguments.
Click to show internal directories.
Click to hide internal directories.