From 4ee34af1881ebab1ad8930a14b85d479a4e533d5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 4 Jul 2017 11:44:10 +0100 Subject: Mudraw: Avoid bounding pages twice when outputting text. --- source/tools/mudraw.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/tools') 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); -- cgit v1.2.3