comparison src_classic/helper-globals.i @ 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 %{
2 /*
3 # ------------------------------------------------------------------------
4 # Copyright 2020-2022, Harald Lieder, mailto:harald.lieder@outlook.com
5 # License: GNU AFFERO GPL 3.0, https://www.gnu.org/licenses/agpl-3.0.html
6 #
7 # Part of "PyMuPDF", a Python binding for "MuPDF" (http://mupdf.com), a
8 # lightweight PDF, XPS, and E-book viewer, renderer and toolkit which is
9 # maintained and developed by Artifex Software, Inc. https://artifex.com.
10 # ------------------------------------------------------------------------
11 */
12 // Global switches
13 // Switch for device hints = no cache
14 static int no_device_caching = 0;
15
16 // Switch for computing glyph of fontsize height
17 static int small_glyph_heights = 0;
18
19 // Switch for returning fontnames including subset prefix
20 static int subset_fontnames = 0;
21
22 // Unset ascender / descender corrections
23 static int skip_quad_corrections = 0;
24
25 // constants: error messages
26 static const char MSG_BAD_ANNOT_TYPE[] = "bad annot type";
27 static const char MSG_BAD_APN[] = "bad or missing annot AP/N";
28 static const char MSG_BAD_ARG_INK_ANNOT[] = "arg must be seq of seq of float pairs";
29 static const char MSG_BAD_ARG_POINTS[] = "bad seq of points";
30 static const char MSG_BAD_BUFFER[] = "bad type: 'buffer'";
31 static const char MSG_BAD_COLOR_SEQ[] = "bad color sequence";
32 static const char MSG_BAD_DOCUMENT[] = "cannot open broken document";
33 static const char MSG_BAD_FILETYPE[] = "bad filetype";
34 static const char MSG_BAD_LOCATION[] = "bad location";
35 static const char MSG_BAD_OC_CONFIG[] = "bad config number";
36 static const char MSG_BAD_OC_LAYER[] = "bad layer number";
37 static const char MSG_BAD_OC_REF[] = "bad 'oc' reference";
38 static const char MSG_BAD_PAGEID[] = "bad page id";
39 static const char MSG_BAD_PAGENO[] = "bad page number(s)";
40 static const char MSG_BAD_PDFROOT[] = "PDF has no root";
41 static const char MSG_BAD_RECT[] = "rect is infinite or empty";
42 static const char MSG_BAD_TEXT[] = "bad type: 'text'";
43 static const char MSG_BAD_XREF[] = "bad xref";
44 static const char MSG_COLOR_COUNT_FAILED[] = "color count failed";
45 static const char MSG_FILE_OR_BUFFER[] = "need font file or buffer";
46 static const char MSG_FONT_FAILED[] = "cannot create font";
47 static const char MSG_IS_NO_ANNOT[] = "is no annotation";
48 static const char MSG_IS_NO_IMAGE[] = "is no image";
49 static const char MSG_IS_NO_PDF[] = "is no PDF";
50 static const char MSG_IS_NO_DICT[] = "object is no PDF dict";
51 static const char MSG_PIX_NOALPHA[] = "source pixmap has no alpha";
52 static const char MSG_PIXEL_OUTSIDE[] = "pixel(s) outside image";
53 %}