summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-08-17 20:04:45 +0100
committerRobin Watts <robin.watts@artifex.com>2015-08-17 20:04:45 +0100
commitd7a0b01f1712c002e025123e2b16cec939362a73 (patch)
treefd07d7230bcb162b5fbd6cc0be9fd9b766e24fac /source
parent2f8f0425a7781f8dd2319ee2e271473542cc7187 (diff)
downloadmupdf-d7a0b01f1712c002e025123e2b16cec939362a73.tar.xz
GPrf: Alter gsapi invocation
Michael reports that adding -I%rom%Resource/Init/ to the args solves some problems by ensuring that the ROM filing system is used.
Diffstat (limited to 'source')
-rw-r--r--source/gprf/gprf-doc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index dbd43ff7..d69dac7f 100644
--- a/source/gprf/gprf-doc.c
+++ b/source/gprf/gprf-doc.c
@@ -495,7 +495,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 };
+ char *argv[] = { "gs", "-sDEVICE=gproof", NULL, "-o", NULL, NULL, NULL, NULL, NULL };
char arg_res[32];
char arg_fp[32];
char arg_lp[32];
@@ -507,7 +507,8 @@ 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] = doc->pdf_filename;
+ argv[7] = "-I%rom%Resource/Init/";
+ argv[8] = doc->pdf_filename;
code = gsapi_new_instance(&instance, ctx);
if (code < 0)