Marc Kupietz | ce1aa0c | 2023-06-15 07:50:23 +0200 | [diff] [blame] | 1 | #!/bin/sh -eu |
2 | in=$1 out=$2 page0=${3:-} page1=${4:-$page0} | ||||
Marc Kupietz | 84bb39d | 2023-06-20 15:34:48 +0200 | [diff] [blame^] | 3 | google-chrome --no-sandbox --headless=new --no-pdf-header-footer --print-to-pdf="$out".tmp "$in" |
Marc Kupietz | fb80dc5 | 2023-06-18 14:31:50 +0200 | [diff] [blame] | 4 | pdfseparate -f 1 -l 1 "$out".tmp $out |