diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-12-27 12:45:28 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-12-27 15:06:51 +0100 |
commit | 6975007f314a4c392e2cb616e7c3297ed167c2a7 (patch) | |
tree | f93ba7411656efb1d3387009db59597252af634e /include | |
parent | c21d2afbe921fb8b12e07a2eccdf7cf7a0e2bf61 (diff) | |
download | mupdf-6975007f314a4c392e2cb616e7c3297ed167c2a7.tar.xz |
Bug 697455: Make JPX support optional via configuration flag.
Set FZ_ENABLE_JPX=0 in XCFLAGS or include/mupdf/fitz/config.h to disable
support for JPX at compile time.
Be aware that this may break support for PDF 1.5 and later files that
need JPEG2000 support.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/config.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mupdf/fitz/config.h b/include/mupdf/fitz/config.h index 995ac87b..97d399b9 100644 --- a/include/mupdf/fitz/config.h +++ b/include/mupdf/fitz/config.h @@ -30,6 +30,14 @@ /* #define FZ_ENABLE_GPRF 1 */ /* + Choose whether to enable JPEG2000 decoding. + By default, it is enabled, but due to frequent security + issues with the third party libraries we support disabling + it with this flag. +*/ +/* #define FZ_ENABLE_JPX 1 */ + +/* Choose whether to enable JavaScript. By default JavaScript is enabled both for mutool and PDF interactivity. */ @@ -131,6 +139,10 @@ #define FZ_ENABLE_GPRF 0 #endif /* FZ_ENABLE_GPRF */ +#ifndef FZ_ENABLE_JPX +#define FZ_ENABLE_JPX 1 +#endif /* FZ_ENABLE_JPX */ + #ifndef FZ_ENABLE_JS #define FZ_ENABLE_JS 1 #endif /* FZ_ENABLE_JS */ |