summaryrefslogtreecommitdiff
path: root/source/tools/pdfmerge.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-04 18:00:37 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-13 11:42:00 +0200
commit9dda5aa73d6dcb72c9f10b87564afe7491575faf (patch)
tree31c3e2b2fb16431ad7236f7a44e206a3a391061b /source/tools/pdfmerge.c
parent74d75a7a6f3ea4bef5b4489c65e8a876ae480c76 (diff)
downloadmupdf-9dda5aa73d6dcb72c9f10b87564afe7491575faf.tar.xz
Add long output option parsing.
Use comma-separated list of flags and key/value pairs, for example: "linearize,resolution=72,colorspace=gray"
Diffstat (limited to 'source/tools/pdfmerge.c')
-rw-r--r--source/tools/pdfmerge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/tools/pdfmerge.c b/source/tools/pdfmerge.c
index f63a90c7..597bd4ce 100644
--- a/source/tools/pdfmerge.c
+++ b/source/tools/pdfmerge.c
@@ -11,10 +11,11 @@ static void usage(void)
fprintf(stderr,
"usage: mutool merge [-o output.pdf] [-O options] input.pdf [pages] [input2.pdf] [pages2] ...\n"
"\t-o\tname of PDF file to create\n"
- "\t-O\tPDF write options\n"
- "\tinput.pdf\tname of first PDF file from which we are copying pages\n"
- "\tpages: comma separated list of page ranges (for example: 1-5,6,10-)\n"
+ "\t-O\tcomma separated list of output options\n"
+ "\tinput.pdf\tname of input file from which to copy pages\n"
+ "\tpages\tcomma separated list of page ranges to copy (for example: 1-5,6,10-)\n\n"
);
+ fprintf(stderr, "%s\n", fz_pdf_write_options_usage);
exit(1);
}