Debian Codegraph @

mupdf_mod/mupdf/fitz/config.h

raw
1 // Copyright (C) 2004-2021 Artifex Software, Inc.
2 //
3 // This file is part of MuPDF.
4 //
5 // MuPDF is free software: you can redistribute it and/or modify it under the
6 // terms of the GNU Affero General Public License as published by the Free
7 // Software Foundation, either version 3 of the License, or (at your option)
8 // any later version.
9 //
10 // MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
11 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Affero General Public License
16 // along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
17 //
18 // Alternative licensing terms are available from the licensor.
19 // For commercial licensing, see <https://www.artifex.com/> or contact
20 // Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
21 // CA 94129, USA, for further information.
22
23 #ifndef FZ_CONFIG_H
24
25 #define FZ_CONFIG_H
26
27 /* willus mod */
28 #ifndef SHARE_JPEG
29 #define SHARE_JPEG
30 #endif
31
32 /**
33 Enable the following for spot (and hence overprint/overprint
34 simulation) capable rendering. This forces FZ_PLOTTERS_N on.
35 */
36 #define FZ_ENABLE_SPOT_RENDERING 1
37
38 /**
39 Choose which plotters we need.
40 By default we build all the plotters in. To avoid building
41 plotters in that aren't needed, define the unwanted
42 FZ_PLOTTERS_... define to 0.
43 */
44 /* #define FZ_PLOTTERS_G 1 */
45 /* #define FZ_PLOTTERS_RGB 1 */
46 /* #define FZ_PLOTTERS_CMYK 1 */
47 /* #define FZ_PLOTTERS_N 1 */
48
49 /**
50 Choose which document agents to include.
51 By default all are enabled. To avoid building unwanted
52 ones, define FZ_ENABLE_... to 0.
53 */
54 /* #define FZ_ENABLE_PDF 1 */
55 /* #define FZ_ENABLE_XPS 1 */
56 /* #define FZ_ENABLE_SVG 1 */
57 /* #define FZ_ENABLE_CBZ 1 */
58 /* #define FZ_ENABLE_IMG 1 */
59 /* #define FZ_ENABLE_HTML 1 */
60 /* #define FZ_ENABLE_EPUB 1 */
61
62 /**
63 Choose which document writers to include.
64 By default all are enabled. To avoid building unwanted
65 ones, define FZ_ENABLE_..._OUTPUT to 0.
66 */
67 /* #define FZ_ENABLE_OCR_OUTPUT 1 */
68 /* #define FZ_ENABLE_DOCX_OUTPUT 1 */
69 /* #define FZ_ENABLE_ODT_OUTPUT 1 */
70
71 /**
72 Choose whether to enable ICC color profiles.
73 */
74 /* #define FZ_ENABLE_ICC 1 */
75
76 /**
77 Choose whether to enable JPEG2000 decoding.
78 By default, it is enabled, but due to frequent security
79 issues with the third party libraries we support disabling
80 it with this flag.
81 */
82 /* #define FZ_ENABLE_JPX 1 */
83
84 /**
85 Choose whether to enable JavaScript.
86 By default JavaScript is enabled both for mutool and PDF
87 interactivity.
88 */
89 /* #define FZ_ENABLE_JS 1 */
90
91 /**
92 Choose which fonts to include.
93 By default we include the base 14 PDF fonts,
94 DroidSansFallback from Android for CJK, and
95 Charis SIL from SIL for epub/html.
96 Enable the following defines to AVOID including
97 unwanted fonts.
98 */
99 /* To avoid all noto fonts except CJK, enable: */
100 #define TOFU
101
102 /* To skip the CJK font, enable: (this implicitly enables TOFU_CJK_EXT
103 * and TOFU_CJK_LANG) */
104 /* #define TOFU_CJK */
105
106 /* To skip CJK Extension A, enable: (this implicitly enables
107 * TOFU_CJK_LANG) */
108 /* #define TOFU_CJK_EXT */
109
110 /* To skip CJK language specific fonts, enable: */
111 #define TOFU_CJK_LANG
112
113 /* To skip the Emoji font, enable: */
114 /* #define TOFU_EMOJI */
115
116 /* To skip the ancient/historic scripts, enable: */
117 /* #define TOFU_HISTORIC */
118
119 /* To skip the symbol font, enable: */
120 /* #define TOFU_SYMBOL */
121
122 /* To skip the SIL fonts, enable: */
123 /* #define TOFU_SIL */
124
125 /* To skip the Base14 fonts, enable: */
126 /* #define TOFU_BASE14 */
127 /* (You probably really don't want to do that except for measurement
128 * purposes!) */
129
130 /* ---------- DO NOT EDIT ANYTHING UNDER THIS LINE ---------- */
131
132 #ifndef FZ_ENABLE_SPOT_RENDERING
133 #define FZ_ENABLE_SPOT_RENDERING 1
134 #endif
135
136 #if FZ_ENABLE_SPOT_RENDERING
137 #undef FZ_PLOTTERS_N
138 #define FZ_PLOTTERS_N 1
139 #endif /* FZ_ENABLE_SPOT_RENDERING */
140
141 #ifndef FZ_PLOTTERS_G
142 #define FZ_PLOTTERS_G 1
143 #endif /* FZ_PLOTTERS_G */
144
145 #ifndef FZ_PLOTTERS_RGB
146 #define FZ_PLOTTERS_RGB 1
147 #endif /* FZ_PLOTTERS_RGB */
148
149 #ifndef FZ_PLOTTERS_CMYK
150 #define FZ_PLOTTERS_CMYK 1
151 #endif /* FZ_PLOTTERS_CMYK */
152
153 #ifndef FZ_PLOTTERS_N
154 #define FZ_PLOTTERS_N 1
155 #endif /* FZ_PLOTTERS_N */
156
157 /* We need at least 1 plotter defined */
158 #if FZ_PLOTTERS_G == 0 && FZ_PLOTTERS_RGB == 0 && FZ_PLOTTERS_CMYK == 0
159 #undef FZ_PLOTTERS_N
160 #define FZ_PLOTTERS_N 1
161 #endif
162
163 #ifndef FZ_ENABLE_PDF
164 #define FZ_ENABLE_PDF 1
165 #endif /* FZ_ENABLE_PDF */
166
167 #ifndef FZ_ENABLE_XPS
168 #define FZ_ENABLE_XPS 1
169 #endif /* FZ_ENABLE_XPS */
170
171 #ifndef FZ_ENABLE_SVG
172 #define FZ_ENABLE_SVG 0
173 #endif /* FZ_ENABLE_SVG */
174
175 #ifndef FZ_ENABLE_CBZ
176 #define FZ_ENABLE_CBZ 1
177 #endif /* FZ_ENABLE_CBZ */
178
179 #ifndef FZ_ENABLE_IMG
180 #define FZ_ENABLE_IMG 1
181 #endif /* FZ_ENABLE_IMG */
182
183 #ifndef FZ_ENABLE_HTML
184 #define FZ_ENABLE_HTML 0
185 #endif /* FZ_ENABLE_HTML */
186
187 #ifndef FZ_ENABLE_EPUB
188 #define FZ_ENABLE_EPUB 0
189 #endif /* FZ_ENABLE_EPUB */
190
191 #ifndef FZ_ENABLE_OCR_OUTPUT
192 #define FZ_ENABLE_OCR_OUTPUT 0
193 #endif /* FZ_ENABLE_OCR_OUTPUT */
194
195 #ifndef FZ_ENABLE_ODT_OUTPUT
196 #define FZ_ENABLE_ODT_OUTPUT 0
197 #endif /* FZ_ENABLE_ODT_OUTPUT */
198
199 #ifndef FZ_ENABLE_DOCX_OUTPUT
200 #define FZ_ENABLE_DOCX_OUTPUT 0
201 #endif /* FZ_ENABLE_DOCX_OUTPUT */
202
203 #ifndef FZ_ENABLE_JPX
204 #define FZ_ENABLE_JPX 1
205 #endif /* FZ_ENABLE_JPX */
206
207 #ifndef FZ_ENABLE_JS
208 #define FZ_ENABLE_JS 0
209 #endif /* FZ_ENABLE_JS */
210
211 #ifndef FZ_ENABLE_ICC
212 #define FZ_ENABLE_ICC 1
213 #endif /* FZ_ENABLE_ICC */
214
215 /* If Epub and HTML are both disabled, disable SIL fonts */
216 #if FZ_ENABLE_HTML == 0 && FZ_ENABLE_EPUB == 0
217 #undef TOFU_SIL
218 #define TOFU_SIL
219 #endif
220
221 #if !defined(HAVE_LEPTONICA) || !defined(HAVE_TESSERACT)
222 #ifndef OCR_DISABLED
223 #define OCR_DISABLED
224 #endif
225 #endif
226
227 #endif /* FZ_CONFIG_H */