From 0dc2cbf8fedd5615898b09314d0c899c6e911baa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 19 May 2015 17:22:01 +0200 Subject: 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. --- platform/x11/x11_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/x11/x11_main.c') 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(); } } -- cgit v1.2.3