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