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