PyMuPDF 1.24.11__cp38-abi3-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. PyMuPDF-1.24.11.dist-info/COPYING +1 -0
  2. PyMuPDF-1.24.11.dist-info/METADATA +83 -0
  3. PyMuPDF-1.24.11.dist-info/README.md +60 -0
  4. PyMuPDF-1.24.11.dist-info/RECORD +99 -0
  5. PyMuPDF-1.24.11.dist-info/WHEEL +4 -0
  6. PyMuPDF-1.24.11.dist-info/entry_points.txt +3 -0
  7. fitz/__init__.py +11 -0
  8. fitz/table.py +2 -0
  9. fitz/utils.py +2 -0
  10. pymupdf/__init__.py +22122 -0
  11. pymupdf/__main__.py +1146 -0
  12. pymupdf/_apply_pages.py +253 -0
  13. pymupdf/_build.py +1 -0
  14. pymupdf/_extra.pyd +0 -0
  15. pymupdf/_mupdf.pyd +0 -0
  16. pymupdf/extra.py +214 -0
  17. pymupdf/mupdf-devel/include/mupdf/fitz/archive.h +444 -0
  18. pymupdf/mupdf-devel/include/mupdf/fitz/band-writer.h +117 -0
  19. pymupdf/mupdf-devel/include/mupdf/fitz/bidi.h +90 -0
  20. pymupdf/mupdf-devel/include/mupdf/fitz/bitmap.h +175 -0
  21. pymupdf/mupdf-devel/include/mupdf/fitz/buffer.h +250 -0
  22. pymupdf/mupdf-devel/include/mupdf/fitz/color.h +427 -0
  23. pymupdf/mupdf-devel/include/mupdf/fitz/compress.h +88 -0
  24. pymupdf/mupdf-devel/include/mupdf/fitz/compressed-buffer.h +185 -0
  25. pymupdf/mupdf-devel/include/mupdf/fitz/config.h +223 -0
  26. pymupdf/mupdf-devel/include/mupdf/fitz/context.h +1006 -0
  27. pymupdf/mupdf-devel/include/mupdf/fitz/crypt.h +270 -0
  28. pymupdf/mupdf-devel/include/mupdf/fitz/device.h +654 -0
  29. pymupdf/mupdf-devel/include/mupdf/fitz/display-list.h +142 -0
  30. pymupdf/mupdf-devel/include/mupdf/fitz/document.h +1108 -0
  31. pymupdf/mupdf-devel/include/mupdf/fitz/export.h +52 -0
  32. pymupdf/mupdf-devel/include/mupdf/fitz/filter.h +263 -0
  33. pymupdf/mupdf-devel/include/mupdf/fitz/font.h +815 -0
  34. pymupdf/mupdf-devel/include/mupdf/fitz/geometry.h +818 -0
  35. pymupdf/mupdf-devel/include/mupdf/fitz/getopt.h +128 -0
  36. pymupdf/mupdf-devel/include/mupdf/fitz/glyph-cache.h +96 -0
  37. pymupdf/mupdf-devel/include/mupdf/fitz/glyph.h +81 -0
  38. pymupdf/mupdf-devel/include/mupdf/fitz/hash.h +126 -0
  39. pymupdf/mupdf-devel/include/mupdf/fitz/heap-imp.h +163 -0
  40. pymupdf/mupdf-devel/include/mupdf/fitz/heap.h +140 -0
  41. pymupdf/mupdf-devel/include/mupdf/fitz/image.h +443 -0
  42. pymupdf/mupdf-devel/include/mupdf/fitz/link.h +130 -0
  43. pymupdf/mupdf-devel/include/mupdf/fitz/log.h +61 -0
  44. pymupdf/mupdf-devel/include/mupdf/fitz/outline.h +228 -0
  45. pymupdf/mupdf-devel/include/mupdf/fitz/output-svg.h +64 -0
  46. pymupdf/mupdf-devel/include/mupdf/fitz/output.h +415 -0
  47. pymupdf/mupdf-devel/include/mupdf/fitz/path.h +447 -0
  48. pymupdf/mupdf-devel/include/mupdf/fitz/pixmap.h +501 -0
  49. pymupdf/mupdf-devel/include/mupdf/fitz/pool.h +68 -0
  50. pymupdf/mupdf-devel/include/mupdf/fitz/separation.h +138 -0
  51. pymupdf/mupdf-devel/include/mupdf/fitz/shade.h +233 -0
  52. pymupdf/mupdf-devel/include/mupdf/fitz/store.h +456 -0
  53. pymupdf/mupdf-devel/include/mupdf/fitz/story-writer.h +209 -0
  54. pymupdf/mupdf-devel/include/mupdf/fitz/story.h +232 -0
  55. pymupdf/mupdf-devel/include/mupdf/fitz/stream.h +646 -0
  56. pymupdf/mupdf-devel/include/mupdf/fitz/string-util.h +286 -0
  57. pymupdf/mupdf-devel/include/mupdf/fitz/structured-text.h +365 -0
  58. pymupdf/mupdf-devel/include/mupdf/fitz/system.h +459 -0
  59. pymupdf/mupdf-devel/include/mupdf/fitz/text.h +209 -0
  60. pymupdf/mupdf-devel/include/mupdf/fitz/track-usage.h +57 -0
  61. pymupdf/mupdf-devel/include/mupdf/fitz/transition.h +76 -0
  62. pymupdf/mupdf-devel/include/mupdf/fitz/tree.h +62 -0
  63. pymupdf/mupdf-devel/include/mupdf/fitz/types.h +41 -0
  64. pymupdf/mupdf-devel/include/mupdf/fitz/util.h +151 -0
  65. pymupdf/mupdf-devel/include/mupdf/fitz/version.h +31 -0
  66. pymupdf/mupdf-devel/include/mupdf/fitz/write-pixmap.h +499 -0
  67. pymupdf/mupdf-devel/include/mupdf/fitz/writer.h +266 -0
  68. pymupdf/mupdf-devel/include/mupdf/fitz/xml.h +397 -0
  69. pymupdf/mupdf-devel/include/mupdf/fitz.h +97 -0
  70. pymupdf/mupdf-devel/include/mupdf/helpers/mu-office-lib.h +666 -0
  71. pymupdf/mupdf-devel/include/mupdf/helpers/mu-threads.h +280 -0
  72. pymupdf/mupdf-devel/include/mupdf/helpers/pkcs7-openssl.h +48 -0
  73. pymupdf/mupdf-devel/include/mupdf/html.h +53 -0
  74. pymupdf/mupdf-devel/include/mupdf/memento.h +423 -0
  75. pymupdf/mupdf-devel/include/mupdf/pdf/annot.h +965 -0
  76. pymupdf/mupdf-devel/include/mupdf/pdf/clean.h +48 -0
  77. pymupdf/mupdf-devel/include/mupdf/pdf/cmap.h +145 -0
  78. pymupdf/mupdf-devel/include/mupdf/pdf/crypt.h +107 -0
  79. pymupdf/mupdf-devel/include/mupdf/pdf/document.h +842 -0
  80. pymupdf/mupdf-devel/include/mupdf/pdf/event.h +167 -0
  81. pymupdf/mupdf-devel/include/mupdf/pdf/font.h +168 -0
  82. pymupdf/mupdf-devel/include/mupdf/pdf/form.h +380 -0
  83. pymupdf/mupdf-devel/include/mupdf/pdf/image-rewriter.h +78 -0
  84. pymupdf/mupdf-devel/include/mupdf/pdf/interpret.h +492 -0
  85. pymupdf/mupdf-devel/include/mupdf/pdf/javascript.h +43 -0
  86. pymupdf/mupdf-devel/include/mupdf/pdf/name-table.h +596 -0
  87. pymupdf/mupdf-devel/include/mupdf/pdf/object.h +435 -0
  88. pymupdf/mupdf-devel/include/mupdf/pdf/page.h +316 -0
  89. pymupdf/mupdf-devel/include/mupdf/pdf/parse.h +61 -0
  90. pymupdf/mupdf-devel/include/mupdf/pdf/resource.h +133 -0
  91. pymupdf/mupdf-devel/include/mupdf/pdf/xref.h +300 -0
  92. pymupdf/mupdf-devel/include/mupdf/pdf.h +57 -0
  93. pymupdf/mupdf-devel/include/mupdf/ucdn.h +452 -0
  94. pymupdf/mupdf-devel/lib/mupdfcpp64.lib +0 -0
  95. pymupdf/mupdf.py +58506 -0
  96. pymupdf/mupdfcpp64.dll +0 -0
  97. pymupdf/pymupdf.py +2 -0
  98. pymupdf/table.py +2355 -0
  99. pymupdf/utils.py +5880 -0
