PyMuPDF 1.26.6__cp310-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 (112) hide show
  1. fitz/__init__.py +13 -0
  2. fitz/table.py +2 -0
  3. fitz/utils.py +2 -0
  4. pymupdf/__init__.py +25899 -0
  5. pymupdf/__main__.py +1140 -0
  6. pymupdf/_apply_pages.py +253 -0
  7. pymupdf/_build.py +8 -0
  8. pymupdf/_extra.pyd +0 -0
  9. pymupdf/_mupdf.pyd +0 -0
  10. pymupdf/_wxcolors.py +562 -0
  11. pymupdf/extra.py +220 -0
  12. pymupdf/mupdf-devel/include/mupdf/classes.h +19999 -0
  13. pymupdf/mupdf-devel/include/mupdf/classes2.h +12244 -0
  14. pymupdf/mupdf-devel/include/mupdf/exceptions.h +118 -0
  15. pymupdf/mupdf-devel/include/mupdf/extra.h +189 -0
  16. pymupdf/mupdf-devel/include/mupdf/fitz/archive.h +444 -0
  17. pymupdf/mupdf-devel/include/mupdf/fitz/band-writer.h +117 -0
  18. pymupdf/mupdf-devel/include/mupdf/fitz/barcode.h +138 -0
  19. pymupdf/mupdf-devel/include/mupdf/fitz/bidi.h +90 -0
  20. pymupdf/mupdf-devel/include/mupdf/fitz/bitmap.h +188 -0
  21. pymupdf/mupdf-devel/include/mupdf/fitz/buffer.h +250 -0
  22. pymupdf/mupdf-devel/include/mupdf/fitz/color.h +433 -0
  23. pymupdf/mupdf-devel/include/mupdf/fitz/compress.h +132 -0
  24. pymupdf/mupdf-devel/include/mupdf/fitz/compressed-buffer.h +194 -0
  25. pymupdf/mupdf-devel/include/mupdf/fitz/config.h +302 -0
  26. pymupdf/mupdf-devel/include/mupdf/fitz/context.h +1064 -0
  27. pymupdf/mupdf-devel/include/mupdf/fitz/crypt.h +270 -0
  28. pymupdf/mupdf-devel/include/mupdf/fitz/deskew.h +46 -0
  29. pymupdf/mupdf-devel/include/mupdf/fitz/device.h +652 -0
  30. pymupdf/mupdf-devel/include/mupdf/fitz/display-list.h +142 -0
  31. pymupdf/mupdf-devel/include/mupdf/fitz/document.h +1103 -0
  32. pymupdf/mupdf-devel/include/mupdf/fitz/export.h +52 -0
  33. pymupdf/mupdf-devel/include/mupdf/fitz/filter.h +269 -0
  34. pymupdf/mupdf-devel/include/mupdf/fitz/font.h +858 -0
  35. pymupdf/mupdf-devel/include/mupdf/fitz/geometry.h +885 -0
  36. pymupdf/mupdf-devel/include/mupdf/fitz/getopt.h +134 -0
  37. pymupdf/mupdf-devel/include/mupdf/fitz/glyph-cache.h +96 -0
  38. pymupdf/mupdf-devel/include/mupdf/fitz/glyph.h +81 -0
  39. pymupdf/mupdf-devel/include/mupdf/fitz/hash.h +126 -0
  40. pymupdf/mupdf-devel/include/mupdf/fitz/heap-imp.h +190 -0
  41. pymupdf/mupdf-devel/include/mupdf/fitz/heap.h +143 -0
  42. pymupdf/mupdf-devel/include/mupdf/fitz/image.h +451 -0
  43. pymupdf/mupdf-devel/include/mupdf/fitz/json.h +98 -0
  44. pymupdf/mupdf-devel/include/mupdf/fitz/link.h +130 -0
  45. pymupdf/mupdf-devel/include/mupdf/fitz/log.h +61 -0
  46. pymupdf/mupdf-devel/include/mupdf/fitz/outline.h +254 -0
  47. pymupdf/mupdf-devel/include/mupdf/fitz/output-svg.h +64 -0
  48. pymupdf/mupdf-devel/include/mupdf/fitz/output.h +448 -0
  49. pymupdf/mupdf-devel/include/mupdf/fitz/path.h +477 -0
  50. pymupdf/mupdf-devel/include/mupdf/fitz/pixmap.h +516 -0
  51. pymupdf/mupdf-devel/include/mupdf/fitz/pool.h +102 -0
  52. pymupdf/mupdf-devel/include/mupdf/fitz/separation.h +138 -0
  53. pymupdf/mupdf-devel/include/mupdf/fitz/shade.h +233 -0
  54. pymupdf/mupdf-devel/include/mupdf/fitz/store.h +465 -0
  55. pymupdf/mupdf-devel/include/mupdf/fitz/story-writer.h +209 -0
  56. pymupdf/mupdf-devel/include/mupdf/fitz/story.h +232 -0
  57. pymupdf/mupdf-devel/include/mupdf/fitz/stream.h +646 -0
  58. pymupdf/mupdf-devel/include/mupdf/fitz/string-util.h +335 -0
  59. pymupdf/mupdf-devel/include/mupdf/fitz/structured-text.h +924 -0
  60. pymupdf/mupdf-devel/include/mupdf/fitz/system.h +495 -0
  61. pymupdf/mupdf-devel/include/mupdf/fitz/text.h +210 -0
  62. pymupdf/mupdf-devel/include/mupdf/fitz/track-usage.h +57 -0
  63. pymupdf/mupdf-devel/include/mupdf/fitz/transition.h +76 -0
  64. pymupdf/mupdf-devel/include/mupdf/fitz/tree.h +62 -0
  65. pymupdf/mupdf-devel/include/mupdf/fitz/types.h +41 -0
  66. pymupdf/mupdf-devel/include/mupdf/fitz/util.h +159 -0
  67. pymupdf/mupdf-devel/include/mupdf/fitz/version.h +31 -0
  68. pymupdf/mupdf-devel/include/mupdf/fitz/write-pixmap.h +507 -0
  69. pymupdf/mupdf-devel/include/mupdf/fitz/writer.h +269 -0
  70. pymupdf/mupdf-devel/include/mupdf/fitz/xml.h +435 -0
  71. pymupdf/mupdf-devel/include/mupdf/fitz.h +101 -0
  72. pymupdf/mupdf-devel/include/mupdf/functions.h +13819 -0
  73. pymupdf/mupdf-devel/include/mupdf/helpers/mu-office-lib.h +666 -0
  74. pymupdf/mupdf-devel/include/mupdf/helpers/mu-threads.h +280 -0
  75. pymupdf/mupdf-devel/include/mupdf/helpers/pkcs7-openssl.h +48 -0
  76. pymupdf/mupdf-devel/include/mupdf/html.h +53 -0
  77. pymupdf/mupdf-devel/include/mupdf/internal.h +29 -0
  78. pymupdf/mupdf-devel/include/mupdf/memento.h +425 -0
  79. pymupdf/mupdf-devel/include/mupdf/pdf/annot.h +1015 -0
  80. pymupdf/mupdf-devel/include/mupdf/pdf/clean.h +68 -0
  81. pymupdf/mupdf-devel/include/mupdf/pdf/cmap.h +145 -0
  82. pymupdf/mupdf-devel/include/mupdf/pdf/crypt.h +108 -0
  83. pymupdf/mupdf-devel/include/mupdf/pdf/document.h +902 -0
  84. pymupdf/mupdf-devel/include/mupdf/pdf/event.h +167 -0
  85. pymupdf/mupdf-devel/include/mupdf/pdf/font.h +168 -0
  86. pymupdf/mupdf-devel/include/mupdf/pdf/form.h +381 -0
  87. pymupdf/mupdf-devel/include/mupdf/pdf/image-rewriter.h +78 -0
  88. pymupdf/mupdf-devel/include/mupdf/pdf/interpret.h +518 -0
  89. pymupdf/mupdf-devel/include/mupdf/pdf/javascript.h +43 -0
  90. pymupdf/mupdf-devel/include/mupdf/pdf/name-table.h +621 -0
  91. pymupdf/mupdf-devel/include/mupdf/pdf/object.h +445 -0
  92. pymupdf/mupdf-devel/include/mupdf/pdf/page.h +327 -0
  93. pymupdf/mupdf-devel/include/mupdf/pdf/parse.h +61 -0
  94. pymupdf/mupdf-devel/include/mupdf/pdf/recolor.h +49 -0
  95. pymupdf/mupdf-devel/include/mupdf/pdf/resource.h +144 -0
  96. pymupdf/mupdf-devel/include/mupdf/pdf/xref.h +300 -0
  97. pymupdf/mupdf-devel/include/mupdf/pdf/zugferd.h +49 -0
  98. pymupdf/mupdf-devel/include/mupdf/pdf.h +59 -0
  99. pymupdf/mupdf-devel/include/mupdf/ucdn.h +464 -0
  100. pymupdf/mupdf-devel/lib/libmuthreads.lib +0 -0
  101. pymupdf/mupdf-devel/lib/mupdfcpp64.lib +0 -0
  102. pymupdf/mupdf.py +63667 -0
  103. pymupdf/mupdfcpp64.dll +0 -0
  104. pymupdf/pymupdf.py +2 -0
  105. pymupdf/table.py +2697 -0
  106. pymupdf/utils.py +1169 -0
  107. pymupdf-1.26.6.dist-info/COPYING +1 -0
  108. pymupdf-1.26.6.dist-info/METADATA +83 -0
  109. pymupdf-1.26.6.dist-info/README.md +60 -0
  110. pymupdf-1.26.6.dist-info/RECORD +112 -0
  111. pymupdf-1.26.6.dist-info/WHEEL +4 -0
  112. pymupdf-1.26.6.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,167 @@
