summaryrefslogtreecommitdiff
path: root/source/gprf/gprf-doc.c
diff options
context:
space:
mode:
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)