From 3fc15ea7ee0ac5c09b9142bd1ac33c622381dda4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 19 Jan 2015 12:48:22 +0100 Subject: Add localps2pdf* scripts. --- localps2pdfprepressrgb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 localps2pdfprepressrgb (limited to 'localps2pdfprepressrgb') 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" -- cgit v1.2.3