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