summaryrefslogtreecommitdiff
path: root/source/gprf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-08-28 12:25:22 +0100
committerRobin Watts <robin.watts@artifex.com>2015-08-28 12:26:50 +0100
commit8de9a416c4df45968ceb8b2119c7f40838514127 (patch)
tree5e6ac4ce357a4bc595e8c9e789e01cb16661e936 /source/gprf
parent0d74c055c16c391a76c79cec4eb7636e72a407f9 (diff)
downloadmupdf-8de9a416c4df45968ceb8b2119c7f40838514127.tar.xz
Update gproof document handler to cope with renamed gs device.
Ghostscript device has been changed from gproof to gprf for sanity. Also update the non-gsapi calling code to use the same options as the gsapi calling code.
Diffstat (limited to 'source/gprf')
-rw-r--r--source/gprf/gprf-doc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index 58591ae0..3a761add 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, NULL};
+ char *argv[] = { "gs", "-sDEVICE=gprf", NULL, "-o", NULL, NULL, NULL, NULL, NULL, NULL};
char arg_res[32];
char arg_fp[32];
char arg_lp[32];
@@ -546,7 +546,7 @@ generate_page(fz_context *ctx, gprf_page *page)
fz_throw(ctx, FZ_ERROR_GENERIC, "GS run failed: %d", code);
#else
/* Invoke gs to convert to a temp file. */
- sprintf(gs_command, "gswin32c.exe -sDEVICE=gproof -r%d -o \"%s\" -dFirstPage=%d -dLastPage=%d %s",
+ sprintf(gs_command, "gswin32c.exe -sDEVICE=gprf -r%d -o \"%s\" -sPostRenderProfile=srgb.icc -I\%rom\%Resource/Init/ -dFirstPage=%d -dLastPage=%d %s",
doc->res, filename, page->number+1, page->number+1, doc->pdf_filename);
fz_system(ctx, gs_command);
#endif