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 /source/html/epub-doc.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 'source/html/epub-doc.c')
-rw-r--r-- | source/html/epub-doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index 712d5804..a2871889 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -195,7 +195,7 @@ epub_parse_chapter(fz_context *ctx, epub_document *doc, const char *path) fz_write_buffer_byte(ctx, buf, 0); ch = fz_malloc_struct(ctx, epub_chapter); - ch->box = fz_parse_html(ctx, doc->set, zip, base_uri, buf, NULL); + ch->box = fz_parse_html(ctx, doc->set, zip, base_uri, buf, fz_user_css(ctx)); ch->next = NULL; fz_drop_buffer(ctx, buf); |