Skip to content

Instantly share code, notes, and snippets.

@Zigr
Zigr / html2pdf.sh
Last active November 16, 2024 13:37
A quick way to get pdf version of online or local filesystem html file using linux htmldoc binary
#!/bin/sh
set -u
usage() {
script_name=$(basename $0)
cat << EOT
Usage: $script_name [-o -f -t] <path_or_url>
path_or_url input file name
-n output file name