comparison src_classic/_config.h @ 1:1d09e1dec1d9 upstream

ADD: PyMuPDF v1.26.4: the original sdist. It does not yet contain MuPDF. This normally will be downloaded when building PyMuPDF.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:37:51 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 1:1d09e1dec1d9
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 /**
28 Enable the following for spot (and hence overprint/overprint
29 simulation) capable rendering. This forces FZ_PLOTTERS_N on.
30 */
31 /* #define FZ_ENABLE_SPOT_RENDERING 1 */
32
33 /**
34 Choose which plotters we need.
35 By default we build all the plotters in. To avoid building
36 plotters in that aren't needed, define the unwanted
37 FZ_PLOTTERS_... define to 0.
38 */
39 /* #define FZ_PLOTTERS_G 1 */
40 /* #define FZ_PLOTTERS_RGB 1 */
41 /* #define FZ_PLOTTERS_CMYK 1 */
42 /* #define FZ_PLOTTERS_N 1 */
43
44 /**
45 Choose which document agents to include.
46 By default all are enabled. To avoid building unwanted
47 ones, define FZ_ENABLE_... to 0.
48 */
49 /* #define FZ_ENABLE_PDF 1 */
50 /* #define FZ_ENABLE_XPS 1 */
51 /* #define FZ_ENABLE_SVG 1 */
52 /* #define FZ_ENABLE_CBZ 1 */
53 /* #define FZ_ENABLE_IMG 1 */
54 /* #define FZ_ENABLE_HTML 1 */
55 /* #define FZ_ENABLE_EPUB 1 */
56
57 /**
58 Choose which document writers to include.
59 By default all are enabled. To avoid building unwanted
60 ones, define FZ_ENABLE_..._OUTPUT to 0.
61 */
62 /* #define FZ_ENABLE_OCR_OUTPUT 1 */
63 /* #define FZ_ENABLE_DOCX_OUTPUT 1 */
64 /* #define FZ_ENABLE_ODT_OUTPUT 1 */
65
66 /**
67 Choose whether to enable ICC color profiles.
68 */
69 /* #define FZ_ENABLE_ICC 1 */
70
71 /**
72 Choose whether to enable JPEG2000 decoding.
73 By default, it is enabled, but due to frequent security
74 issues with the third party libraries we support disabling
75 it with this flag.
76 */
77 /* #define FZ_ENABLE_JPX 1 */
78
79 /**
80 Choose whether to enable JavaScript.
81 By default JavaScript is enabled both for mutool and PDF
82 interactivity.
83 */
84 /* #define FZ_ENABLE_JS 1 */
85
86 /**
87 Choose which fonts to include.
88 By default we include the base 14 PDF fonts,
89 DroidSansFallback from Android for CJK, and
90 Charis SIL from SIL for epub/html.
91 Enable the following defines to AVOID including
92 unwanted fonts.
93 */
94 /* To avoid all noto fonts except CJK, enable: */
95 /* #define TOFU */
96
97 /* To skip the CJK font, enable: (this implicitly enables TOFU_CJK_EXT
98 * and TOFU_CJK_LANG) */
99 /* #define TOFU_CJK */
100
101 /* To skip CJK Extension A, enable: (this implicitly enables
102 * TOFU_CJK_LANG) */
103 #define TOFU_CJK_EXT 1
104
105 /* To skip CJK language specific fonts, enable: */
106 /* #define TOFU_CJK_LANG */
107
108 /* To skip the Emoji font, enable: */
109 /* #define TOFU_EMOJI */
110
111 /* To skip the ancient/historic scripts, enable: */
112 /* #define TOFU_HISTORIC */
113
114 /* To skip the symbol font, enable: */
115 /* #define TOFU_SYMBOL */
116
117 /* To skip the SIL fonts, enable: */
118 /* #define TOFU_SIL */
119
120 /* To skip the Base14 fonts, enable: */
121 /* #define TOFU_BASE14 */
122 /* (You probably really don't want to do that except for measurement
123 * purposes!) */
124
125 /* ---------- DO NOT EDIT ANYTHING UNDER THIS LINE ---------- */
126
127 #ifndef FZ_ENABLE_SPOT_RENDERING
128 #define FZ_ENABLE_SPOT_RENDERING 1
129 #endif
130
131 #if FZ_ENABLE_SPOT_RENDERING
132 #undef FZ_PLOTTERS_N
133 #define FZ_PLOTTERS_N 1
134 #endif /* FZ_ENABLE_SPOT_RENDERING */
135
136 #ifndef FZ_PLOTTERS_G
137 #define FZ_PLOTTERS_G 1
138 #endif /* FZ_PLOTTERS_G */
139
140 #ifndef FZ_PLOTTERS_RGB
141 #define FZ_PLOTTERS_RGB 1
142 #endif /* FZ_PLOTTERS_RGB */
143
144 #ifndef FZ_PLOTTERS_CMYK
145 #define FZ_PLOTTERS_CMYK 1
146 #endif /* FZ_PLOTTERS_CMYK */
147
148 #ifndef FZ_PLOTTERS_N
149 #define FZ_PLOTTERS_N 1
150 #endif /* FZ_PLOTTERS_N */
151
152 /* We need at least 1 plotter defined */
153 #if FZ_PLOTTERS_G == 0 && FZ_PLOTTERS_RGB == 0 && FZ_PLOTTERS_CMYK == 0
154 #undef FZ_PLOTTERS_N
155 #define FZ_PLOTTERS_N 1
156 #endif
157
158 #ifndef FZ_ENABLE_PDF
159 #define FZ_ENABLE_PDF 1
160 #endif /* FZ_ENABLE_PDF */
161
162 #ifndef FZ_ENABLE_XPS
163 #define FZ_ENABLE_XPS 1
164 #endif /* FZ_ENABLE_XPS */
165
166 #ifndef FZ_ENABLE_SVG
167 #define FZ_ENABLE_SVG 1
168 #endif /* FZ_ENABLE_SVG */
169
170 #ifndef FZ_ENABLE_CBZ
171 #define FZ_ENABLE_CBZ 1
172 #endif /* FZ_ENABLE_CBZ */
173
174 #ifndef FZ_ENABLE_IMG
175 #define FZ_ENABLE_IMG 1
176 #endif /* FZ_ENABLE_IMG */
177
178 #ifndef FZ_ENABLE_HTML
179 #define FZ_ENABLE_HTML 1
180 #endif /* FZ_ENABLE_HTML */
181
182 #ifndef FZ_ENABLE_EPUB
183 #define FZ_ENABLE_EPUB 1
184 #endif /* FZ_ENABLE_EPUB */
185
186 #ifndef FZ_ENABLE_OCR_OUTPUT
187 #define FZ_ENABLE_OCR_OUTPUT 1
188 #endif /* FZ_ENABLE_OCR_OUTPUT */
189
190 #ifndef FZ_ENABLE_ODT_OUTPUT
191 #define FZ_ENABLE_ODT_OUTPUT 1
192 #endif /* FZ_ENABLE_ODT_OUTPUT */
193
194 #ifndef FZ_ENABLE_DOCX_OUTPUT
195 #define FZ_ENABLE_DOCX_OUTPUT 1
196 #endif /* FZ_ENABLE_DOCX_OUTPUT */
197
198 #ifndef FZ_ENABLE_JPX
199 #define FZ_ENABLE_JPX 1
200 #endif /* FZ_ENABLE_JPX */
201
202 #ifndef FZ_ENABLE_JS
203 #define FZ_ENABLE_JS 1
204 #endif /* FZ_ENABLE_JS */
205
206 #ifndef FZ_ENABLE_ICC
207 #define FZ_ENABLE_ICC 1
208 #endif /* FZ_ENABLE_ICC */
209
210 /* If Epub and HTML are both disabled, disable SIL fonts */
211 #if FZ_ENABLE_HTML == 0 && FZ_ENABLE_EPUB == 0
212 #undef TOFU_SIL
213 #define TOFU_SIL
214 #endif
215
216 #if !defined(HAVE_LEPTONICA) || !defined(HAVE_TESSERACT)
217 #ifndef OCR_DISABLED
218 #define OCR_DISABLED
219 #endif
220 #endif
221
222 #endif /* FZ_CONFIG_H */