diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-23 18:55:26 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-26 14:42:51 +0100 |
commit | c06007db0978041d6b60125929d0ca412f36e18e (patch) | |
tree | b2aec4da0a6205175b77c4485ab57deb9fe9c0e2 /apps/mudraw.c | |
parent | bbf2da4a518d02d83fd939fd716f09f4daa2546a (diff) | |
download | mupdf-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.c | 2 |
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 |