summaryrefslogtreecommitdiff
path: root/source/gprf/gprf-doc.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2015-08-25 22:42:59 -0700
committerRobin Watts <robin.watts@artifex.com>2015-08-26 17:20:40 +0100
commitb3dab7e0ff1db43c5bc2cc306a0f6c1507125c4d (patch)
tree507cdfedd55bb6b4b8d9a9b86dc9b9db47845c4f /source/gprf/gprf-doc.c
parentdb3f7ffe32808fde89ce7696066c0b1276756703 (diff)
downloadmupdf-b3dab7e0ff1db43c5bc2cc306a0f6c1507125c4d.tar.xz
Make the ICC color path the default when rendering the gproof pages with gs.
Setting the default post rendering ICC profile to sRGB will make the ghostscript code use the ICC path with a SWOP CMYK device profile followed by a conversion to sRGB for the RGB content in the gproof file.
Diffstat (limited to 'source/gprf/gprf-doc.c')
-rw-r--r--source/gprf/gprf-doc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index 0e33e4c3..58591ae0 100644
--- a/source/gprf/gprf-doc.c
+++ b/source/gprf/gprf-doc.c
@@ -517,7 +517,7 @@ generate_page(fz_context *ctx, gprf_page *page)
#ifdef USE_GS_API
void *instance;
int code;
- char *argv[] = { "gs", "-sDEVICE=gproof", NULL, "-o", NULL, NULL, NULL, NULL, NULL };
+ char *argv[] = { "gs", "-sDEVICE=gproof", NULL, "-o", NULL, NULL, NULL, NULL, NULL, NULL};
char arg_res[32];
char arg_fp[32];
char arg_lp[32];
@@ -529,8 +529,9 @@ generate_page(fz_context *ctx, gprf_page *page)
argv[5] = arg_fp;
sprintf(arg_lp, "-dLastPage=%d", page->number+1);
argv[6] = arg_lp;
- argv[7] = "-I%rom%Resource/Init/";
- argv[8] = doc->pdf_filename;
+ argv[7] = "-sPostRenderProfile=srgb.icc";
+ argv[8] = "-I%rom%Resource/Init/";
+ argv[9] = doc->pdf_filename;
code = gsapi_new_instance(&instance, ctx);
if (code < 0)