summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/device.h18
-rw-r--r--include/mupdf/fitz/structured-text.h6
2 files changed, 9 insertions, 15 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index d65bfcb8..7e7efb43 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -170,11 +170,6 @@ fz_device *fz_keep_device(fz_context *ctx, fz_device *dev);
fz_enable_device_hints : Enable hints in a device.
hints: mask of hints to enable.
-
- For example: By default the draw device renders shadings. For some
- purposes (perhaps rendering fast low quality thumbnails) you may want
- to tell it to ignore shadings. For this you would enable the
- FZ_IGNORE_SHADE hint.
*/
void fz_enable_device_hints(fz_context *ctx, fz_device *dev, int hints);
@@ -182,22 +177,15 @@ void fz_enable_device_hints(fz_context *ctx, fz_device *dev, int hints);
fz_disable_device_hints : Disable hints in a device.
hints: mask of hints to disable.
-
- For example: By default the text extraction device ignores images.
- For some purposes however (such as extracting HTML) you may want to
- enable the capturing of image data too. For this you would disable
- the FZ_IGNORE_IMAGE hint.
*/
void fz_disable_device_hints(fz_context *ctx, fz_device *dev, int hints);
enum
{
/* Hints */
- FZ_IGNORE_IMAGE = 1,
- FZ_IGNORE_SHADE = 2,
- FZ_DONT_INTERPOLATE_IMAGES = 4,
- FZ_MAINTAIN_CONTAINER_STACK = 8,
- FZ_NO_CACHE = 16,
+ FZ_DONT_INTERPOLATE_IMAGES = 1,
+ FZ_MAINTAIN_CONTAINER_STACK = 2,
+ FZ_NO_CACHE = 4,
};
/*
diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h
index 6a861faa..26634fff 100644
--- a/include/mupdf/fitz/structured-text.h
+++ b/include/mupdf/fitz/structured-text.h
@@ -39,11 +39,16 @@ typedef struct fz_stext_page_s fz_stext_page;
option is deactivated any type of horizontal whitespace (including
horizontal tabs) will be replaced with space characters of variable
width.
+
+ FZ_STEXT_PRESERVE_IMAGES: If this option is set, then images will
+ be stored in the structured text structure. The default is to ignore
+ all images.
*/
enum
{
FZ_STEXT_PRESERVE_LIGATURES = 1,
FZ_STEXT_PRESERVE_WHITESPACE = 2,
+ FZ_STEXT_PRESERVE_IMAGES = 4,
};
/*
@@ -296,6 +301,7 @@ struct fz_stext_options_s
{
int flags;
};
+
/*
fz_parse_stext_options: Parse stext device options from a comma separated key-value string.
*/