summaryrefslogtreecommitdiff
path: root/pdfutils/html2pdf
blob: 8da0139b7588b8b17277e4c887600145143603bd (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu

[ "$#" -gt 0 ] || exit 1

for i in "$@"
do
	chromium-browser --headless --no-pdf-header-footer --print-to-pdf="$(basename "$i").cr.pdf" "$i"
done