Help us shape the future of Go! Take the 2026 Go Developer Survey

html2pdf

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL