summaryrefslogtreecommitdiff
path: root/localps2pdfprepressgray13
blob: fe9a1573ebc964c80bd7493189c06c43bf110c08 (plain)
  1. #!/bin/sh
  2. set -eu
  3. infile="$1"
  4. outfile="${2:-$(basename "$infile" .pdf)_gray13.pdf}"
  5. # https://stackoverflow.com/questions/20128656
  6. gs \
  7. -sDEVICE=pdfwrite \
  8. -dPDFSETTINGS=/prepress \
  9. -sProcessColorModel=DeviceGray \
  10. -sColorConversionStrategy=Gray \
  11. -dOverrideICC \
  12. -dCompatibilityLevel=1.3 \
  13. -o "$outfile" \
  14. -f "$infile"