diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-14 21:45:18 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-15 02:19:54 +0800 |
commit | a39339c8a26246fcf864946e8530bce4bf11343c (patch) | |
tree | 0b010fcbe3eaeaca0db029ae591ea6d014b0d873 /source/html | |
parent | e4f522c29a4887ab38415715ac52bf2add89bdfa (diff) | |
download | mupdf-a39339c8a26246fcf864946e8530bce4bf11343c.tar.xz |
Add interface indicating if a document is reflowable.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/epub-doc.c | 1 | ||||
-rw-r--r-- | source/html/html-doc.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index 541fb7eb..ec506409 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -425,6 +425,7 @@ epub_init(fz_context *ctx, fz_archive *zip) doc->super.count_pages = epub_count_pages; doc->super.load_page = epub_load_page; doc->super.lookup_metadata = epub_lookup_metadata; + doc->super.is_reflowable = 1; fz_try(ctx) { diff --git a/source/html/html-doc.c b/source/html/html-doc.c index 2e8b8ec4..f14ddc35 100644 --- a/source/html/html-doc.c +++ b/source/html/html-doc.c @@ -123,6 +123,7 @@ htdoc_open_document_with_stream(fz_context *ctx, fz_stream *file) doc->super.layout = htdoc_layout; doc->super.count_pages = htdoc_count_pages; doc->super.load_page = htdoc_load_page; + doc->super.is_reflowable = 1; doc->zip = fz_open_directory(ctx, "."); doc->set = fz_new_html_font_set(ctx); @@ -150,6 +151,7 @@ htdoc_open_document(fz_context *ctx, const char *filename) doc->super.count_pages = htdoc_count_pages; doc->super.load_page = htdoc_load_page; doc->super.lookup_metadata = htdoc_lookup_metadata; + doc->super.is_reflowable = 1; doc->zip = fz_open_directory(ctx, dirname); doc->set = fz_new_html_font_set(ctx); |