1
+ // Copyright (C) 2004-2022 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 MUPDF_PDF_EVENT_H
24
+ #define MUPDF_PDF_EVENT_H
25
+
26
+ #include "mupdf/pdf/document.h"
27
+
28
+ /*
29
+ Document events: the objects via which MuPDF informs the calling app
30
+ of occurrences emanating from the document, possibly from user interaction
31
+ or javascript execution. MuPDF informs the app of document events via a
32
+ callback.
33
+ */
34
+
35
+ struct pdf_doc_event
36
+ {
37
+ int type;
38
+ };
39
+
40
+ enum
41
+ {
42
+ PDF_DOCUMENT_EVENT_ALERT,
43
+ PDF_DOCUMENT_EVENT_PRINT,
44
+ PDF_DOCUMENT_EVENT_LAUNCH_URL,
45
+ PDF_DOCUMENT_EVENT_MAIL_DOC,
46
+ PDF_DOCUMENT_EVENT_SUBMIT,
47
+ PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM,
48
+ };
49
+
50
+ /*
51
+ set the function via which to receive
52
+ document events.
53
+ */
54
+ void pdf_set_doc_event_callback(fz_context *ctx, pdf_document *doc, pdf_doc_event_cb *event_cb, pdf_free_doc_event_data_cb *free_event_data_cb, void *data);
55
+ void *pdf_get_doc_event_callback_data(fz_context *ctx, pdf_document *doc);
56
+
57
+ /*
58
+ The various types of document events
59
+ */
60
+
61
+ /*
62
+ details of an alert event. In response the app should
63
+ display an alert dialog with the buttons specified by "button_type_group".
64
+ If "check_box_message" is non-NULL, a checkbox should be displayed in
65
+ the lower-left corned along with the message.
66
+
67
+ "finally_checked" and "button_pressed" should be set by the app
68
+ before returning from the callback. "finally_checked" need be set
69
+ only if "check_box_message" is non-NULL.
70
+ */
71
+ typedef struct
72
+ {
73
+ pdf_document *doc;
74
+ const char *message;
75
+ int icon_type;
76
+ int button_group_type;
77
+ const char *title;
78
+ int has_check_box;
79
+ const char *check_box_message;
80
+ int initially_checked;
81
+ int finally_checked;
82
+ int button_pressed;
83
+ } pdf_alert_event;
84
+
85
+ /* Possible values of icon_type */
86
+ enum
87
+ {
88
+ PDF_ALERT_ICON_ERROR,
89
+ PDF_ALERT_ICON_WARNING,
90
+ PDF_ALERT_ICON_QUESTION,
91
+ PDF_ALERT_ICON_STATUS
92
+ };
93
+
94
+ /* Possible values of button_group_type */
95
+ enum
96
+ {
97
+ PDF_ALERT_BUTTON_GROUP_OK,
98
+ PDF_ALERT_BUTTON_GROUP_OK_CANCEL,
99
+ PDF_ALERT_BUTTON_GROUP_YES_NO,
100
+ PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL
101
+ };
102
+
103
+ /* Possible values of button_pressed */
104
+ enum
105
+ {
106
+ PDF_ALERT_BUTTON_NONE,
107
+ PDF_ALERT_BUTTON_OK,
108
+ PDF_ALERT_BUTTON_CANCEL,
109
+ PDF_ALERT_BUTTON_NO,
110
+ PDF_ALERT_BUTTON_YES
111
+ };
112
+
113
+ /*
114
+ access the details of an alert event
115
+ The returned pointer and all the data referred to by the
116
+ structure are owned by mupdf and need not be freed by the
117
+ caller.
118
+ */
119
+ pdf_alert_event *pdf_access_alert_event(fz_context *ctx, pdf_doc_event *evt);
120
+
121
+ /*
122
+ access the details of am execMenuItem
123
+ event, which consists of just the name of the menu item
124
+ */
125
+ const char *pdf_access_exec_menu_item_event(fz_context *ctx, pdf_doc_event *evt);
126
+
127
+ /*
128
+ details of a launch-url event. The app should
129
+ open the url, either in a new frame or in the current window.
130
+ */
131
+ typedef struct
132
+ {
133
+ const char *url;
134
+ int new_frame;
135
+ } pdf_launch_url_event;
136
+
137
+ /*
138
+ access the details of a launch-url
139
+ event. The returned pointer and all data referred to by the structure
140
+ are owned by mupdf and need not be freed by the caller.
141
+ */
142
+ pdf_launch_url_event *pdf_access_launch_url_event(fz_context *ctx, pdf_doc_event *evt);
143
+
144
+ /*
145
+ details of a mail_doc event. The app should save
146
+ the current state of the document and email it using the specified
147
+ parameters.
148
+ */
149
+ typedef struct
150
+ {
151
+ int ask_user;
152
+ const char *to;
153
+ const char *cc;
154
+ const char *bcc;
155
+ const char *subject;
156
+ const char *message;
157
+ } pdf_mail_doc_event;
158
+
159
+ pdf_mail_doc_event *pdf_access_mail_doc_event(fz_context *ctx, pdf_doc_event *evt);
160
+
161
+ void pdf_event_issue_alert(fz_context *ctx, pdf_document *doc, pdf_alert_event *evt);
162
+ void pdf_event_issue_print(fz_context *ctx, pdf_document *doc);
163
+ void pdf_event_issue_exec_menu_item(fz_context *ctx, pdf_document *doc, const char *item);
164
+ void pdf_event_issue_launch_url(fz_context *ctx, pdf_document *doc, const char *url, int new_frame);
165
+ void pdf_event_issue_mail_doc(fz_context *ctx, pdf_document *doc, pdf_mail_doc_event *evt);
166
+
167
+ #endif
@@ -0,0 +1,168 @@
1
+ // Copyright (C) 2004-2025 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 MUPDF_PDF_FONT_H
24
+ #define MUPDF_PDF_FONT_H
25
+
26
+ #include "mupdf/pdf/cmap.h"
27
+ #include "mupdf/fitz/device.h"
28
+ #include "mupdf/fitz/font.h"
29
+
30
+ enum
31
+ {
32
+ PDF_FD_FIXED_PITCH = 1 << 0,
33
+ PDF_FD_SERIF = 1 << 1,
34
+ PDF_FD_SYMBOLIC = 1 << 2,
35
+ PDF_FD_SCRIPT = 1 << 3,
36
+ PDF_FD_NONSYMBOLIC = 1 << 5,
37
+ PDF_FD_ITALIC = 1 << 6,
38
+ PDF_FD_ALL_CAP = 1 << 16,
39
+ PDF_FD_SMALL_CAP = 1 << 17,
40
+ PDF_FD_FORCE_BOLD = 1 << 18
41
+ };
42
+
43
+ void pdf_load_encoding(const char **estrings, const char *encoding);
44
+
45
+ typedef struct
46
+ {
47
+ unsigned short lo;
48
+ unsigned short hi;
49
+ int w; /* type3 fonts can be big! */
50
+ } pdf_hmtx;
51
+
52
+ typedef struct
53
+ {
54
+ unsigned short lo;
55
+ unsigned short hi;
56
+ short x;
57
+ short y;
58
+ short w;
59
+ } pdf_vmtx;
60
+
61
+ typedef struct
62
+ {
63
+ fz_storable storable;
64
+ size_t size;
65
+
66
+ fz_font *font;
67
+
68
+ /* FontDescriptor */
69
+ int flags;
70
+ float italic_angle;
71
+ float ascent;
72
+ float descent;
73
+ float cap_height;
74
+ float x_height;
75
+ float missing_width;
76
+
77
+ /* Encoding (CMap) */
78
+ pdf_cmap *encoding;
79
+ pdf_cmap *to_ttf_cmap;
80
+ size_t cid_to_gid_len;
81
+ unsigned short *cid_to_gid;
82
+
83
+ /* ToUnicode */
84
+ pdf_cmap *to_unicode;
85
+ size_t cid_to_ucs_len;
86
+ unsigned short *cid_to_ucs;
87
+
88
+ /* Metrics (given in the PDF file) */
89
+ int wmode;
90
+
91
+ int hmtx_len, hmtx_cap;
92
+ pdf_hmtx dhmtx;
93
+ pdf_hmtx *hmtx;
94
+
95
+ int vmtx_len, vmtx_cap;
96
+ pdf_vmtx dvmtx;
97
+ pdf_vmtx *vmtx;
98
+
99
+ int is_embedded;
100
+ int t3loading;
101
+ } pdf_font_desc;
102
+
103
+ void pdf_set_font_wmode(fz_context *ctx, pdf_font_desc *font, int wmode);
104
+ void pdf_set_default_hmtx(fz_context *ctx, pdf_font_desc *font, int w);
105
+ void pdf_set_default_vmtx(fz_context *ctx, pdf_font_desc *font, int y, int w);
106
+ void pdf_add_hmtx(fz_context *ctx, pdf_font_desc *font, int lo, int hi, int w);
107
+ void pdf_add_vmtx(fz_context *ctx, pdf_font_desc *font, int lo, int hi, int x, int y, int w);
108
+ void pdf_end_hmtx(fz_context *ctx, pdf_font_desc *font);
109
+ void pdf_end_vmtx(fz_context *ctx, pdf_font_desc *font);
110
+ pdf_hmtx pdf_lookup_hmtx(fz_context *ctx, pdf_font_desc *font, int cid);
111
+ pdf_vmtx pdf_lookup_vmtx(fz_context *ctx, pdf_font_desc *font, int cid);
112
+
113
+ void pdf_load_to_unicode(fz_context *ctx, pdf_document *doc, pdf_font_desc *font, const char **strings, char *collection, pdf_obj *cmapstm);
114
+
115
+ int pdf_font_cid_to_gid(fz_context *ctx, pdf_font_desc *fontdesc, int cid);
116
+ const char *pdf_clean_font_name(const char *fontname);
117
+
118
+ const unsigned char *pdf_lookup_substitute_font(fz_context *ctx, int mono, int serif, int bold, int italic, int *len);
119
+
120
+ pdf_font_desc *pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_resource_stack *rdb, pdf_obj *obj);
121
+ void pdf_load_type3_glyphs(fz_context *ctx, pdf_document *doc, pdf_font_desc *fontdesc);
122
+ pdf_font_desc *pdf_load_font(fz_context *ctx, pdf_document *doc, pdf_resource_stack *rdb, pdf_obj *obj);
123
+ pdf_font_desc *pdf_load_hail_mary_font(fz_context *ctx, pdf_document *doc);
124
+
125
+ pdf_font_desc *pdf_new_font_desc(fz_context *ctx);
126
+ pdf_font_desc *pdf_keep_font(fz_context *ctx, pdf_font_desc *fontdesc);
127
+ void pdf_drop_font(fz_context *ctx, pdf_font_desc *font);
128
+
129
+ void pdf_print_font(fz_context *ctx, fz_output *out, pdf_font_desc *fontdesc);
130
+
131
+ void pdf_run_glyph(fz_context *ctx, pdf_document *doc, pdf_obj *resources, fz_buffer *contents, fz_device *dev, fz_matrix ctm, void *gstate, fz_default_colorspaces *default_cs, void *fill_gstate, void *stroke_gstate);
132
+
133
+ pdf_obj *pdf_add_simple_font(fz_context *ctx, pdf_document *doc, fz_font *font, int encoding);
134
+
135
+ /*
136
+ Creates CID font with Identity-H CMap and a ToUnicode CMap that
137
+ is created by using the TTF cmap table "backwards" to go from
138
+ the GID to a Unicode value.
139
+
140
+ We can possibly get width information that may have been embedded
141
+ in the PDF /W array (or W2 if vertical text)
142
+ */
143
+ pdf_obj *pdf_add_cid_font(fz_context *ctx, pdf_document *doc, fz_font *font);
144
+
145
+ /*
146
+ Add a non-embedded UTF16-encoded CID-font for the CJK scripts:
147
+ CNS1, GB1, Japan1, or Korea1
148
+ */
149
+ pdf_obj *pdf_add_cjk_font(fz_context *ctx, pdf_document *doc, fz_font *font, int script, int wmode, int serif);
150
+
151
+ /*
152
+ Add a substitute font for any script.
153
+ */
154
+ pdf_obj *pdf_add_substitute_font(fz_context *ctx, pdf_document *doc, fz_font *font);
155
+
156
+ int pdf_font_writing_supported(fz_context *ctx, fz_font *font);
157
+
158
+ /*
159
+ Subset fonts by scanning the document to establish usage, and then
160
+ rewriting the font files.
161
+
162
+ Calling with pages_len == 0 means do the whole document.
163
+
164
+ EXPERIMENTAL AND SUBJECT TO CHANGE.
165
+ */
166
+ void pdf_subset_fonts(fz_context *ctx, pdf_document *doc, int pages_len, const int *pages);
167
+
168
+ #endif