summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfredrossperry <fredrossperry@gmail.com>2016-07-05 10:11:13 -0700
committerfredrossperry <fredrossperry@gmail.com>2016-07-06 11:14:43 -0700
commitcb894e713b2f60fef0a7e83ccb3a3d29589193bc (patch)
treee4efa455a21a87ece1f357059de12e19f460b60d
parent99f3402f454d2d526178a3ee96ab75cc33f8b18b (diff)
downloadmupdf-cb894e713b2f60fef0a7e83ccb3a3d29589193bc.tar.xz
Proofing - fix a bug in the use of gswin32.exe.
Surround the final filename parameter in quotes ("") so file and folder names with spaces can be used.
-rw-r--r--source/gprf/gprf-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index 77c24387..3b97d5ae 100644
--- a/source/gprf/gprf-doc.c
+++ b/source/gprf/gprf-doc.c
@@ -592,7 +592,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=gprf -r%d -o \"%s\" %s %s -I%%rom%%Resource/Init/ -dFirstPage=%d -dLastPage=%d %s",
+ sprintf(gs_command, "gswin32c.exe -sDEVICE=gprf -r%d -o \"%s\" %s %s -I%%rom%%Resource/Init/ -dFirstPage=%d -dLastPage=%d \"%s\"",
doc->res, filename, disp_profile, print_profile, page->number+1, page->number+1, doc->pdf_filename);
fz_system(ctx, gs_command);
#endif