summaryrefslogtreecommitdiff
path: root/apps/mudraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-04-23 18:55:26 +0100
committerRobin Watts <robin.watts@artifex.com>2013-04-26 14:42:51 +0100
commitc06007db0978041d6b60125929d0ca412f36e18e (patch)
treeb2aec4da0a6205175b77c4485ab57deb9fe9c0e2 /apps/mudraw.c
parentbbf2da4a518d02d83fd939fd716f09f4daa2546a (diff)
downloadmupdf-c06007db0978041d6b60125929d0ca412f36e18e.tar.xz
Hint enabling/disabling for devices.
Add configuration functions to control the hints set on a given device. Use this to set whether image data is captured or not in the text extraction process. Also update the display list device to respect the device hints during playback.
Diffstat (limited to 'apps/mudraw.c')
-rw-r--r--apps/mudraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c
index 0d595759..ae6ccbd7 100644
--- a/apps/mudraw.c
+++ b/apps/mudraw.c
@@ -364,6 +364,8 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
fz_rect bounds;
text = fz_new_text_page(ctx, fz_bound_page(doc, page, &bounds));
dev = fz_new_text_device(ctx, sheet, text);
+ if (showtext == TEXT_HTML)
+ fz_disable_device_hints(dev, FZ_IGNORE_IMAGE);
if (list)
fz_run_display_list(list, dev, &fz_identity, &fz_infinite_rect, &cookie);
else