blob: 6967f9a837d119bb3acb4113920c90e8ce7b17fc [file] [log] [blame]
#!/bin/sh -eu
in=$1 out=$2 page0=${3:-} page1=${4:-$page0}
google-chrome --no-sandbox --headless --no-pdf-header-footer --print-to-pdf="$out".tmp "$in"
pdfseparate -f 1 -l 1 "$out".tmp $out