diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-05-19 17:22:01 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-05-19 17:22:53 +0200 |
commit | 0dc2cbf8fedd5615898b09314d0c899c6e911baa (patch) | |
tree | 7dd23ead25bcf9c7419700ffd27c68d95cbd6524 /platform/x11/x11_main.c | |
parent | 9adccf1e2697cc103715d3c2f916c04bdbcd516a (diff) | |
download | mupdf-0dc2cbf8fedd5615898b09314d0c899c6e911baa.tar.xz |
epub: User stylesheets.
Add -U option to mupdf and mudraw to set a user stylesheet.
Uses a context to store user the stylesheet, just like the AA level.
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r-- | platform/x11/x11_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 80c86a23..9fe3b955 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -835,7 +835,7 @@ int main(int argc, char **argv) pdfapp_init(ctx, &gapp); - while ((c = fz_getopt(argc, argv, "p:r:A:C:W:H:S:")) != -1) + while ((c = fz_getopt(argc, argv, "p:r:A:C:W:H:S:U:")) != -1) { switch (c) { @@ -852,6 +852,7 @@ int main(int argc, char **argv) case 'W': gapp.layout_w = fz_atof(fz_optarg); break; case 'H': gapp.layout_h = fz_atof(fz_optarg); break; case 'S': gapp.layout_em = fz_atof(fz_optarg); break; + case 'U': gapp.layout_css = fz_optarg; break; default: usage(); } } |