From 8de9a416c4df45968ceb8b2119c7f40838514127 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 28 Aug 2015 12:25:22 +0100 Subject: 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. --- source/gprf/gprf-doc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gprf') 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 -- cgit v1.2.3