@@ -0,0 +1,223 @@
1
+ #define TOFU_CJK_EXT 1 /* PyMuPDF override. */
2
+ // Copyright (C) 2004-2021 Artifex Software, Inc.
3
+ //
4
+ // This file is part of MuPDF.
5
+ //
6
+ // MuPDF is free software: you can redistribute it and/or modify it under the
7
+ // terms of the GNU Affero General Public License as published by the Free
8
+ // Software Foundation, either version 3 of the License, or (at your option)
9
+ // any later version.
10
+ //
11
+ // MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
12
+ // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
+ // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
14
+ // details.
15
+ //
16
+ // You should have received a copy of the GNU Affero General Public License
17
+ // along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
18
+ //
19
+ // Alternative licensing terms are available from the licensor.
20
+ // For commercial licensing, see <https://www.artifex.com/> or contact
21
+ // Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
22
+ // CA 94129, USA, for further information.
23
+
24
+ #ifndef FZ_CONFIG_H
25
+
26
+ #define FZ_CONFIG_H
27
+
28
+ /**
29
+ Enable the following for spot (and hence overprint/overprint
30
+ simulation) capable rendering. This forces FZ_PLOTTERS_N on.
31
+ */
32
+ /* #define FZ_ENABLE_SPOT_RENDERING 1 */
33
+
34
+ /**
35
+ Choose which plotters we need.
36
+ By default we build all the plotters in. To avoid building
37
+ plotters in that aren't needed, define the unwanted
38
+ FZ_PLOTTERS_... define to 0.
39
+ */
40
+ /* #define FZ_PLOTTERS_G 1 */
41
+ /* #define FZ_PLOTTERS_RGB 1 */
42
+ /* #define FZ_PLOTTERS_CMYK 1 */
43
+ /* #define FZ_PLOTTERS_N 1 */
44
+
45
+ /**
46
+ Choose which document agents to include.
47
+ By default all are enabled. To avoid building unwanted
48
+ ones, define FZ_ENABLE_... to 0.
49
+ */
50
+ /* #define FZ_ENABLE_PDF 1 */
51
+ /* #define FZ_ENABLE_XPS 1 */
52
+ /* #define FZ_ENABLE_SVG 1 */
53
+ /* #define FZ_ENABLE_CBZ 1 */
54
+ /* #define FZ_ENABLE_IMG 1 */
55
+ /* #define FZ_ENABLE_HTML 1 */
56
+ /* #define FZ_ENABLE_EPUB 1 */
57
+
58
+ /**
59
+ Choose which document writers to include.
60
+ By default all are enabled. To avoid building unwanted
61
+ ones, define FZ_ENABLE_..._OUTPUT to 0.
62
+ */
63
+ /* #define FZ_ENABLE_OCR_OUTPUT 1 */
64
+ /* #define FZ_ENABLE_DOCX_OUTPUT 1 */
65
+ /* #define FZ_ENABLE_ODT_OUTPUT 1 */
66
+
67
+ /**
68
+ Choose whether to enable ICC color profiles.
69
+ */
70
+ /* #define FZ_ENABLE_ICC 1 */
71
+
72
+ /**
73
+ Choose whether to enable JPEG2000 decoding.
74
+ By default, it is enabled, but due to frequent security
75
+ issues with the third party libraries we support disabling
76
+ it with this flag.
77
+ */
78
+ /* #define FZ_ENABLE_JPX 1 */
79
+
80
+ /**
81
+ Choose whether to enable JavaScript.
82
+ By default JavaScript is enabled both for mutool and PDF
83
+ interactivity.
84
+ */
85
+ /* #define FZ_ENABLE_JS 1 */
86
+
87
+ /**
88
+ Choose which fonts to include.
89
+ By default we include the base 14 PDF fonts,
90
+ DroidSansFallback from Android for CJK, and
91
+ Charis SIL from SIL for epub/html.
92
+ Enable the following defines to AVOID including
93
+ unwanted fonts.
94
+ */
95
+ /* To avoid all noto fonts except CJK, enable: */
96
+ /* #define TOFU */
97
+
98
+ /* To skip the CJK font, enable: (this implicitly enables TOFU_CJK_EXT
99
+ * and TOFU_CJK_LANG) */
100
+ /* #define TOFU_CJK */
101
+
102
+ /* To skip CJK Extension A, enable: (this implicitly enables
103
+ * TOFU_CJK_LANG) */
104
+ /* #define TOFU_CJK_EXT */
105
+
106
+ /* To skip CJK language specific fonts, enable: */
107
+ /* #define TOFU_CJK_LANG */
108
+
109
+ /* To skip the Emoji font, enable: */
110
+ /* #define TOFU_EMOJI */
111
+
112
+ /* To skip the ancient/historic scripts, enable: */
113
+ /* #define TOFU_HISTORIC */
114
+
115
+ /* To skip the symbol font, enable: */
116
+ /* #define TOFU_SYMBOL */
117
+
118
+ /* To skip the SIL fonts, enable: */
119
+ /* #define TOFU_SIL */
120
+
121
+ /* To skip the Base14 fonts, enable: */
122
+ /* #define TOFU_BASE14 */
123
+ /* (You probably really don't want to do that except for measurement
124
+ * purposes!) */
125
+
126
+ /* ---------- DO NOT EDIT ANYTHING UNDER THIS LINE ---------- */
127
+
128
+ #ifndef FZ_ENABLE_SPOT_RENDERING
129
+ #define FZ_ENABLE_SPOT_RENDERING 1
130
+ #endif
131
+
132
+ #if FZ_ENABLE_SPOT_RENDERING
133
+ #undef FZ_PLOTTERS_N
134
+ #define FZ_PLOTTERS_N 1
135
+ #endif /* FZ_ENABLE_SPOT_RENDERING */
136
+
137
+ #ifndef FZ_PLOTTERS_G
138
+ #define FZ_PLOTTERS_G 1
139
+ #endif /* FZ_PLOTTERS_G */
140
+
141
+ #ifndef FZ_PLOTTERS_RGB
142
+ #define FZ_PLOTTERS_RGB 1
143
+ #endif /* FZ_PLOTTERS_RGB */
144
+
145
+ #ifndef FZ_PLOTTERS_CMYK
146
+ #define FZ_PLOTTERS_CMYK 1
147
+ #endif /* FZ_PLOTTERS_CMYK */
148
+
149
+ #ifndef FZ_PLOTTERS_N
150
+ #define FZ_PLOTTERS_N 1
151
+ #endif /* FZ_PLOTTERS_N */
152
+
153
+ /* We need at least 1 plotter defined */
154
+ #if FZ_PLOTTERS_G == 0 && FZ_PLOTTERS_RGB == 0 && FZ_PLOTTERS_CMYK == 0
155
+ #undef FZ_PLOTTERS_N
156
+ #define FZ_PLOTTERS_N 1
157
+ #endif
158
+
159
+ #ifndef FZ_ENABLE_PDF
160
+ #define FZ_ENABLE_PDF 1
161
+ #endif /* FZ_ENABLE_PDF */
162
+
163
+ #ifndef FZ_ENABLE_XPS
164
+ #define FZ_ENABLE_XPS 1
165
+ #endif /* FZ_ENABLE_XPS */
166
+
167
+ #ifndef FZ_ENABLE_SVG
168
+ #define FZ_ENABLE_SVG 1
169
+ #endif /* FZ_ENABLE_SVG */
170
+
171
+ #ifndef FZ_ENABLE_CBZ
172
+ #define FZ_ENABLE_CBZ 1
173
+ #endif /* FZ_ENABLE_CBZ */
174
+
175
+ #ifndef FZ_ENABLE_IMG
176
+ #define FZ_ENABLE_IMG 1
177
+ #endif /* FZ_ENABLE_IMG */
178
+
179
+ #ifndef FZ_ENABLE_HTML
180
+ #define FZ_ENABLE_HTML 1
181
+ #endif /* FZ_ENABLE_HTML */
182
+
183
+ #ifndef FZ_ENABLE_EPUB
184
+ #define FZ_ENABLE_EPUB 1
185
+ #endif /* FZ_ENABLE_EPUB */
186
+
187
+ #ifndef FZ_ENABLE_OCR_OUTPUT
188
+ #define FZ_ENABLE_OCR_OUTPUT 1
189
+ #endif /* FZ_ENABLE_OCR_OUTPUT */
190
+
191
+ #ifndef FZ_ENABLE_ODT_OUTPUT
192
+ #define FZ_ENABLE_ODT_OUTPUT 1
193
+ #endif /* FZ_ENABLE_ODT_OUTPUT */
194
+
195
+ #ifndef FZ_ENABLE_DOCX_OUTPUT
196
+ #define FZ_ENABLE_DOCX_OUTPUT 1
197
+ #endif /* FZ_ENABLE_DOCX_OUTPUT */
198
+
199
+ #ifndef FZ_ENABLE_JPX
200
+ #define FZ_ENABLE_JPX 1
201
+ #endif /* FZ_ENABLE_JPX */
202
+
203
+ #ifndef FZ_ENABLE_JS
204
+ #define FZ_ENABLE_JS 1
205
+ #endif /* FZ_ENABLE_JS */
206
+
207
+ #ifndef FZ_ENABLE_ICC
208
+ #define FZ_ENABLE_ICC 1
209
+ #endif /* FZ_ENABLE_ICC */
210
+
211
+ /* If Epub and HTML are both disabled, disable SIL fonts */
212
+ #if FZ_ENABLE_HTML == 0 && FZ_ENABLE_EPUB == 0
213
+ #undef TOFU_SIL
214
+ #define TOFU_SIL
215
+ #endif
216
+
217
+ #if !defined(HAVE_LEPTONICA) || !defined(HAVE_TESSERACT)
218
+ #ifndef OCR_DISABLED
219
+ #define OCR_DISABLED
220
+ #endif
221
+ #endif
222
+
223
+ #endif /* FZ_CONFIG_H */