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