diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-04 11:44:10 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-04 16:29:20 +0100 |
commit | 4ee34af1881ebab1ad8930a14b85d479a4e533d5 (patch) | |
tree | 47668a3ea6be4f875dd4ebfd50acddf2eec0ba4b | |
parent | 0a823aa5673277d917a9bc066c964391340584be (diff) | |
download | mupdf-4ee34af1881ebab1ad8930a14b85d479a4e533d5.tar.xz |
Mudraw: Avoid bounding pages twice when outputting text.
-rw-r--r-- | source/tools/mudraw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 194f0386..339e49ed 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -533,10 +533,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in fz_try(ctx) { fz_stext_options stext_options; - if (list) - fz_bound_display_list(ctx, list, &mediabox); - else - fz_bound_page(ctx, page, &mediabox); + stext_options.flags = (output_format == OUT_HTML) ? FZ_STEXT_PRESERVE_IMAGES : 0; text = fz_new_stext_page(ctx, &mediabox); dev = fz_new_stext_device(ctx, sheet, text, &stext_options); |