diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-01-19 12:48:22 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-01-19 12:48:22 +0100 |
commit | 3fc15ea7ee0ac5c09b9142bd1ac33c622381dda4 (patch) | |
tree | 5d229512f2db1c6e17ad0a2a8194e2da92e86fd5 /localps2pdfprepressrgb | |
parent | a254bc38f2f49625ab9dffd1609f2f592581b76a (diff) |
Add localps2pdf* scripts.
Diffstat (limited to 'localps2pdfprepressrgb')
-rwxr-xr-x | localps2pdfprepressrgb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/localps2pdfprepressrgb b/localps2pdfprepressrgb new file mode 100755 index 0000000..5da1e49 --- /dev/null +++ b/localps2pdfprepressrgb @@ -0,0 +1,16 @@ +#!/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" |