diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-05-04 18:00:37 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-05-13 11:42:00 +0200 |
commit | 9dda5aa73d6dcb72c9f10b87564afe7491575faf (patch) | |
tree | 31c3e2b2fb16431ad7236f7a44e206a3a391061b /source/tools/pdfcreate.c | |
parent | 74d75a7a6f3ea4bef5b4489c65e8a876ae480c76 (diff) | |
download | mupdf-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/pdfcreate.c')
-rw-r--r-- | source/tools/pdfcreate.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c index 839e493e..77f0c819 100644 --- a/source/tools/pdfcreate.c +++ b/source/tools/pdfcreate.c @@ -11,9 +11,15 @@ static void usage(void) fprintf(stderr, "usage: mutool create [-o output.pdf] [-O options] page.txt [page2.txt ...]\n" "\t-o\tname of PDF file to create\n" - "\t-O\tPDF write options\n" - "\tpage.txt file defines page size, fonts, images and contents\n" + "\t-O\tcomma separated list of output options\n" + "\tpage.txt\tcontent stream with annotations for creating resources\n\n" + "Content stream special commands:\n" + "\t%%%%MediaBox LLX LLY URX URY\n" + "\t%%%%Rotate Angle\n" + "\t%%%%Font Name Filename (or base 14 font name)\n" + "\t%%%%Image Name Filename\n\n" ); + fprintf(stderr, "%s\n", fz_pdf_write_options_usage); exit(1); } |