blob: 5da1e495deb0e59329064990efa5ba1c96a16624 (
plain)
- #!/bin/sh
- set -eu
- infile="$1"
- outfile="${2:-$(basename "$infile" .pdf)_rgb.pdf}"
- # https://stackoverflow.com/questions/20128656
- gs \
- -sDEVICE=pdfwrite \
- -dPDFSETTINGS=/prepress \
- -sProcessColorModel=DeviceRGB \
- -sColorConversionStrategy=RGB \
- -dOverrideICC \
- -o "$outfile" \
- -f "$infile"
|