Skip to main content

pdfium_render/bindgen/
pdfium_7678.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3pub const FPDF_OBJECT_UNKNOWN: u32 = 0;
4pub const FPDF_OBJECT_BOOLEAN: u32 = 1;
5pub const FPDF_OBJECT_NUMBER: u32 = 2;
6pub const FPDF_OBJECT_STRING: u32 = 3;
7pub const FPDF_OBJECT_NAME: u32 = 4;
8pub const FPDF_OBJECT_ARRAY: u32 = 5;
9pub const FPDF_OBJECT_DICTIONARY: u32 = 6;
10pub const FPDF_OBJECT_STREAM: u32 = 7;
11pub const FPDF_OBJECT_NULLOBJ: u32 = 8;
12pub const FPDF_OBJECT_REFERENCE: u32 = 9;
13pub const FPDF_POLICY_MACHINETIME_ACCESS: u32 = 0;
14pub const FPDF_ERR_SUCCESS: u32 = 0;
15pub const FPDF_ERR_UNKNOWN: u32 = 1;
16pub const FPDF_ERR_FILE: u32 = 2;
17pub const FPDF_ERR_FORMAT: u32 = 3;
18pub const FPDF_ERR_PASSWORD: u32 = 4;
19pub const FPDF_ERR_SECURITY: u32 = 5;
20pub const FPDF_ERR_PAGE: u32 = 6;
21pub const FPDF_ERR_XFALOAD: u32 = 7;
22pub const FPDF_ERR_XFALAYOUT: u32 = 8;
23pub const FPDF_ANNOT: u32 = 1;
24pub const FPDF_LCD_TEXT: u32 = 2;
25pub const FPDF_NO_NATIVETEXT: u32 = 4;
26pub const FPDF_GRAYSCALE: u32 = 8;
27pub const FPDF_DEBUG_INFO: u32 = 128;
28pub const FPDF_NO_CATCH: u32 = 256;
29pub const FPDF_RENDER_LIMITEDIMAGECACHE: u32 = 512;
30pub const FPDF_RENDER_FORCEHALFTONE: u32 = 1024;
31pub const FPDF_PRINTING: u32 = 2048;
32pub const FPDF_RENDER_NO_SMOOTHTEXT: u32 = 4096;
33pub const FPDF_RENDER_NO_SMOOTHIMAGE: u32 = 8192;
34pub const FPDF_RENDER_NO_SMOOTHPATH: u32 = 16384;
35pub const FPDF_REVERSE_BYTE_ORDER: u32 = 16;
36pub const FPDF_CONVERT_FILL_TO_STROKE: u32 = 32;
37pub const FPDFBitmap_Unknown: u32 = 0;
38pub const FPDFBitmap_Gray: u32 = 1;
39pub const FPDFBitmap_BGR: u32 = 2;
40pub const FPDFBitmap_BGRx: u32 = 3;
41pub const FPDFBitmap_BGRA: u32 = 4;
42pub const FPDFBitmap_BGRA_Premul: u32 = 5;
43pub const FPDF_MATCHCASE: u32 = 1;
44pub const FPDF_MATCHWHOLEWORD: u32 = 2;
45pub const FPDF_CONSECUTIVE: u32 = 4;
46pub const PDFACTION_UNSUPPORTED: u32 = 0;
47pub const PDFACTION_GOTO: u32 = 1;
48pub const PDFACTION_REMOTEGOTO: u32 = 2;
49pub const PDFACTION_URI: u32 = 3;
50pub const PDFACTION_LAUNCH: u32 = 4;
51pub const PDFACTION_EMBEDDEDGOTO: u32 = 5;
52pub const PDFDEST_VIEW_UNKNOWN_MODE: u32 = 0;
53pub const PDFDEST_VIEW_XYZ: u32 = 1;
54pub const PDFDEST_VIEW_FIT: u32 = 2;
55pub const PDFDEST_VIEW_FITH: u32 = 3;
56pub const PDFDEST_VIEW_FITV: u32 = 4;
57pub const PDFDEST_VIEW_FITR: u32 = 5;
58pub const PDFDEST_VIEW_FITB: u32 = 6;
59pub const PDFDEST_VIEW_FITBH: u32 = 7;
60pub const PDFDEST_VIEW_FITBV: u32 = 8;
61pub const __WORDSIZE: u32 = 64;
62pub const __has_safe_buffers: u32 = 1;
63pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
64pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
65pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
66pub const __DARWIN_UNIX03: u32 = 1;
67pub const __DARWIN_64_BIT_INO_T: u32 = 1;
68pub const __DARWIN_VERS_1050: u32 = 1;
69pub const __DARWIN_NON_CANCELABLE: u32 = 0;
70pub const __DARWIN_SUF_EXTSN: &::std::ffi::CStr = c"$DARWIN_EXTSN";
71pub const __DARWIN_C_ANSI: u32 = 4096;
72pub const __DARWIN_C_FULL: u32 = 900000;
73pub const __DARWIN_C_LEVEL: u32 = 900000;
74pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
75pub const __DARWIN_NO_LONG_LONG: u32 = 0;
76pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
77pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
78pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
79pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
80pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
81pub const __has_ptrcheck: u32 = 0;
82pub const __has_bounds_safety_attributes: u32 = 0;
83pub const USE_CLANG_TYPES: u32 = 0;
84pub const __PTHREAD_SIZE__: u32 = 8176;
85pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
86pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
87pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
88pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
89pub const __PTHREAD_COND_SIZE__: u32 = 40;
90pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
91pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
92pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
93pub const INT8_MAX: u32 = 127;
94pub const INT16_MAX: u32 = 32767;
95pub const INT32_MAX: u32 = 2147483647;
96pub const INT64_MAX: u64 = 9223372036854775807;
97pub const INT8_MIN: i32 = -128;
98pub const INT16_MIN: i32 = -32768;
99pub const INT32_MIN: i32 = -2147483648;
100pub const INT64_MIN: i64 = -9223372036854775808;
101pub const UINT8_MAX: u32 = 255;
102pub const UINT16_MAX: u32 = 65535;
103pub const UINT32_MAX: u32 = 4294967295;
104pub const UINT64_MAX: i32 = -1;
105pub const INT_LEAST8_MIN: i32 = -128;
106pub const INT_LEAST16_MIN: i32 = -32768;
107pub const INT_LEAST32_MIN: i32 = -2147483648;
108pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
109pub const INT_LEAST8_MAX: u32 = 127;
110pub const INT_LEAST16_MAX: u32 = 32767;
111pub const INT_LEAST32_MAX: u32 = 2147483647;
112pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
113pub const UINT_LEAST8_MAX: u32 = 255;
114pub const UINT_LEAST16_MAX: u32 = 65535;
115pub const UINT_LEAST32_MAX: u32 = 4294967295;
116pub const UINT_LEAST64_MAX: i32 = -1;
117pub const INT_FAST8_MIN: i32 = -128;
118pub const INT_FAST16_MIN: i32 = -32768;
119pub const INT_FAST32_MIN: i32 = -2147483648;
120pub const INT_FAST64_MIN: i64 = -9223372036854775808;
121pub const INT_FAST8_MAX: u32 = 127;
122pub const INT_FAST16_MAX: u32 = 32767;
123pub const INT_FAST32_MAX: u32 = 2147483647;
124pub const INT_FAST64_MAX: u64 = 9223372036854775807;
125pub const UINT_FAST8_MAX: u32 = 255;
126pub const UINT_FAST16_MAX: u32 = 65535;
127pub const UINT_FAST32_MAX: u32 = 4294967295;
128pub const UINT_FAST64_MAX: i32 = -1;
129pub const INTPTR_MAX: u64 = 9223372036854775807;
130pub const INTPTR_MIN: i64 = -9223372036854775808;
131pub const UINTPTR_MAX: i32 = -1;
132pub const SIZE_MAX: i32 = -1;
133pub const RSIZE_MAX: i32 = -1;
134pub const WINT_MIN: i32 = -2147483648;
135pub const WINT_MAX: u32 = 2147483647;
136pub const SIG_ATOMIC_MIN: i32 = -2147483648;
137pub const SIG_ATOMIC_MAX: u32 = 2147483647;
138pub const FPDF_COLORSPACE_UNKNOWN: u32 = 0;
139pub const FPDF_COLORSPACE_DEVICEGRAY: u32 = 1;
140pub const FPDF_COLORSPACE_DEVICERGB: u32 = 2;
141pub const FPDF_COLORSPACE_DEVICECMYK: u32 = 3;
142pub const FPDF_COLORSPACE_CALGRAY: u32 = 4;
143pub const FPDF_COLORSPACE_CALRGB: u32 = 5;
144pub const FPDF_COLORSPACE_LAB: u32 = 6;
145pub const FPDF_COLORSPACE_ICCBASED: u32 = 7;
146pub const FPDF_COLORSPACE_SEPARATION: u32 = 8;
147pub const FPDF_COLORSPACE_DEVICEN: u32 = 9;
148pub const FPDF_COLORSPACE_INDEXED: u32 = 10;
149pub const FPDF_COLORSPACE_PATTERN: u32 = 11;
150pub const FPDF_PAGEOBJ_UNKNOWN: u32 = 0;
151pub const FPDF_PAGEOBJ_TEXT: u32 = 1;
152pub const FPDF_PAGEOBJ_PATH: u32 = 2;
153pub const FPDF_PAGEOBJ_IMAGE: u32 = 3;
154pub const FPDF_PAGEOBJ_SHADING: u32 = 4;
155pub const FPDF_PAGEOBJ_FORM: u32 = 5;
156pub const FPDF_SEGMENT_UNKNOWN: i32 = -1;
157pub const FPDF_SEGMENT_LINETO: u32 = 0;
158pub const FPDF_SEGMENT_BEZIERTO: u32 = 1;
159pub const FPDF_SEGMENT_MOVETO: u32 = 2;
160pub const FPDF_FILLMODE_NONE: u32 = 0;
161pub const FPDF_FILLMODE_ALTERNATE: u32 = 1;
162pub const FPDF_FILLMODE_WINDING: u32 = 2;
163pub const FPDF_FONT_TYPE1: u32 = 1;
164pub const FPDF_FONT_TRUETYPE: u32 = 2;
165pub const FPDF_LINECAP_BUTT: u32 = 0;
166pub const FPDF_LINECAP_ROUND: u32 = 1;
167pub const FPDF_LINECAP_PROJECTING_SQUARE: u32 = 2;
168pub const FPDF_LINEJOIN_MITER: u32 = 0;
169pub const FPDF_LINEJOIN_ROUND: u32 = 1;
170pub const FPDF_LINEJOIN_BEVEL: u32 = 2;
171pub const FPDF_PRINTMODE_EMF: u32 = 0;
172pub const FPDF_PRINTMODE_TEXTONLY: u32 = 1;
173pub const FPDF_PRINTMODE_POSTSCRIPT2: u32 = 2;
174pub const FPDF_PRINTMODE_POSTSCRIPT3: u32 = 3;
175pub const FPDF_PRINTMODE_POSTSCRIPT2_PASSTHROUGH: u32 = 4;
176pub const FPDF_PRINTMODE_POSTSCRIPT3_PASSTHROUGH: u32 = 5;
177pub const FPDF_PRINTMODE_EMF_IMAGE_MASKS: u32 = 6;
178pub const FPDF_PRINTMODE_POSTSCRIPT3_TYPE42: u32 = 7;
179pub const FPDF_PRINTMODE_POSTSCRIPT3_TYPE42_PASSTHROUGH: u32 = 8;
180pub const FORMTYPE_NONE: u32 = 0;
181pub const FORMTYPE_ACRO_FORM: u32 = 1;
182pub const FORMTYPE_XFA_FULL: u32 = 2;
183pub const FORMTYPE_XFA_FOREGROUND: u32 = 3;
184pub const FORMTYPE_COUNT: u32 = 4;
185pub const JSPLATFORM_ALERT_BUTTON_OK: u32 = 0;
186pub const JSPLATFORM_ALERT_BUTTON_OKCANCEL: u32 = 1;
187pub const JSPLATFORM_ALERT_BUTTON_YESNO: u32 = 2;
188pub const JSPLATFORM_ALERT_BUTTON_YESNOCANCEL: u32 = 3;
189pub const JSPLATFORM_ALERT_BUTTON_DEFAULT: u32 = 0;
190pub const JSPLATFORM_ALERT_ICON_ERROR: u32 = 0;
191pub const JSPLATFORM_ALERT_ICON_WARNING: u32 = 1;
192pub const JSPLATFORM_ALERT_ICON_QUESTION: u32 = 2;
193pub const JSPLATFORM_ALERT_ICON_STATUS: u32 = 3;
194pub const JSPLATFORM_ALERT_ICON_ASTERISK: u32 = 4;
195pub const JSPLATFORM_ALERT_ICON_DEFAULT: u32 = 0;
196pub const JSPLATFORM_ALERT_RETURN_OK: u32 = 1;
197pub const JSPLATFORM_ALERT_RETURN_CANCEL: u32 = 2;
198pub const JSPLATFORM_ALERT_RETURN_NO: u32 = 3;
199pub const JSPLATFORM_ALERT_RETURN_YES: u32 = 4;
200pub const JSPLATFORM_BEEP_ERROR: u32 = 0;
201pub const JSPLATFORM_BEEP_WARNING: u32 = 1;
202pub const JSPLATFORM_BEEP_QUESTION: u32 = 2;
203pub const JSPLATFORM_BEEP_STATUS: u32 = 3;
204pub const JSPLATFORM_BEEP_DEFAULT: u32 = 4;
205pub const FXCT_ARROW: u32 = 0;
206pub const FXCT_NESW: u32 = 1;
207pub const FXCT_NWSE: u32 = 2;
208pub const FXCT_VBEAM: u32 = 3;
209pub const FXCT_HBEAM: u32 = 4;
210pub const FXCT_HAND: u32 = 5;
211pub const FXFA_PAGEVIEWEVENT_POSTADDED: u32 = 1;
212pub const FXFA_PAGEVIEWEVENT_POSTREMOVED: u32 = 3;
213pub const FXFA_MENU_COPY: u32 = 1;
214pub const FXFA_MENU_CUT: u32 = 2;
215pub const FXFA_MENU_SELECTALL: u32 = 4;
216pub const FXFA_MENU_UNDO: u32 = 8;
217pub const FXFA_MENU_REDO: u32 = 16;
218pub const FXFA_MENU_PASTE: u32 = 32;
219pub const FXFA_SAVEAS_XML: u32 = 1;
220pub const FXFA_SAVEAS_XDP: u32 = 2;
221pub const FPDFDOC_AACTION_WC: u32 = 16;
222pub const FPDFDOC_AACTION_WS: u32 = 17;
223pub const FPDFDOC_AACTION_DS: u32 = 18;
224pub const FPDFDOC_AACTION_WP: u32 = 19;
225pub const FPDFDOC_AACTION_DP: u32 = 20;
226pub const FPDFPAGE_AACTION_OPEN: u32 = 0;
227pub const FPDFPAGE_AACTION_CLOSE: u32 = 1;
228pub const FPDF_FORMFIELD_UNKNOWN: u32 = 0;
229pub const FPDF_FORMFIELD_PUSHBUTTON: u32 = 1;
230pub const FPDF_FORMFIELD_CHECKBOX: u32 = 2;
231pub const FPDF_FORMFIELD_RADIOBUTTON: u32 = 3;
232pub const FPDF_FORMFIELD_COMBOBOX: u32 = 4;
233pub const FPDF_FORMFIELD_LISTBOX: u32 = 5;
234pub const FPDF_FORMFIELD_TEXTFIELD: u32 = 6;
235pub const FPDF_FORMFIELD_SIGNATURE: u32 = 7;
236pub const FPDF_FORMFIELD_XFA: u32 = 8;
237pub const FPDF_FORMFIELD_XFA_CHECKBOX: u32 = 9;
238pub const FPDF_FORMFIELD_XFA_COMBOBOX: u32 = 10;
239pub const FPDF_FORMFIELD_XFA_IMAGEFIELD: u32 = 11;
240pub const FPDF_FORMFIELD_XFA_LISTBOX: u32 = 12;
241pub const FPDF_FORMFIELD_XFA_PUSHBUTTON: u32 = 13;
242pub const FPDF_FORMFIELD_XFA_SIGNATURE: u32 = 14;
243pub const FPDF_FORMFIELD_XFA_TEXTFIELD: u32 = 15;
244pub const FPDF_FORMFIELD_COUNT: u32 = 16;
245pub const FPDF_ANNOT_UNKNOWN: u32 = 0;
246pub const FPDF_ANNOT_TEXT: u32 = 1;
247pub const FPDF_ANNOT_LINK: u32 = 2;
248pub const FPDF_ANNOT_FREETEXT: u32 = 3;
249pub const FPDF_ANNOT_LINE: u32 = 4;
250pub const FPDF_ANNOT_SQUARE: u32 = 5;
251pub const FPDF_ANNOT_CIRCLE: u32 = 6;
252pub const FPDF_ANNOT_POLYGON: u32 = 7;
253pub const FPDF_ANNOT_POLYLINE: u32 = 8;
254pub const FPDF_ANNOT_HIGHLIGHT: u32 = 9;
255pub const FPDF_ANNOT_UNDERLINE: u32 = 10;
256pub const FPDF_ANNOT_SQUIGGLY: u32 = 11;
257pub const FPDF_ANNOT_STRIKEOUT: u32 = 12;
258pub const FPDF_ANNOT_STAMP: u32 = 13;
259pub const FPDF_ANNOT_CARET: u32 = 14;
260pub const FPDF_ANNOT_INK: u32 = 15;
261pub const FPDF_ANNOT_POPUP: u32 = 16;
262pub const FPDF_ANNOT_FILEATTACHMENT: u32 = 17;
263pub const FPDF_ANNOT_SOUND: u32 = 18;
264pub const FPDF_ANNOT_MOVIE: u32 = 19;
265pub const FPDF_ANNOT_WIDGET: u32 = 20;
266pub const FPDF_ANNOT_SCREEN: u32 = 21;
267pub const FPDF_ANNOT_PRINTERMARK: u32 = 22;
268pub const FPDF_ANNOT_TRAPNET: u32 = 23;
269pub const FPDF_ANNOT_WATERMARK: u32 = 24;
270pub const FPDF_ANNOT_THREED: u32 = 25;
271pub const FPDF_ANNOT_RICHMEDIA: u32 = 26;
272pub const FPDF_ANNOT_XFAWIDGET: u32 = 27;
273pub const FPDF_ANNOT_REDACT: u32 = 28;
274pub const FPDF_ANNOT_FLAG_NONE: u32 = 0;
275pub const FPDF_ANNOT_FLAG_INVISIBLE: u32 = 1;
276pub const FPDF_ANNOT_FLAG_HIDDEN: u32 = 2;
277pub const FPDF_ANNOT_FLAG_PRINT: u32 = 4;
278pub const FPDF_ANNOT_FLAG_NOZOOM: u32 = 8;
279pub const FPDF_ANNOT_FLAG_NOROTATE: u32 = 16;
280pub const FPDF_ANNOT_FLAG_NOVIEW: u32 = 32;
281pub const FPDF_ANNOT_FLAG_READONLY: u32 = 64;
282pub const FPDF_ANNOT_FLAG_LOCKED: u32 = 128;
283pub const FPDF_ANNOT_FLAG_TOGGLENOVIEW: u32 = 256;
284pub const FPDF_ANNOT_APPEARANCEMODE_NORMAL: u32 = 0;
285pub const FPDF_ANNOT_APPEARANCEMODE_ROLLOVER: u32 = 1;
286pub const FPDF_ANNOT_APPEARANCEMODE_DOWN: u32 = 2;
287pub const FPDF_ANNOT_APPEARANCEMODE_COUNT: u32 = 3;
288pub const FPDF_FORMFLAG_NONE: u32 = 0;
289pub const FPDF_FORMFLAG_READONLY: u32 = 1;
290pub const FPDF_FORMFLAG_REQUIRED: u32 = 2;
291pub const FPDF_FORMFLAG_NOEXPORT: u32 = 4;
292pub const FPDF_FORMFLAG_TEXT_MULTILINE: u32 = 4096;
293pub const FPDF_FORMFLAG_TEXT_PASSWORD: u32 = 8192;
294pub const FPDF_FORMFLAG_CHOICE_COMBO: u32 = 131072;
295pub const FPDF_FORMFLAG_CHOICE_EDIT: u32 = 262144;
296pub const FPDF_FORMFLAG_CHOICE_MULTI_SELECT: u32 = 2097152;
297pub const FPDF_ANNOT_AACTION_KEY_STROKE: u32 = 12;
298pub const FPDF_ANNOT_AACTION_FORMAT: u32 = 13;
299pub const FPDF_ANNOT_AACTION_VALIDATE: u32 = 14;
300pub const FPDF_ANNOT_AACTION_CALCULATE: u32 = 15;
301pub const FLATTEN_FAIL: u32 = 0;
302pub const FLATTEN_SUCCESS: u32 = 1;
303pub const FLATTEN_NOTHINGTODO: u32 = 2;
304pub const FLAT_NORMALDISPLAY: u32 = 0;
305pub const FLAT_PRINT: u32 = 1;
306pub const FPDF_INCREMENTAL: u32 = 1;
307pub const FPDF_NO_INCREMENTAL: u32 = 2;
308pub const FPDF_REMOVE_SECURITY: u32 = 3;
309pub const FXFONT_ANSI_CHARSET: u32 = 0;
310pub const FXFONT_DEFAULT_CHARSET: u32 = 1;
311pub const FXFONT_SYMBOL_CHARSET: u32 = 2;
312pub const FXFONT_SHIFTJIS_CHARSET: u32 = 128;
313pub const FXFONT_HANGEUL_CHARSET: u32 = 129;
314pub const FXFONT_GB2312_CHARSET: u32 = 134;
315pub const FXFONT_CHINESEBIG5_CHARSET: u32 = 136;
316pub const FXFONT_GREEK_CHARSET: u32 = 161;
317pub const FXFONT_VIETNAMESE_CHARSET: u32 = 163;
318pub const FXFONT_HEBREW_CHARSET: u32 = 177;
319pub const FXFONT_ARABIC_CHARSET: u32 = 178;
320pub const FXFONT_CYRILLIC_CHARSET: u32 = 204;
321pub const FXFONT_THAI_CHARSET: u32 = 222;
322pub const FXFONT_EASTERNEUROPEAN_CHARSET: u32 = 238;
323pub const FXFONT_FF_FIXEDPITCH: u32 = 1;
324pub const FXFONT_FF_ROMAN: u32 = 16;
325pub const FXFONT_FF_SCRIPT: u32 = 64;
326pub const FXFONT_FW_NORMAL: u32 = 400;
327pub const FXFONT_FW_BOLD: u32 = 700;
328pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
329pub const _FORTIFY_SOURCE: u32 = 2;
330pub const __API_TO_BE_DEPRECATED: u32 = 100000;
331pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
332pub const __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION: u32 = 100000;
333pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
334pub const __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION: u32 = 100000;
335pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
336pub const __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION: u32 = 100000;
337pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
338pub const __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION: u32 = 100000;
339pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
340pub const __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION: u32 = 100000;
341pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
342pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
343pub const __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION: u32 = 100000;
344pub const __API_TO_BE_DEPRECATED_KERNELKIT: u32 = 100000;
345pub const __MAC_10_0: u32 = 1000;
346pub const __MAC_10_1: u32 = 1010;
347pub const __MAC_10_2: u32 = 1020;
348pub const __MAC_10_3: u32 = 1030;
349pub const __MAC_10_4: u32 = 1040;
350pub const __MAC_10_5: u32 = 1050;
351pub const __MAC_10_6: u32 = 1060;
352pub const __MAC_10_7: u32 = 1070;
353pub const __MAC_10_8: u32 = 1080;
354pub const __MAC_10_9: u32 = 1090;
355pub const __MAC_10_10: u32 = 101000;
356pub const __MAC_10_10_2: u32 = 101002;
357pub const __MAC_10_10_3: u32 = 101003;
358pub const __MAC_10_11: u32 = 101100;
359pub const __MAC_10_11_2: u32 = 101102;
360pub const __MAC_10_11_3: u32 = 101103;
361pub const __MAC_10_11_4: u32 = 101104;
362pub const __MAC_10_12: u32 = 101200;
363pub const __MAC_10_12_1: u32 = 101201;
364pub const __MAC_10_12_2: u32 = 101202;
365pub const __MAC_10_12_4: u32 = 101204;
366pub const __MAC_10_13: u32 = 101300;
367pub const __MAC_10_13_1: u32 = 101301;
368pub const __MAC_10_13_2: u32 = 101302;
369pub const __MAC_10_13_4: u32 = 101304;
370pub const __MAC_10_14: u32 = 101400;
371pub const __MAC_10_14_1: u32 = 101401;
372pub const __MAC_10_14_4: u32 = 101404;
373pub const __MAC_10_14_5: u32 = 101405;
374pub const __MAC_10_14_6: u32 = 101406;
375pub const __MAC_10_15: u32 = 101500;
376pub const __MAC_10_15_1: u32 = 101501;
377pub const __MAC_10_15_4: u32 = 101504;
378pub const __MAC_10_16: u32 = 101600;
379pub const __MAC_11_0: u32 = 110000;
380pub const __MAC_11_1: u32 = 110100;
381pub const __MAC_11_3: u32 = 110300;
382pub const __MAC_11_4: u32 = 110400;
383pub const __MAC_11_5: u32 = 110500;
384pub const __MAC_11_6: u32 = 110600;
385pub const __MAC_12_0: u32 = 120000;
386pub const __MAC_12_1: u32 = 120100;
387pub const __MAC_12_2: u32 = 120200;
388pub const __MAC_12_3: u32 = 120300;
389pub const __MAC_12_4: u32 = 120400;
390pub const __MAC_12_5: u32 = 120500;
391pub const __MAC_12_6: u32 = 120600;
392pub const __MAC_12_7: u32 = 120700;
393pub const __MAC_13_0: u32 = 130000;
394pub const __MAC_13_1: u32 = 130100;
395pub const __MAC_13_2: u32 = 130200;
396pub const __MAC_13_3: u32 = 130300;
397pub const __MAC_13_4: u32 = 130400;
398pub const __MAC_13_5: u32 = 130500;
399pub const __MAC_13_6: u32 = 130600;
400pub const __MAC_13_7: u32 = 130700;
401pub const __MAC_14_0: u32 = 140000;
402pub const __MAC_14_1: u32 = 140100;
403pub const __MAC_14_2: u32 = 140200;
404pub const __MAC_14_3: u32 = 140300;
405pub const __MAC_14_4: u32 = 140400;
406pub const __MAC_14_5: u32 = 140500;
407pub const __MAC_14_6: u32 = 140600;
408pub const __MAC_14_7: u32 = 140700;
409pub const __MAC_15_0: u32 = 150000;
410pub const __MAC_15_1: u32 = 150100;
411pub const __MAC_15_2: u32 = 150200;
412pub const __MAC_15_3: u32 = 150300;
413pub const __MAC_15_4: u32 = 150400;
414pub const __MAC_15_5: u32 = 150500;
415pub const __MAC_15_6: u32 = 150600;
416pub const __MAC_16_0: u32 = 160000;
417pub const __MAC_26_0: u32 = 260000;
418pub const __MAC_26_1: u32 = 260100;
419pub const __MAC_26_2: u32 = 260200;
420pub const __IPHONE_2_0: u32 = 20000;
421pub const __IPHONE_2_1: u32 = 20100;
422pub const __IPHONE_2_2: u32 = 20200;
423pub const __IPHONE_3_0: u32 = 30000;
424pub const __IPHONE_3_1: u32 = 30100;
425pub const __IPHONE_3_2: u32 = 30200;
426pub const __IPHONE_4_0: u32 = 40000;
427pub const __IPHONE_4_1: u32 = 40100;
428pub const __IPHONE_4_2: u32 = 40200;
429pub const __IPHONE_4_3: u32 = 40300;
430pub const __IPHONE_5_0: u32 = 50000;
431pub const __IPHONE_5_1: u32 = 50100;
432pub const __IPHONE_6_0: u32 = 60000;
433pub const __IPHONE_6_1: u32 = 60100;
434pub const __IPHONE_7_0: u32 = 70000;
435pub const __IPHONE_7_1: u32 = 70100;
436pub const __IPHONE_8_0: u32 = 80000;
437pub const __IPHONE_8_1: u32 = 80100;
438pub const __IPHONE_8_2: u32 = 80200;
439pub const __IPHONE_8_3: u32 = 80300;
440pub const __IPHONE_8_4: u32 = 80400;
441pub const __IPHONE_9_0: u32 = 90000;
442pub const __IPHONE_9_1: u32 = 90100;
443pub const __IPHONE_9_2: u32 = 90200;
444pub const __IPHONE_9_3: u32 = 90300;
445pub const __IPHONE_10_0: u32 = 100000;
446pub const __IPHONE_10_1: u32 = 100100;
447pub const __IPHONE_10_2: u32 = 100200;
448pub const __IPHONE_10_3: u32 = 100300;
449pub const __IPHONE_11_0: u32 = 110000;
450pub const __IPHONE_11_1: u32 = 110100;
451pub const __IPHONE_11_2: u32 = 110200;
452pub const __IPHONE_11_3: u32 = 110300;
453pub const __IPHONE_11_4: u32 = 110400;
454pub const __IPHONE_12_0: u32 = 120000;
455pub const __IPHONE_12_1: u32 = 120100;
456pub const __IPHONE_12_2: u32 = 120200;
457pub const __IPHONE_12_3: u32 = 120300;
458pub const __IPHONE_12_4: u32 = 120400;
459pub const __IPHONE_13_0: u32 = 130000;
460pub const __IPHONE_13_1: u32 = 130100;
461pub const __IPHONE_13_2: u32 = 130200;
462pub const __IPHONE_13_3: u32 = 130300;
463pub const __IPHONE_13_4: u32 = 130400;
464pub const __IPHONE_13_5: u32 = 130500;
465pub const __IPHONE_13_6: u32 = 130600;
466pub const __IPHONE_13_7: u32 = 130700;
467pub const __IPHONE_14_0: u32 = 140000;
468pub const __IPHONE_14_1: u32 = 140100;
469pub const __IPHONE_14_2: u32 = 140200;
470pub const __IPHONE_14_3: u32 = 140300;
471pub const __IPHONE_14_5: u32 = 140500;
472pub const __IPHONE_14_6: u32 = 140600;
473pub const __IPHONE_14_7: u32 = 140700;
474pub const __IPHONE_14_8: u32 = 140800;
475pub const __IPHONE_15_0: u32 = 150000;
476pub const __IPHONE_15_1: u32 = 150100;
477pub const __IPHONE_15_2: u32 = 150200;
478pub const __IPHONE_15_3: u32 = 150300;
479pub const __IPHONE_15_4: u32 = 150400;
480pub const __IPHONE_15_5: u32 = 150500;
481pub const __IPHONE_15_6: u32 = 150600;
482pub const __IPHONE_15_7: u32 = 150700;
483pub const __IPHONE_15_8: u32 = 150800;
484pub const __IPHONE_16_0: u32 = 160000;
485pub const __IPHONE_16_1: u32 = 160100;
486pub const __IPHONE_16_2: u32 = 160200;
487pub const __IPHONE_16_3: u32 = 160300;
488pub const __IPHONE_16_4: u32 = 160400;
489pub const __IPHONE_16_5: u32 = 160500;
490pub const __IPHONE_16_6: u32 = 160600;
491pub const __IPHONE_16_7: u32 = 160700;
492pub const __IPHONE_17_0: u32 = 170000;
493pub const __IPHONE_17_1: u32 = 170100;
494pub const __IPHONE_17_2: u32 = 170200;
495pub const __IPHONE_17_3: u32 = 170300;
496pub const __IPHONE_17_4: u32 = 170400;
497pub const __IPHONE_17_5: u32 = 170500;
498pub const __IPHONE_17_6: u32 = 170600;
499pub const __IPHONE_17_7: u32 = 170700;
500pub const __IPHONE_18_0: u32 = 180000;
501pub const __IPHONE_18_1: u32 = 180100;
502pub const __IPHONE_18_2: u32 = 180200;
503pub const __IPHONE_18_3: u32 = 180300;
504pub const __IPHONE_18_4: u32 = 180400;
505pub const __IPHONE_18_5: u32 = 180500;
506pub const __IPHONE_18_6: u32 = 180600;
507pub const __IPHONE_19_0: u32 = 190000;
508pub const __IPHONE_26_0: u32 = 260000;
509pub const __IPHONE_26_1: u32 = 260100;
510pub const __IPHONE_26_2: u32 = 260200;
511pub const __WATCHOS_1_0: u32 = 10000;
512pub const __WATCHOS_2_0: u32 = 20000;
513pub const __WATCHOS_2_1: u32 = 20100;
514pub const __WATCHOS_2_2: u32 = 20200;
515pub const __WATCHOS_3_0: u32 = 30000;
516pub const __WATCHOS_3_1: u32 = 30100;
517pub const __WATCHOS_3_1_1: u32 = 30101;
518pub const __WATCHOS_3_2: u32 = 30200;
519pub const __WATCHOS_4_0: u32 = 40000;
520pub const __WATCHOS_4_1: u32 = 40100;
521pub const __WATCHOS_4_2: u32 = 40200;
522pub const __WATCHOS_4_3: u32 = 40300;
523pub const __WATCHOS_5_0: u32 = 50000;
524pub const __WATCHOS_5_1: u32 = 50100;
525pub const __WATCHOS_5_2: u32 = 50200;
526pub const __WATCHOS_5_3: u32 = 50300;
527pub const __WATCHOS_6_0: u32 = 60000;
528pub const __WATCHOS_6_1: u32 = 60100;
529pub const __WATCHOS_6_2: u32 = 60200;
530pub const __WATCHOS_7_0: u32 = 70000;
531pub const __WATCHOS_7_1: u32 = 70100;
532pub const __WATCHOS_7_2: u32 = 70200;
533pub const __WATCHOS_7_3: u32 = 70300;
534pub const __WATCHOS_7_4: u32 = 70400;
535pub const __WATCHOS_7_5: u32 = 70500;
536pub const __WATCHOS_7_6: u32 = 70600;
537pub const __WATCHOS_8_0: u32 = 80000;
538pub const __WATCHOS_8_1: u32 = 80100;
539pub const __WATCHOS_8_3: u32 = 80300;
540pub const __WATCHOS_8_4: u32 = 80400;
541pub const __WATCHOS_8_5: u32 = 80500;
542pub const __WATCHOS_8_6: u32 = 80600;
543pub const __WATCHOS_8_7: u32 = 80700;
544pub const __WATCHOS_8_8: u32 = 80800;
545pub const __WATCHOS_9_0: u32 = 90000;
546pub const __WATCHOS_9_1: u32 = 90100;
547pub const __WATCHOS_9_2: u32 = 90200;
548pub const __WATCHOS_9_3: u32 = 90300;
549pub const __WATCHOS_9_4: u32 = 90400;
550pub const __WATCHOS_9_5: u32 = 90500;
551pub const __WATCHOS_9_6: u32 = 90600;
552pub const __WATCHOS_10_0: u32 = 100000;
553pub const __WATCHOS_10_1: u32 = 100100;
554pub const __WATCHOS_10_2: u32 = 100200;
555pub const __WATCHOS_10_3: u32 = 100300;
556pub const __WATCHOS_10_4: u32 = 100400;
557pub const __WATCHOS_10_5: u32 = 100500;
558pub const __WATCHOS_10_6: u32 = 100600;
559pub const __WATCHOS_10_7: u32 = 100700;
560pub const __WATCHOS_11_0: u32 = 110000;
561pub const __WATCHOS_11_1: u32 = 110100;
562pub const __WATCHOS_11_2: u32 = 110200;
563pub const __WATCHOS_11_3: u32 = 110300;
564pub const __WATCHOS_11_4: u32 = 110400;
565pub const __WATCHOS_11_5: u32 = 110500;
566pub const __WATCHOS_11_6: u32 = 110600;
567pub const __WATCHOS_12_0: u32 = 120000;
568pub const __WATCHOS_26_0: u32 = 260000;
569pub const __WATCHOS_26_1: u32 = 260100;
570pub const __WATCHOS_26_2: u32 = 260200;
571pub const __TVOS_9_0: u32 = 90000;
572pub const __TVOS_9_1: u32 = 90100;
573pub const __TVOS_9_2: u32 = 90200;
574pub const __TVOS_10_0: u32 = 100000;
575pub const __TVOS_10_0_1: u32 = 100001;
576pub const __TVOS_10_1: u32 = 100100;
577pub const __TVOS_10_2: u32 = 100200;
578pub const __TVOS_11_0: u32 = 110000;
579pub const __TVOS_11_1: u32 = 110100;
580pub const __TVOS_11_2: u32 = 110200;
581pub const __TVOS_11_3: u32 = 110300;
582pub const __TVOS_11_4: u32 = 110400;
583pub const __TVOS_12_0: u32 = 120000;
584pub const __TVOS_12_1: u32 = 120100;
585pub const __TVOS_12_2: u32 = 120200;
586pub const __TVOS_12_3: u32 = 120300;
587pub const __TVOS_12_4: u32 = 120400;
588pub const __TVOS_13_0: u32 = 130000;
589pub const __TVOS_13_2: u32 = 130200;
590pub const __TVOS_13_3: u32 = 130300;
591pub const __TVOS_13_4: u32 = 130400;
592pub const __TVOS_14_0: u32 = 140000;
593pub const __TVOS_14_1: u32 = 140100;
594pub const __TVOS_14_2: u32 = 140200;
595pub const __TVOS_14_3: u32 = 140300;
596pub const __TVOS_14_5: u32 = 140500;
597pub const __TVOS_14_6: u32 = 140600;
598pub const __TVOS_14_7: u32 = 140700;
599pub const __TVOS_15_0: u32 = 150000;
600pub const __TVOS_15_1: u32 = 150100;
601pub const __TVOS_15_2: u32 = 150200;
602pub const __TVOS_15_3: u32 = 150300;
603pub const __TVOS_15_4: u32 = 150400;
604pub const __TVOS_15_5: u32 = 150500;
605pub const __TVOS_15_6: u32 = 150600;
606pub const __TVOS_16_0: u32 = 160000;
607pub const __TVOS_16_1: u32 = 160100;
608pub const __TVOS_16_2: u32 = 160200;
609pub const __TVOS_16_3: u32 = 160300;
610pub const __TVOS_16_4: u32 = 160400;
611pub const __TVOS_16_5: u32 = 160500;
612pub const __TVOS_16_6: u32 = 160600;
613pub const __TVOS_17_0: u32 = 170000;
614pub const __TVOS_17_1: u32 = 170100;
615pub const __TVOS_17_2: u32 = 170200;
616pub const __TVOS_17_3: u32 = 170300;
617pub const __TVOS_17_4: u32 = 170400;
618pub const __TVOS_17_5: u32 = 170500;
619pub const __TVOS_17_6: u32 = 170600;
620pub const __TVOS_18_0: u32 = 180000;
621pub const __TVOS_18_1: u32 = 180100;
622pub const __TVOS_18_2: u32 = 180200;
623pub const __TVOS_18_3: u32 = 180300;
624pub const __TVOS_18_4: u32 = 180400;
625pub const __TVOS_18_5: u32 = 180500;
626pub const __TVOS_18_6: u32 = 180600;
627pub const __TVOS_19_0: u32 = 190000;
628pub const __TVOS_26_0: u32 = 260000;
629pub const __TVOS_26_1: u32 = 260100;
630pub const __TVOS_26_2: u32 = 260200;
631pub const __BRIDGEOS_2_0: u32 = 20000;
632pub const __BRIDGEOS_3_0: u32 = 30000;
633pub const __BRIDGEOS_3_1: u32 = 30100;
634pub const __BRIDGEOS_3_4: u32 = 30400;
635pub const __BRIDGEOS_4_0: u32 = 40000;
636pub const __BRIDGEOS_4_1: u32 = 40100;
637pub const __BRIDGEOS_5_0: u32 = 50000;
638pub const __BRIDGEOS_5_1: u32 = 50100;
639pub const __BRIDGEOS_5_3: u32 = 50300;
640pub const __BRIDGEOS_6_0: u32 = 60000;
641pub const __BRIDGEOS_6_2: u32 = 60200;
642pub const __BRIDGEOS_6_4: u32 = 60400;
643pub const __BRIDGEOS_6_5: u32 = 60500;
644pub const __BRIDGEOS_6_6: u32 = 60600;
645pub const __BRIDGEOS_7_0: u32 = 70000;
646pub const __BRIDGEOS_7_1: u32 = 70100;
647pub const __BRIDGEOS_7_2: u32 = 70200;
648pub const __BRIDGEOS_7_3: u32 = 70300;
649pub const __BRIDGEOS_7_4: u32 = 70400;
650pub const __BRIDGEOS_7_6: u32 = 70600;
651pub const __BRIDGEOS_8_0: u32 = 80000;
652pub const __BRIDGEOS_8_1: u32 = 80100;
653pub const __BRIDGEOS_8_2: u32 = 80200;
654pub const __BRIDGEOS_8_3: u32 = 80300;
655pub const __BRIDGEOS_8_4: u32 = 80400;
656pub const __BRIDGEOS_8_5: u32 = 80500;
657pub const __BRIDGEOS_8_6: u32 = 80600;
658pub const __BRIDGEOS_9_0: u32 = 90000;
659pub const __BRIDGEOS_9_1: u32 = 90100;
660pub const __BRIDGEOS_9_2: u32 = 90200;
661pub const __BRIDGEOS_9_3: u32 = 90300;
662pub const __BRIDGEOS_9_4: u32 = 90400;
663pub const __BRIDGEOS_9_5: u32 = 90500;
664pub const __BRIDGEOS_9_6: u32 = 90600;
665pub const __BRIDGEOS_10_0: u32 = 100000;
666pub const __BRIDGEOS_10_1: u32 = 100100;
667pub const __BRIDGEOS_10_2: u32 = 100200;
668pub const __DRIVERKIT_19_0: u32 = 190000;
669pub const __DRIVERKIT_20_0: u32 = 200000;
670pub const __DRIVERKIT_21_0: u32 = 210000;
671pub const __DRIVERKIT_22_0: u32 = 220000;
672pub const __DRIVERKIT_22_4: u32 = 220400;
673pub const __DRIVERKIT_22_5: u32 = 220500;
674pub const __DRIVERKIT_22_6: u32 = 220600;
675pub const __DRIVERKIT_23_0: u32 = 230000;
676pub const __DRIVERKIT_23_1: u32 = 230100;
677pub const __DRIVERKIT_23_2: u32 = 230200;
678pub const __DRIVERKIT_23_3: u32 = 230300;
679pub const __DRIVERKIT_23_4: u32 = 230400;
680pub const __DRIVERKIT_23_5: u32 = 230500;
681pub const __DRIVERKIT_23_6: u32 = 230600;
682pub const __DRIVERKIT_24_0: u32 = 240000;
683pub const __DRIVERKIT_24_1: u32 = 240100;
684pub const __DRIVERKIT_24_2: u32 = 240200;
685pub const __DRIVERKIT_24_3: u32 = 240300;
686pub const __DRIVERKIT_24_4: u32 = 240400;
687pub const __DRIVERKIT_24_5: u32 = 240500;
688pub const __DRIVERKIT_24_6: u32 = 240600;
689pub const __DRIVERKIT_25_0: u32 = 250000;
690pub const __DRIVERKIT_25_1: u32 = 250100;
691pub const __DRIVERKIT_25_2: u32 = 250200;
692pub const __VISIONOS_1_0: u32 = 10000;
693pub const __VISIONOS_1_1: u32 = 10100;
694pub const __VISIONOS_1_2: u32 = 10200;
695pub const __VISIONOS_1_3: u32 = 10300;
696pub const __VISIONOS_2_0: u32 = 20000;
697pub const __VISIONOS_2_1: u32 = 20100;
698pub const __VISIONOS_2_2: u32 = 20200;
699pub const __VISIONOS_2_3: u32 = 20300;
700pub const __VISIONOS_2_4: u32 = 20400;
701pub const __VISIONOS_2_5: u32 = 20500;
702pub const __VISIONOS_2_6: u32 = 20600;
703pub const __VISIONOS_3_0: u32 = 30000;
704pub const __VISIONOS_26_0: u32 = 260000;
705pub const __VISIONOS_26_1: u32 = 260100;
706pub const __VISIONOS_26_2: u32 = 260200;
707pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
708pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
709pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
710pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
711pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
712pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
713pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
714pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
715pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
716pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
717pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
718pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
719pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
720pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
721pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
722pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
723pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
724pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
725pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
726pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
727pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
728pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
729pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
730pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
731pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
732pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
733pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
734pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
735pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
736pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
737pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
738pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
739pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
740pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
741pub const MAC_OS_VERSION_11_0: u32 = 110000;
742pub const MAC_OS_VERSION_11_1: u32 = 110100;
743pub const MAC_OS_VERSION_11_3: u32 = 110300;
744pub const MAC_OS_VERSION_11_4: u32 = 110400;
745pub const MAC_OS_VERSION_11_5: u32 = 110500;
746pub const MAC_OS_VERSION_11_6: u32 = 110600;
747pub const MAC_OS_VERSION_12_0: u32 = 120000;
748pub const MAC_OS_VERSION_12_1: u32 = 120100;
749pub const MAC_OS_VERSION_12_2: u32 = 120200;
750pub const MAC_OS_VERSION_12_3: u32 = 120300;
751pub const MAC_OS_VERSION_12_4: u32 = 120400;
752pub const MAC_OS_VERSION_12_5: u32 = 120500;
753pub const MAC_OS_VERSION_12_6: u32 = 120600;
754pub const MAC_OS_VERSION_12_7: u32 = 120700;
755pub const MAC_OS_VERSION_13_0: u32 = 130000;
756pub const MAC_OS_VERSION_13_1: u32 = 130100;
757pub const MAC_OS_VERSION_13_2: u32 = 130200;
758pub const MAC_OS_VERSION_13_3: u32 = 130300;
759pub const MAC_OS_VERSION_13_4: u32 = 130400;
760pub const MAC_OS_VERSION_13_5: u32 = 130500;
761pub const MAC_OS_VERSION_13_6: u32 = 130600;
762pub const MAC_OS_VERSION_13_7: u32 = 130700;
763pub const MAC_OS_VERSION_14_0: u32 = 140000;
764pub const MAC_OS_VERSION_14_1: u32 = 140100;
765pub const MAC_OS_VERSION_14_2: u32 = 140200;
766pub const MAC_OS_VERSION_14_3: u32 = 140300;
767pub const MAC_OS_VERSION_14_4: u32 = 140400;
768pub const MAC_OS_VERSION_14_5: u32 = 140500;
769pub const MAC_OS_VERSION_14_6: u32 = 140600;
770pub const MAC_OS_VERSION_14_7: u32 = 140700;
771pub const MAC_OS_VERSION_15_0: u32 = 150000;
772pub const MAC_OS_VERSION_15_1: u32 = 150100;
773pub const MAC_OS_VERSION_15_2: u32 = 150200;
774pub const MAC_OS_VERSION_15_3: u32 = 150300;
775pub const MAC_OS_VERSION_15_4: u32 = 150400;
776pub const MAC_OS_VERSION_15_5: u32 = 150500;
777pub const MAC_OS_VERSION_15_6: u32 = 150600;
778pub const MAC_OS_VERSION_16_0: u32 = 160000;
779pub const MAC_OS_VERSION_26_0: u32 = 260000;
780pub const MAC_OS_VERSION_26_1: u32 = 260100;
781pub const MAC_OS_VERSION_26_2: u32 = 260200;
782pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900;
783pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &::std::ffi::CStr = c"Local";
784pub const __AVAILABILITY_FILE: &::std::ffi::CStr = c"AvailabilityVersions.h";
785pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260200;
786pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
787pub const USE_CLANG_STDDEF: u32 = 0;
788pub const TIME_UTC: u32 = 1;
789pub const FPDF_UNSP_DOC_XFAFORM: u32 = 1;
790pub const FPDF_UNSP_DOC_PORTABLECOLLECTION: u32 = 2;
791pub const FPDF_UNSP_DOC_ATTACHMENT: u32 = 3;
792pub const FPDF_UNSP_DOC_SECURITY: u32 = 4;
793pub const FPDF_UNSP_DOC_SHAREDREVIEW: u32 = 5;
794pub const FPDF_UNSP_DOC_SHAREDFORM_ACROBAT: u32 = 6;
795pub const FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM: u32 = 7;
796pub const FPDF_UNSP_DOC_SHAREDFORM_EMAIL: u32 = 8;
797pub const FPDF_UNSP_ANNOT_3DANNOT: u32 = 11;
798pub const FPDF_UNSP_ANNOT_MOVIE: u32 = 12;
799pub const FPDF_UNSP_ANNOT_SOUND: u32 = 13;
800pub const FPDF_UNSP_ANNOT_SCREEN_MEDIA: u32 = 14;
801pub const FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA: u32 = 15;
802pub const FPDF_UNSP_ANNOT_ATTACHMENT: u32 = 16;
803pub const FPDF_UNSP_ANNOT_SIG: u32 = 17;
804pub const PAGEMODE_UNKNOWN: i32 = -1;
805pub const PAGEMODE_USENONE: u32 = 0;
806pub const PAGEMODE_USEOUTLINES: u32 = 1;
807pub const PAGEMODE_USETHUMBS: u32 = 2;
808pub const PAGEMODE_FULLSCREEN: u32 = 3;
809pub const PAGEMODE_USEOC: u32 = 4;
810pub const PAGEMODE_USEATTACHMENTS: u32 = 5;
811pub const FPDF_RENDER_READY: u32 = 0;
812pub const FPDF_RENDER_TOBECONTINUED: u32 = 1;
813pub const FPDF_RENDER_DONE: u32 = 2;
814pub const FPDF_RENDER_FAILED: u32 = 3;
815pub const PDF_LINEARIZATION_UNKNOWN: i32 = -1;
816pub const PDF_NOT_LINEARIZED: u32 = 0;
817pub const PDF_LINEARIZED: u32 = 1;
818pub const PDF_DATA_ERROR: i32 = -1;
819pub const PDF_DATA_NOTAVAIL: u32 = 0;
820pub const PDF_DATA_AVAIL: u32 = 1;
821pub const PDF_FORM_ERROR: i32 = -1;
822pub const PDF_FORM_NOTAVAIL: u32 = 0;
823pub const PDF_FORM_AVAIL: u32 = 1;
824pub const PDF_FORM_NOTEXIST: u32 = 2;
825pub type wchar_t = ::std::os::raw::c_int;
826pub type max_align_t = f64;
827pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_UNKNOWN: FPDF_TEXT_RENDERMODE = -1;
828pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_FILL: FPDF_TEXT_RENDERMODE = 0;
829pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_STROKE: FPDF_TEXT_RENDERMODE = 1;
830pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_FILL_STROKE: FPDF_TEXT_RENDERMODE = 2;
831pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_INVISIBLE: FPDF_TEXT_RENDERMODE = 3;
832pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_FILL_CLIP: FPDF_TEXT_RENDERMODE = 4;
833pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_STROKE_CLIP: FPDF_TEXT_RENDERMODE = 5;
834pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_FILL_STROKE_CLIP: FPDF_TEXT_RENDERMODE = 6;
835pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_CLIP: FPDF_TEXT_RENDERMODE = 7;
836pub const FPDF_TEXT_RENDERMODE_FPDF_TEXTRENDERMODE_LAST: FPDF_TEXT_RENDERMODE = 7;
837#[doc = " PDF text rendering modes"]
838pub type FPDF_TEXT_RENDERMODE = ::std::os::raw::c_int;
839#[repr(C)]
840#[derive(Debug, Copy, Clone)]
841pub struct fpdf_action_t__ {
842    _unused: [u8; 0],
843}
844#[doc = " PDF types - use incomplete types (never completed) to force API type safety."]
845pub type FPDF_ACTION = *mut fpdf_action_t__;
846#[repr(C)]
847#[derive(Debug, Copy, Clone)]
848pub struct fpdf_annotation_t__ {
849    _unused: [u8; 0],
850}
851pub type FPDF_ANNOTATION = *mut fpdf_annotation_t__;
852#[repr(C)]
853#[derive(Debug, Copy, Clone)]
854pub struct fpdf_attachment_t__ {
855    _unused: [u8; 0],
856}
857pub type FPDF_ATTACHMENT = *mut fpdf_attachment_t__;
858#[repr(C)]
859#[derive(Debug, Copy, Clone)]
860pub struct fpdf_avail_t__ {
861    _unused: [u8; 0],
862}
863pub type FPDF_AVAIL = *mut fpdf_avail_t__;
864#[repr(C)]
865#[derive(Debug, Copy, Clone)]
866pub struct fpdf_bitmap_t__ {
867    _unused: [u8; 0],
868}
869pub type FPDF_BITMAP = *mut fpdf_bitmap_t__;
870#[repr(C)]
871#[derive(Debug, Copy, Clone)]
872pub struct fpdf_bookmark_t__ {
873    _unused: [u8; 0],
874}
875pub type FPDF_BOOKMARK = *mut fpdf_bookmark_t__;
876#[repr(C)]
877#[derive(Debug, Copy, Clone)]
878pub struct fpdf_clippath_t__ {
879    _unused: [u8; 0],
880}
881pub type FPDF_CLIPPATH = *mut fpdf_clippath_t__;
882#[repr(C)]
883#[derive(Debug, Copy, Clone)]
884pub struct fpdf_dest_t__ {
885    _unused: [u8; 0],
886}
887pub type FPDF_DEST = *mut fpdf_dest_t__;
888#[repr(C)]
889#[derive(Debug, Copy, Clone)]
890pub struct fpdf_document_t__ {
891    _unused: [u8; 0],
892}
893pub type FPDF_DOCUMENT = *mut fpdf_document_t__;
894#[repr(C)]
895#[derive(Debug, Copy, Clone)]
896pub struct fpdf_font_t__ {
897    _unused: [u8; 0],
898}
899pub type FPDF_FONT = *mut fpdf_font_t__;
900#[repr(C)]
901#[derive(Debug, Copy, Clone)]
902pub struct fpdf_form_handle_t__ {
903    _unused: [u8; 0],
904}
905pub type FPDF_FORMHANDLE = *mut fpdf_form_handle_t__;
906#[repr(C)]
907#[derive(Debug, Copy, Clone)]
908pub struct fpdf_glyphpath_t__ {
909    _unused: [u8; 0],
910}
911pub type FPDF_GLYPHPATH = *const fpdf_glyphpath_t__;
912#[repr(C)]
913#[derive(Debug, Copy, Clone)]
914pub struct fpdf_javascript_action_t {
915    _unused: [u8; 0],
916}
917pub type FPDF_JAVASCRIPT_ACTION = *mut fpdf_javascript_action_t;
918#[repr(C)]
919#[derive(Debug, Copy, Clone)]
920pub struct fpdf_link_t__ {
921    _unused: [u8; 0],
922}
923pub type FPDF_LINK = *mut fpdf_link_t__;
924#[repr(C)]
925#[derive(Debug, Copy, Clone)]
926pub struct fpdf_page_t__ {
927    _unused: [u8; 0],
928}
929pub type FPDF_PAGE = *mut fpdf_page_t__;
930#[repr(C)]
931#[derive(Debug, Copy, Clone)]
932pub struct fpdf_pagelink_t__ {
933    _unused: [u8; 0],
934}
935pub type FPDF_PAGELINK = *mut fpdf_pagelink_t__;
936#[repr(C)]
937#[derive(Debug, Copy, Clone)]
938pub struct fpdf_pageobject_t__ {
939    _unused: [u8; 0],
940}
941pub type FPDF_PAGEOBJECT = *mut fpdf_pageobject_t__;
942#[repr(C)]
943#[derive(Debug, Copy, Clone)]
944pub struct fpdf_pageobjectmark_t__ {
945    _unused: [u8; 0],
946}
947pub type FPDF_PAGEOBJECTMARK = *mut fpdf_pageobjectmark_t__;
948#[repr(C)]
949#[derive(Debug, Copy, Clone)]
950pub struct fpdf_pagerange_t__ {
951    _unused: [u8; 0],
952}
953pub type FPDF_PAGERANGE = *const fpdf_pagerange_t__;
954#[repr(C)]
955#[derive(Debug, Copy, Clone)]
956pub struct fpdf_pathsegment_t {
957    _unused: [u8; 0],
958}
959pub type FPDF_PATHSEGMENT = *const fpdf_pathsegment_t;
960#[repr(C)]
961#[derive(Debug, Copy, Clone)]
962pub struct fpdf_schhandle_t__ {
963    _unused: [u8; 0],
964}
965pub type FPDF_SCHHANDLE = *mut fpdf_schhandle_t__;
966#[repr(C)]
967#[derive(Debug, Copy, Clone)]
968pub struct fpdf_signature_t__ {
969    _unused: [u8; 0],
970}
971pub type FPDF_SIGNATURE = *const fpdf_signature_t__;
972pub type FPDF_SKIA_CANVAS = *mut ::std::os::raw::c_void;
973#[repr(C)]
974#[derive(Debug, Copy, Clone)]
975pub struct fpdf_structelement_t__ {
976    _unused: [u8; 0],
977}
978pub type FPDF_STRUCTELEMENT = *mut fpdf_structelement_t__;
979#[repr(C)]
980#[derive(Debug, Copy, Clone)]
981pub struct fpdf_structelement_attr_t__ {
982    _unused: [u8; 0],
983}
984pub type FPDF_STRUCTELEMENT_ATTR = *const fpdf_structelement_attr_t__;
985#[repr(C)]
986#[derive(Debug, Copy, Clone)]
987pub struct fpdf_structelement_attr_value_t__ {
988    _unused: [u8; 0],
989}
990pub type FPDF_STRUCTELEMENT_ATTR_VALUE = *const fpdf_structelement_attr_value_t__;
991#[repr(C)]
992#[derive(Debug, Copy, Clone)]
993pub struct fpdf_structtree_t__ {
994    _unused: [u8; 0],
995}
996pub type FPDF_STRUCTTREE = *mut fpdf_structtree_t__;
997#[repr(C)]
998#[derive(Debug, Copy, Clone)]
999pub struct fpdf_textpage_t__ {
1000    _unused: [u8; 0],
1001}
1002pub type FPDF_TEXTPAGE = *mut fpdf_textpage_t__;
1003#[repr(C)]
1004#[derive(Debug, Copy, Clone)]
1005pub struct fpdf_widget_t__ {
1006    _unused: [u8; 0],
1007}
1008pub type FPDF_WIDGET = *mut fpdf_widget_t__;
1009#[repr(C)]
1010#[derive(Debug, Copy, Clone)]
1011pub struct fpdf_xobject_t__ {
1012    _unused: [u8; 0],
1013}
1014pub type FPDF_XOBJECT = *mut fpdf_xobject_t__;
1015#[doc = " Basic data types"]
1016pub type FPDF_BOOL = ::std::os::raw::c_int;
1017pub type FPDF_RESULT = ::std::os::raw::c_int;
1018pub type FPDF_DWORD = ::std::os::raw::c_ulong;
1019pub type FS_FLOAT = f32;
1020pub const _FPDF_DUPLEXTYPE__DuplexUndefined: _FPDF_DUPLEXTYPE_ = 0;
1021pub const _FPDF_DUPLEXTYPE__Simplex: _FPDF_DUPLEXTYPE_ = 1;
1022pub const _FPDF_DUPLEXTYPE__DuplexFlipShortEdge: _FPDF_DUPLEXTYPE_ = 2;
1023pub const _FPDF_DUPLEXTYPE__DuplexFlipLongEdge: _FPDF_DUPLEXTYPE_ = 3;
1024#[doc = " Duplex types"]
1025pub type _FPDF_DUPLEXTYPE_ = ::std::os::raw::c_uint;
1026#[doc = " Duplex types"]
1027pub use self::_FPDF_DUPLEXTYPE_ as FPDF_DUPLEXTYPE;
1028#[doc = " String types"]
1029pub type FPDF_WCHAR = ::std::os::raw::c_ushort;
1030#[doc = " Public PDFium API type for byte strings."]
1031pub type FPDF_BYTESTRING = *const ::std::os::raw::c_char;
1032#[doc = " The public PDFium API always uses UTF-16LE encoded wide strings, each\n character uses 2 bytes (except surrogation), with the low byte first."]
1033pub type FPDF_WIDESTRING = *const FPDF_WCHAR;
1034#[doc = " Structure for persisting a string beyond the duration of a callback.\n Note: although represented as a char*, string may be interpreted as\n a UTF-16LE formated string. Used only by XFA callbacks."]
1035#[repr(C)]
1036#[derive(Debug, Copy, Clone)]
1037pub struct FPDF_BSTR_ {
1038    #[doc = " String buffer, manipulate only with FPDF_BStr_* methods."]
1039    pub str_: *mut ::std::os::raw::c_char,
1040    #[doc = " Length of the string, in bytes."]
1041    pub len: ::std::os::raw::c_int,
1042}
1043#[doc = " Structure for persisting a string beyond the duration of a callback.\n Note: although represented as a char*, string may be interpreted as\n a UTF-16LE formated string. Used only by XFA callbacks."]
1044pub type FPDF_BSTR = FPDF_BSTR_;
1045#[doc = " For Windows programmers: In most cases it's OK to treat FPDF_WIDESTRING as a\n Windows unicode string, however, special care needs to be taken if you\n expect to process Unicode larger than 0xffff.\n\n For Linux/Unix programmers: most compiler/library environments use 4 bytes\n for a Unicode character, and you have to convert between FPDF_WIDESTRING and\n system wide string by yourself."]
1046pub type FPDF_STRING = *const ::std::os::raw::c_char;
1047#[doc = " Matrix for transformation, in the form [a b c d e f], equivalent to:\n | a  b  0 |\n | c  d  0 |\n | e  f  1 |\n\n Translation is performed with [1 0 0 1 tx ty].\n Scaling is performed with [sx 0 0 sy 0 0].\n See PDF Reference 1.7, 4.2.2 Common Transformations for more."]
1048#[repr(C)]
1049#[derive(Debug, Copy, Clone)]
1050pub struct _FS_MATRIX_ {
1051    pub a: f32,
1052    pub b: f32,
1053    pub c: f32,
1054    pub d: f32,
1055    pub e: f32,
1056    pub f: f32,
1057}
1058#[doc = " Matrix for transformation, in the form [a b c d e f], equivalent to:\n | a  b  0 |\n | c  d  0 |\n | e  f  1 |\n\n Translation is performed with [1 0 0 1 tx ty].\n Scaling is performed with [sx 0 0 sy 0 0].\n See PDF Reference 1.7, 4.2.2 Common Transformations for more."]
1059pub type FS_MATRIX = _FS_MATRIX_;
1060#[doc = " Rectangle area(float) in device or page coordinate system."]
1061#[repr(C)]
1062#[derive(Debug, Copy, Clone)]
1063pub struct _FS_RECTF_ {
1064    #[doc = " The x-coordinate of the left-top corner."]
1065    pub left: f32,
1066    #[doc = " The y-coordinate of the left-top corner."]
1067    pub top: f32,
1068    #[doc = " The x-coordinate of the right-bottom corner."]
1069    pub right: f32,
1070    #[doc = " The y-coordinate of the right-bottom corner."]
1071    pub bottom: f32,
1072}
1073#[doc = " Rectangle area(float) in device or page coordinate system."]
1074pub type FS_LPRECTF = *mut _FS_RECTF_;
1075#[doc = " Rectangle area(float) in device or page coordinate system."]
1076pub type FS_RECTF = _FS_RECTF_;
1077#[doc = " Const Pointer to FS_RECTF structure."]
1078pub type FS_LPCRECTF = *const FS_RECTF;
1079#[doc = " Rectangle size. Coordinate system agnostic."]
1080#[repr(C)]
1081#[derive(Debug, Copy, Clone)]
1082pub struct FS_SIZEF_ {
1083    pub width: f32,
1084    pub height: f32,
1085}
1086#[doc = " Rectangle size. Coordinate system agnostic."]
1087pub type FS_LPSIZEF = *mut FS_SIZEF_;
1088#[doc = " Rectangle size. Coordinate system agnostic."]
1089pub type FS_SIZEF = FS_SIZEF_;
1090#[doc = " Const Pointer to FS_SIZEF structure."]
1091pub type FS_LPCSIZEF = *const FS_SIZEF;
1092#[doc = " 2D Point. Coordinate system agnostic."]
1093#[repr(C)]
1094#[derive(Debug, Copy, Clone)]
1095pub struct FS_POINTF_ {
1096    pub x: f32,
1097    pub y: f32,
1098}
1099#[doc = " 2D Point. Coordinate system agnostic."]
1100pub type FS_LPPOINTF = *mut FS_POINTF_;
1101#[doc = " 2D Point. Coordinate system agnostic."]
1102pub type FS_POINTF = FS_POINTF_;
1103#[doc = " Const Pointer to FS_POINTF structure."]
1104pub type FS_LPCPOINTF = *const FS_POINTF;
1105#[repr(C)]
1106#[derive(Debug, Copy, Clone)]
1107pub struct _FS_QUADPOINTSF {
1108    pub x1: FS_FLOAT,
1109    pub y1: FS_FLOAT,
1110    pub x2: FS_FLOAT,
1111    pub y2: FS_FLOAT,
1112    pub x3: FS_FLOAT,
1113    pub y3: FS_FLOAT,
1114    pub x4: FS_FLOAT,
1115    pub y4: FS_FLOAT,
1116}
1117pub type FS_QUADPOINTSF = _FS_QUADPOINTSF;
1118#[doc = " Annotation enums."]
1119pub type FPDF_ANNOTATION_SUBTYPE = ::std::os::raw::c_int;
1120pub type FPDF_ANNOT_APPEARANCEMODE = ::std::os::raw::c_int;
1121#[doc = " Dictionary value types."]
1122pub type FPDF_OBJECT_TYPE = ::std::os::raw::c_int;
1123#[doc = " Anti-Grain Geometry - https://sourceforge.net/projects/agg/"]
1124pub const FPDF_RENDERER_TYPE_FPDF_RENDERERTYPE_AGG: FPDF_RENDERER_TYPE = 0;
1125#[doc = " Skia - https://skia.org/"]
1126pub const FPDF_RENDERER_TYPE_FPDF_RENDERERTYPE_SKIA: FPDF_RENDERER_TYPE = 1;
1127#[doc = " PDF renderer types - Experimental.\n Selection of 2D graphics library to use for rendering to FPDF_BITMAPs."]
1128pub type FPDF_RENDERER_TYPE = ::std::os::raw::c_uint;
1129#[doc = " Process-wide options for initializing the library."]
1130#[repr(C)]
1131#[derive(Debug, Copy, Clone)]
1132pub struct FPDF_LIBRARY_CONFIG_ {
1133    #[doc = " Version number of the interface. Currently must be 2.\n Support for version 1 will be deprecated in the future."]
1134    pub version: ::std::os::raw::c_int,
1135    #[doc = " Array of paths to scan in place of the defaults when using built-in\n FXGE font loading code. The array is terminated by a NULL pointer.\n The Array may be NULL itself to use the default paths. May be ignored\n entirely depending upon the platform."]
1136    pub m_pUserFontPaths: *mut *const ::std::os::raw::c_char,
1137    #[doc = " Pointer to the v8::Isolate to use, or NULL to force PDFium to create one."]
1138    pub m_pIsolate: *mut ::std::os::raw::c_void,
1139    #[doc = " The embedder data slot to use in the v8::Isolate to store PDFium's\n per-isolate data. The value needs to be in the range\n [0, |v8::Internals::kNumIsolateDataLots|). Note that 0 is fine for most\n embedders."]
1140    pub m_v8EmbedderSlot: ::std::os::raw::c_uint,
1141    #[doc = " Pointer to the V8::Platform to use."]
1142    pub m_pPlatform: *mut ::std::os::raw::c_void,
1143    #[doc = " Explicit specification of core renderer to use. |m_RendererType| must be\n a valid value for |FPDF_LIBRARY_CONFIG| versions of this level or higher,\n or else the initialization will fail with an immediate crash.\n Note that use of a specified |FPDF_RENDERER_TYPE| value for which the\n corresponding render library is not included in the build will similarly\n fail with an immediate crash."]
1144    pub m_RendererType: FPDF_RENDERER_TYPE,
1145}
1146#[doc = " Process-wide options for initializing the library."]
1147pub type FPDF_LIBRARY_CONFIG = FPDF_LIBRARY_CONFIG_;
1148unsafe extern "C" {
1149    #[doc = " Function: FPDF_InitLibraryWithConfig\n          Initialize the PDFium library and allocate global resources for it.\n Parameters:\n          config - configuration information as above.\n Return value:\n          None.\n Comments:\n          You have to call this function before you can call any PDF\n          processing functions."]
1150    pub fn FPDF_InitLibraryWithConfig(config: *const FPDF_LIBRARY_CONFIG);
1151}
1152unsafe extern "C" {
1153    #[doc = " Function: FPDF_InitLibrary\n          Initialize the PDFium library (alternative form).\n Parameters:\n          None\n Return value:\n          None.\n Comments:\n          Convenience function to call FPDF_InitLibraryWithConfig() with a\n          default configuration for backwards compatibility purposes. New\n          code should call FPDF_InitLibraryWithConfig() instead. This will\n          be deprecated in the future."]
1154    pub fn FPDF_InitLibrary();
1155}
1156unsafe extern "C" {
1157    #[doc = " Function: FPDF_DestroyLibrary\n          Release global resources allocated to the PDFium library by\n          FPDF_InitLibrary() or FPDF_InitLibraryWithConfig().\n Parameters:\n          None.\n Return value:\n          None.\n Comments:\n          After this function is called, you must not call any PDF\n          processing functions.\n\n          Calling this function does not automatically close other\n          objects. It is recommended to close other objects before\n          closing the library with this function."]
1158    pub fn FPDF_DestroyLibrary();
1159}
1160unsafe extern "C" {
1161    #[doc = " Function: FPDF_SetSandBoxPolicy\n          Set the policy for the sandbox environment.\n Parameters:\n          policy -   The specified policy for setting, for example:\n                     FPDF_POLICY_MACHINETIME_ACCESS.\n          enable -   True to enable, false to disable the policy.\n Return value:\n          None."]
1162    pub fn FPDF_SetSandBoxPolicy(policy: FPDF_DWORD, enable: FPDF_BOOL);
1163}
1164unsafe extern "C" {
1165    #[doc = " Function: FPDF_LoadDocument\n          Open and load a PDF document.\n Parameters:\n          file_path -  Path to the PDF file (including extension).\n          password  -  A string used as the password for the PDF file.\n                       If no password is needed, empty or NULL can be used.\n                       See comments below regarding the encoding.\n Return value:\n          A handle to the loaded document, or NULL on failure.\n Comments:\n          Loaded document can be closed by FPDF_CloseDocument().\n          If this function fails, you can use FPDF_GetLastError() to retrieve\n          the reason why it failed.\n\n          The encoding for |file_path| is UTF-8.\n\n          The encoding for |password| can be either UTF-8 or Latin-1. PDFs,\n          depending on the security handler revision, will only accept one or\n          the other encoding. If |password|'s encoding and the PDF's expected\n          encoding do not match, FPDF_LoadDocument() will automatically\n          convert |password| to the other encoding."]
1166    pub fn FPDF_LoadDocument(file_path: FPDF_STRING, password: FPDF_BYTESTRING) -> FPDF_DOCUMENT;
1167}
1168unsafe extern "C" {
1169    #[doc = " Function: FPDF_LoadMemDocument\n          Open and load a PDF document from memory.\n Parameters:\n          data_buf    -   Pointer to a buffer containing the PDF document.\n          size        -   Number of bytes in the PDF document.\n          password    -   A string used as the password for the PDF file.\n                          If no password is needed, empty or NULL can be used.\n Return value:\n          A handle to the loaded document, or NULL on failure.\n Comments:\n          The memory buffer must remain valid when the document is open.\n          The loaded document can be closed by FPDF_CloseDocument.\n          If this function fails, you can use FPDF_GetLastError() to retrieve\n          the reason why it failed.\n\n          See the comments for FPDF_LoadDocument() regarding the encoding for\n          |password|.\n Notes:\n          If PDFium is built with the XFA module, the application should call\n          FPDF_LoadXFA() function after the PDF document loaded to support XFA\n          fields defined in the fpdfformfill.h file."]
1170    pub fn FPDF_LoadMemDocument(
1171        data_buf: *const ::std::os::raw::c_void,
1172        size: ::std::os::raw::c_int,
1173        password: FPDF_BYTESTRING,
1174    ) -> FPDF_DOCUMENT;
1175}
1176unsafe extern "C" {
1177    #[doc = " Experimental API.\n Function: FPDF_LoadMemDocument64\n          Open and load a PDF document from memory.\n Parameters:\n          data_buf    -   Pointer to a buffer containing the PDF document.\n          size        -   Number of bytes in the PDF document.\n          password    -   A string used as the password for the PDF file.\n                          If no password is needed, empty or NULL can be used.\n Return value:\n          A handle to the loaded document, or NULL on failure.\n Comments:\n          The memory buffer must remain valid when the document is open.\n          The loaded document can be closed by FPDF_CloseDocument.\n          If this function fails, you can use FPDF_GetLastError() to retrieve\n          the reason why it failed.\n\n          See the comments for FPDF_LoadDocument() regarding the encoding for\n          |password|.\n Notes:\n          If PDFium is built with the XFA module, the application should call\n          FPDF_LoadXFA() function after the PDF document loaded to support XFA\n          fields defined in the fpdfformfill.h file."]
1178    pub fn FPDF_LoadMemDocument64(
1179        data_buf: *const ::std::os::raw::c_void,
1180        size: usize,
1181        password: FPDF_BYTESTRING,
1182    ) -> FPDF_DOCUMENT;
1183}
1184#[doc = " Structure for custom file access."]
1185#[repr(C)]
1186#[derive(Debug, Copy, Clone)]
1187pub struct FPDF_FILEACCESS {
1188    #[doc = " File length, in bytes."]
1189    pub m_FileLen: ::std::os::raw::c_ulong,
1190    #[doc = " A function pointer for getting a block of data from a specific position.\n Position is specified by byte offset from the beginning of the file.\n The pointer to the buffer is never NULL and the size is never 0.\n The position and size will never go out of range of the file length.\n It may be possible for PDFium to call this function multiple times for\n the same position.\n Return value: should be non-zero if successful, zero for error."]
1191    pub m_GetBlock: ::std::option::Option<
1192        unsafe extern "C" fn(
1193            param: *mut ::std::os::raw::c_void,
1194            position: ::std::os::raw::c_ulong,
1195            pBuf: *mut ::std::os::raw::c_uchar,
1196            size: ::std::os::raw::c_ulong,
1197        ) -> ::std::os::raw::c_int,
1198    >,
1199    #[doc = " A custom pointer for all implementation specific data.  This pointer will\n be used as the first parameter to the m_GetBlock callback."]
1200    pub m_Param: *mut ::std::os::raw::c_void,
1201}
1202#[doc = " Structure for file reading or writing (I/O).\n\n Note: This is a handler and should be implemented by callers,\n and is only used from XFA."]
1203#[repr(C)]
1204#[derive(Debug, Copy, Clone)]
1205pub struct FPDF_FILEHANDLER_ {
1206    #[doc = " User-defined data.\n Note: Callers can use this field to track controls."]
1207    pub clientData: *mut ::std::os::raw::c_void,
1208    #[doc = " Callback function to release the current file stream object.\n\n Parameters:\n       clientData   -  Pointer to user-defined data.\n Returns:\n       None."]
1209    pub Release: ::std::option::Option<unsafe extern "C" fn(clientData: *mut ::std::os::raw::c_void)>,
1210    #[doc = " Callback function to retrieve the current file stream size.\n\n Parameters:\n       clientData   -  Pointer to user-defined data.\n Returns:\n       Size of file stream."]
1211    pub GetSize: ::std::option::Option<unsafe extern "C" fn(clientData: *mut ::std::os::raw::c_void) -> FPDF_DWORD>,
1212    #[doc = " Callback function to read data from the current file stream.\n\n Parameters:\n       clientData   -  Pointer to user-defined data.\n       offset       -  Offset position starts from the beginning of file\n                       stream. This parameter indicates reading position.\n       buffer       -  Memory buffer to store data which are read from\n                       file stream. This parameter should not be NULL.\n       size         -  Size of data which should be read from file stream,\n                       in bytes. The buffer indicated by |buffer| must be\n                       large enough to store specified data.\n Returns:\n       0 for success, other value for failure."]
1213    pub ReadBlock: ::std::option::Option<
1214        unsafe extern "C" fn(
1215            clientData: *mut ::std::os::raw::c_void,
1216            offset: FPDF_DWORD,
1217            buffer: *mut ::std::os::raw::c_void,
1218            size: FPDF_DWORD,
1219        ) -> FPDF_RESULT,
1220    >,
1221    #[doc = " Callback function to write data into the current file stream.\n\n Parameters:\n       clientData   -  Pointer to user-defined data.\n       offset       -  Offset position starts from the beginning of file\n                       stream. This parameter indicates writing position.\n       buffer       -  Memory buffer contains data which is written into\n                       file stream. This parameter should not be NULL.\n       size         -  Size of data which should be written into file\n                       stream, in bytes.\n Returns:\n       0 for success, other value for failure."]
1222    pub WriteBlock: ::std::option::Option<
1223        unsafe extern "C" fn(
1224            clientData: *mut ::std::os::raw::c_void,
1225            offset: FPDF_DWORD,
1226            buffer: *const ::std::os::raw::c_void,
1227            size: FPDF_DWORD,
1228        ) -> FPDF_RESULT,
1229    >,
1230    #[doc = " Callback function to flush all internal accessing buffers.\n\n Parameters:\n       clientData   -  Pointer to user-defined data.\n Returns:\n       0 for success, other value for failure."]
1231    pub Flush: ::std::option::Option<unsafe extern "C" fn(clientData: *mut ::std::os::raw::c_void) -> FPDF_RESULT>,
1232    #[doc = " Callback function to change file size.\n\n Description:\n       This function is called under writing mode usually. Implementer\n       can determine whether to realize it based on application requests.\n Parameters:\n       clientData   -  Pointer to user-defined data.\n       size         -  New size of file stream, in bytes.\n Returns:\n       0 for success, other value for failure."]
1233    pub Truncate: ::std::option::Option<
1234        unsafe extern "C" fn(clientData: *mut ::std::os::raw::c_void, size: FPDF_DWORD) -> FPDF_RESULT,
1235    >,
1236}
1237#[doc = " Structure for file reading or writing (I/O).\n\n Note: This is a handler and should be implemented by callers,\n and is only used from XFA."]
1238pub type FPDF_FILEHANDLER = FPDF_FILEHANDLER_;
1239unsafe extern "C" {
1240    #[doc = " Function: FPDF_LoadCustomDocument\n          Load PDF document from a custom access descriptor.\n Parameters:\n          pFileAccess -   A structure for accessing the file.\n          password    -   Optional password for decrypting the PDF file.\n Return value:\n          A handle to the loaded document, or NULL on failure.\n Comments:\n          The application must keep the file resources |pFileAccess| points to\n          valid until the returned FPDF_DOCUMENT is closed. |pFileAccess|\n          itself does not need to outlive the FPDF_DOCUMENT.\n\n          The loaded document can be closed with FPDF_CloseDocument().\n\n          See the comments for FPDF_LoadDocument() regarding the encoding for\n          |password|.\n Notes:\n          If PDFium is built with the XFA module, the application should call\n          FPDF_LoadXFA() function after the PDF document loaded to support XFA\n          fields defined in the fpdfformfill.h file."]
1241    pub fn FPDF_LoadCustomDocument(pFileAccess: *mut FPDF_FILEACCESS, password: FPDF_BYTESTRING) -> FPDF_DOCUMENT;
1242}
1243unsafe extern "C" {
1244    #[doc = " Function: FPDF_GetFileVersion\n          Get the file version of the given PDF document.\n Parameters:\n          doc         -   Handle to a document.\n          fileVersion -   The PDF file version. File version: 14 for 1.4, 15\n                          for 1.5, ...\n Return value:\n          True if succeeds, false otherwise.\n Comments:\n          If the document was created by FPDF_CreateNewDocument,\n          then this function will always fail."]
1245    pub fn FPDF_GetFileVersion(doc: FPDF_DOCUMENT, fileVersion: *mut ::std::os::raw::c_int) -> FPDF_BOOL;
1246}
1247unsafe extern "C" {
1248    #[doc = " Function: FPDF_GetLastError\n          Get last error code when a function fails.\n Parameters:\n          None.\n Return value:\n          A 32-bit integer indicating error code as defined above.\n Comments:\n          If the previous SDK call succeeded, the return value of this\n          function is not defined. This function only works in conjunction\n          with APIs that mention FPDF_GetLastError() in their documentation."]
1249    pub fn FPDF_GetLastError() -> ::std::os::raw::c_ulong;
1250}
1251unsafe extern "C" {
1252    #[doc = " Experimental API.\n Function: FPDF_DocumentHasValidCrossReferenceTable\n          Whether the document's cross reference table is valid or not.\n Parameters:\n          document    -   Handle to a document. Returned by FPDF_LoadDocument.\n Return value:\n          True if the PDF parser did not encounter problems parsing the cross\n          reference table. False if the parser could not parse the cross\n          reference table and the table had to be rebuild from other data\n          within the document.\n Comments:\n          The return value can change over time as the PDF parser evolves."]
1253    pub fn FPDF_DocumentHasValidCrossReferenceTable(document: FPDF_DOCUMENT) -> FPDF_BOOL;
1254}
1255unsafe extern "C" {
1256    #[doc = " Experimental API.\n Function: FPDF_GetTrailerEnds\n          Get the byte offsets of trailer ends.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument().\n          buffer      -   The address of a buffer that receives the\n                          byte offsets.\n          length      -   The size, in ints, of |buffer|.\n Return value:\n          Returns the number of ints in the buffer on success, 0 on error.\n\n |buffer| is an array of integers that describes the exact byte offsets of the\n trailer ends in the document. If |length| is less than the returned length,\n or |document| or |buffer| is NULL, |buffer| will not be modified."]
1257    pub fn FPDF_GetTrailerEnds(
1258        document: FPDF_DOCUMENT,
1259        buffer: *mut ::std::os::raw::c_uint,
1260        length: ::std::os::raw::c_ulong,
1261    ) -> ::std::os::raw::c_ulong;
1262}
1263unsafe extern "C" {
1264    #[doc = " Function: FPDF_GetDocPermissions\n          Get file permission flags of the document.\n Parameters:\n          document    -   Handle to a document. Returned by FPDF_LoadDocument.\n Return value:\n          A 32-bit integer indicating permission flags. Please refer to the\n          PDF Reference for detailed descriptions. If the document is not\n          protected or was unlocked by the owner, 0xffffffff will be returned."]
1265    pub fn FPDF_GetDocPermissions(document: FPDF_DOCUMENT) -> ::std::os::raw::c_ulong;
1266}
1267unsafe extern "C" {
1268    #[doc = " Function: FPDF_GetDocUserPermissions\n          Get user file permission flags of the document.\n Parameters:\n          document    -   Handle to a document. Returned by FPDF_LoadDocument.\n Return value:\n          A 32-bit integer indicating permission flags. Please refer to the\n          PDF Reference for detailed descriptions. If the document is not\n          protected, 0xffffffff will be returned. Always returns user\n          permissions, even if the document was unlocked by the owner."]
1269    pub fn FPDF_GetDocUserPermissions(document: FPDF_DOCUMENT) -> ::std::os::raw::c_ulong;
1270}
1271unsafe extern "C" {
1272    #[doc = " Function: FPDF_GetSecurityHandlerRevision\n          Get the revision for the security handler.\n Parameters:\n          document    -   Handle to a document. Returned by FPDF_LoadDocument.\n Return value:\n          The security handler revision number. Please refer to the PDF\n          Reference for a detailed description. If the document is not\n          protected, -1 will be returned."]
1273    pub fn FPDF_GetSecurityHandlerRevision(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
1274}
1275unsafe extern "C" {
1276    #[doc = " Function: FPDF_GetPageCount\n          Get total number of pages in the document.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument.\n Return value:\n          Total number of pages in the document."]
1277    pub fn FPDF_GetPageCount(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
1278}
1279unsafe extern "C" {
1280    #[doc = " Function: FPDF_LoadPage\n          Load a page inside the document.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument\n          page_index  -   Index number of the page. 0 for the first page.\n Return value:\n          A handle to the loaded page, or NULL if page load fails.\n Comments:\n          The loaded page can be rendered to devices using FPDF_RenderPage.\n          The loaded page can be closed using FPDF_ClosePage."]
1281    pub fn FPDF_LoadPage(document: FPDF_DOCUMENT, page_index: ::std::os::raw::c_int) -> FPDF_PAGE;
1282}
1283unsafe extern "C" {
1284    #[doc = " Experimental API\n Function: FPDF_GetPageWidthF\n          Get page width.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage().\n Return value:\n          Page width (excluding non-displayable area) measured in points.\n          One point is 1/72 inch (around 0.3528 mm).\n Comments:\n          Changing the rotation of |page| affects the return value."]
1285    pub fn FPDF_GetPageWidthF(page: FPDF_PAGE) -> f32;
1286}
1287unsafe extern "C" {
1288    #[doc = " Function: FPDF_GetPageWidth\n          Get page width.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n Return value:\n          Page width (excluding non-displayable area) measured in points.\n          One point is 1/72 inch (around 0.3528 mm).\n Note:\n          Prefer FPDF_GetPageWidthF() above. This will be deprecated in the\n          future.\n Comments:\n          Changing the rotation of |page| affects the return value."]
1289    pub fn FPDF_GetPageWidth(page: FPDF_PAGE) -> f64;
1290}
1291unsafe extern "C" {
1292    #[doc = " Experimental API\n Function: FPDF_GetPageHeightF\n          Get page height.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage().\n Return value:\n          Page height (excluding non-displayable area) measured in points.\n          One point is 1/72 inch (around 0.3528 mm)\n Comments:\n          Changing the rotation of |page| affects the return value."]
1293    pub fn FPDF_GetPageHeightF(page: FPDF_PAGE) -> f32;
1294}
1295unsafe extern "C" {
1296    #[doc = " Function: FPDF_GetPageHeight\n          Get page height.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n Return value:\n          Page height (excluding non-displayable area) measured in points.\n          One point is 1/72 inch (around 0.3528 mm)\n Note:\n          Prefer FPDF_GetPageHeightF() above. This will be deprecated in the\n          future.\n Comments:\n          Changing the rotation of |page| affects the return value."]
1297    pub fn FPDF_GetPageHeight(page: FPDF_PAGE) -> f64;
1298}
1299unsafe extern "C" {
1300    #[doc = " Experimental API.\n Function: FPDF_GetPageBoundingBox\n          Get the bounding box of the page. This is the intersection between\n          its media box and its crop box.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n          rect        -   Pointer to a rect to receive the page bounding box.\n                          On an error, |rect| won't be filled.\n Return value:\n          True for success."]
1301    pub fn FPDF_GetPageBoundingBox(page: FPDF_PAGE, rect: *mut FS_RECTF) -> FPDF_BOOL;
1302}
1303unsafe extern "C" {
1304    #[doc = " Experimental API.\n Function: FPDF_GetPageSizeByIndexF\n          Get the size of the page at the given index.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument().\n          page_index  -   Page index, zero for the first page.\n          size        -   Pointer to a FS_SIZEF to receive the page size.\n                          (in points).\n Return value:\n          Non-zero for success. 0 for error (document or page not found)."]
1305    pub fn FPDF_GetPageSizeByIndexF(
1306        document: FPDF_DOCUMENT,
1307        page_index: ::std::os::raw::c_int,
1308        size: *mut FS_SIZEF,
1309    ) -> FPDF_BOOL;
1310}
1311unsafe extern "C" {
1312    #[doc = " Function: FPDF_GetPageSizeByIndex\n          Get the size of the page at the given index.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument.\n          page_index  -   Page index, zero for the first page.\n          width       -   Pointer to a double to receive the page width\n                          (in points).\n          height      -   Pointer to a double to receive the page height\n                          (in points).\n Return value:\n          Non-zero for success. 0 for error (document or page not found).\n Note:\n          Prefer FPDF_GetPageSizeByIndexF() above. This will be deprecated in\n          the future."]
1313    pub fn FPDF_GetPageSizeByIndex(
1314        document: FPDF_DOCUMENT,
1315        page_index: ::std::os::raw::c_int,
1316        width: *mut f64,
1317        height: *mut f64,
1318    ) -> ::std::os::raw::c_int;
1319}
1320#[doc = " Struct for color scheme.\n Each should be a 32-bit value specifying the color, in 8888 ARGB format."]
1321#[repr(C)]
1322#[derive(Debug, Copy, Clone)]
1323pub struct FPDF_COLORSCHEME_ {
1324    pub path_fill_color: FPDF_DWORD,
1325    pub path_stroke_color: FPDF_DWORD,
1326    pub text_fill_color: FPDF_DWORD,
1327    pub text_stroke_color: FPDF_DWORD,
1328}
1329#[doc = " Struct for color scheme.\n Each should be a 32-bit value specifying the color, in 8888 ARGB format."]
1330pub type FPDF_COLORSCHEME = FPDF_COLORSCHEME_;
1331unsafe extern "C" {
1332    #[doc = " Function: FPDF_RenderPageBitmap\n          Render contents of a page to a device independent bitmap.\n Parameters:\n          bitmap      -   Handle to the device independent bitmap (as the\n                          output buffer). The bitmap handle can be created\n                          by FPDFBitmap_Create or retrieved from an image\n                          object by FPDFImageObj_GetBitmap.\n          page        -   Handle to the page. Returned by FPDF_LoadPage\n          start_x     -   Left pixel position of the display area in\n                          bitmap coordinates.\n          start_y     -   Top pixel position of the display area in bitmap\n                          coordinates.\n          size_x      -   Horizontal size (in pixels) for displaying the page.\n          size_y      -   Vertical size (in pixels) for displaying the page.\n          rotate      -   Page orientation:\n                            0 (normal)\n                            1 (rotated 90 degrees clockwise)\n                            2 (rotated 180 degrees)\n                            3 (rotated 90 degrees counter-clockwise)\n          flags       -   0 for normal display, or combination of the Page\n                          Rendering flags defined above. With the FPDF_ANNOT\n                          flag, it renders all annotations that do not require\n                          user-interaction, which are all annotations except\n                          widget and popup annotations.\n Return value:\n          None."]
1333    pub fn FPDF_RenderPageBitmap(
1334        bitmap: FPDF_BITMAP,
1335        page: FPDF_PAGE,
1336        start_x: ::std::os::raw::c_int,
1337        start_y: ::std::os::raw::c_int,
1338        size_x: ::std::os::raw::c_int,
1339        size_y: ::std::os::raw::c_int,
1340        rotate: ::std::os::raw::c_int,
1341        flags: ::std::os::raw::c_int,
1342    );
1343}
1344unsafe extern "C" {
1345    #[doc = " Function: FPDF_RenderPageBitmapWithMatrix\n          Render contents of a page to a device independent bitmap.\n Parameters:\n          bitmap      -   Handle to the device independent bitmap (as the\n                          output buffer). The bitmap handle can be created\n                          by FPDFBitmap_Create or retrieved by\n                          FPDFImageObj_GetBitmap.\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n          matrix      -   The transform matrix, which must be invertible.\n                          See PDF Reference 1.7, 4.2.2 Common Transformations.\n          clipping    -   The rect to clip to in device coords.\n          flags       -   0 for normal display, or combination of the Page\n                          Rendering flags defined above. With the FPDF_ANNOT\n                          flag, it renders all annotations that do not require\n                          user-interaction, which are all annotations except\n                          widget and popup annotations.\n Return value:\n          None. Note that behavior is undefined if det of |matrix| is 0."]
1346    pub fn FPDF_RenderPageBitmapWithMatrix(
1347        bitmap: FPDF_BITMAP,
1348        page: FPDF_PAGE,
1349        matrix: *const FS_MATRIX,
1350        clipping: *const FS_RECTF,
1351        flags: ::std::os::raw::c_int,
1352    );
1353}
1354unsafe extern "C" {
1355    #[doc = " Experimental API.\n Function: FPDF_RenderPageSkia\n          Render contents of a page to a Skia SkCanvas.\n Parameters:\n          canvas      -   SkCanvas to render to.\n          page        -   Handle to the page.\n          size_x      -   Horizontal size (in pixels) for displaying the page.\n          size_y      -   Vertical size (in pixels) for displaying the page.\n Return value:\n          None."]
1356    pub fn FPDF_RenderPageSkia(
1357        canvas: FPDF_SKIA_CANVAS,
1358        page: FPDF_PAGE,
1359        size_x: ::std::os::raw::c_int,
1360        size_y: ::std::os::raw::c_int,
1361    );
1362}
1363unsafe extern "C" {
1364    #[doc = " Function: FPDF_ClosePage\n          Close a loaded PDF page.\n Parameters:\n          page        -   Handle to the loaded page.\n Return value:\n          None."]
1365    pub fn FPDF_ClosePage(page: FPDF_PAGE);
1366}
1367unsafe extern "C" {
1368    #[doc = " Function: FPDF_CloseDocument\n          Close a loaded PDF document.\n Parameters:\n          document    -   Handle to the loaded document.\n Return value:\n          None."]
1369    pub fn FPDF_CloseDocument(document: FPDF_DOCUMENT);
1370}
1371unsafe extern "C" {
1372    #[doc = " Function: FPDF_DeviceToPage\n          Convert the screen coordinates of a point to page coordinates.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n          start_x     -   Left pixel position of the display area in\n                          device coordinates.\n          start_y     -   Top pixel position of the display area in device\n                          coordinates.\n          size_x      -   Horizontal size (in pixels) for displaying the page.\n          size_y      -   Vertical size (in pixels) for displaying the page.\n          rotate      -   Page orientation:\n                            0 (normal)\n                            1 (rotated 90 degrees clockwise)\n                            2 (rotated 180 degrees)\n                            3 (rotated 90 degrees counter-clockwise)\n          device_x    -   X value in device coordinates to be converted.\n          device_y    -   Y value in device coordinates to be converted.\n          page_x      -   A pointer to a double receiving the converted X\n                          value in page coordinates.\n          page_y      -   A pointer to a double receiving the converted Y\n                          value in page coordinates.\n Return value:\n          Returns true if the conversion succeeds, and |page_x| and |page_y|\n          successfully receives the converted coordinates.\n Comments:\n          The page coordinate system has its origin at the left-bottom corner\n          of the page, with the X-axis on the bottom going to the right, and\n          the Y-axis on the left side going up.\n\n          NOTE: this coordinate system can be altered when you zoom, scroll,\n          or rotate a page, however, a point on the page should always have\n          the same coordinate values in the page coordinate system.\n\n          The device coordinate system is device dependent. For screen device,\n          its origin is at the left-top corner of the window. However this\n          origin can be altered by the Windows coordinate transformation\n          utilities.\n\n          You must make sure the start_x, start_y, size_x, size_y\n          and rotate parameters have exactly same values as you used in\n          the FPDF_RenderPage() function call."]
1373    pub fn FPDF_DeviceToPage(
1374        page: FPDF_PAGE,
1375        start_x: ::std::os::raw::c_int,
1376        start_y: ::std::os::raw::c_int,
1377        size_x: ::std::os::raw::c_int,
1378        size_y: ::std::os::raw::c_int,
1379        rotate: ::std::os::raw::c_int,
1380        device_x: ::std::os::raw::c_int,
1381        device_y: ::std::os::raw::c_int,
1382        page_x: *mut f64,
1383        page_y: *mut f64,
1384    ) -> FPDF_BOOL;
1385}
1386unsafe extern "C" {
1387    #[doc = " Function: FPDF_PageToDevice\n          Convert the page coordinates of a point to screen coordinates.\n Parameters:\n          page        -   Handle to the page. Returned by FPDF_LoadPage.\n          start_x     -   Left pixel position of the display area in\n                          device coordinates.\n          start_y     -   Top pixel position of the display area in device\n                          coordinates.\n          size_x      -   Horizontal size (in pixels) for displaying the page.\n          size_y      -   Vertical size (in pixels) for displaying the page.\n          rotate      -   Page orientation:\n                            0 (normal)\n                            1 (rotated 90 degrees clockwise)\n                            2 (rotated 180 degrees)\n                            3 (rotated 90 degrees counter-clockwise)\n          page_x      -   X value in page coordinates.\n          page_y      -   Y value in page coordinate.\n          device_x    -   A pointer to an integer receiving the result X\n                          value in device coordinates.\n          device_y    -   A pointer to an integer receiving the result Y\n                          value in device coordinates.\n Return value:\n          Returns true if the conversion succeeds, and |device_x| and\n          |device_y| successfully receives the converted coordinates.\n Comments:\n          See comments for FPDF_DeviceToPage()."]
1388    pub fn FPDF_PageToDevice(
1389        page: FPDF_PAGE,
1390        start_x: ::std::os::raw::c_int,
1391        start_y: ::std::os::raw::c_int,
1392        size_x: ::std::os::raw::c_int,
1393        size_y: ::std::os::raw::c_int,
1394        rotate: ::std::os::raw::c_int,
1395        page_x: f64,
1396        page_y: f64,
1397        device_x: *mut ::std::os::raw::c_int,
1398        device_y: *mut ::std::os::raw::c_int,
1399    ) -> FPDF_BOOL;
1400}
1401unsafe extern "C" {
1402    #[doc = " Function: FPDFBitmap_Create\n          Create a device independent bitmap (FXDIB).\n Parameters:\n          width       -   The number of pixels in width for the bitmap.\n                          Must be greater than 0.\n          height      -   The number of pixels in height for the bitmap.\n                          Must be greater than 0.\n          alpha       -   A flag indicating whether the alpha channel is used.\n                          Non-zero for using alpha, zero for not using.\n Return value:\n          The created bitmap handle, or NULL if a parameter error or out of\n          memory.\n Comments:\n          The bitmap always uses 4 bytes per pixel. The first byte is always\n          double word aligned.\n\n          The byte order is BGRx (the last byte unused if no alpha channel) or\n          BGRA.\n\n          The pixels in a horizontal line are stored side by side, with the\n          left most pixel stored first (with lower memory address).\n          Each line uses width * 4 bytes.\n\n          Lines are stored one after another, with the top most line stored\n          first. There is no gap between adjacent lines.\n\n          This function allocates enough memory for holding all pixels in the\n          bitmap, but it doesn't initialize the buffer. Applications can use\n          FPDFBitmap_FillRect() to fill the bitmap using any color. If the OS\n          allows it, this function can allocate up to 4 GB of memory."]
1403    pub fn FPDFBitmap_Create(
1404        width: ::std::os::raw::c_int,
1405        height: ::std::os::raw::c_int,
1406        alpha: ::std::os::raw::c_int,
1407    ) -> FPDF_BITMAP;
1408}
1409unsafe extern "C" {
1410    #[doc = " Function: FPDFBitmap_CreateEx\n          Create a device independent bitmap (FXDIB)\n Parameters:\n          width       -   The number of pixels in width for the bitmap.\n                          Must be greater than 0.\n          height      -   The number of pixels in height for the bitmap.\n                          Must be greater than 0.\n          format      -   A number indicating for bitmap format, as defined\n                          above.\n          first_scan  -   A pointer to the first byte of the first line if\n                          using an external buffer. If this parameter is NULL,\n                          then a new buffer will be created.\n          stride      -   Number of bytes for each scan line. The value must\n                          be 0 or greater. When the value is 0,\n                          FPDFBitmap_CreateEx() will automatically calculate\n                          the appropriate value using |width| and |format|.\n                          When using an external buffer, it is recommended for\n                          the caller to pass in the value.\n                          When not using an external buffer, it is recommended\n                          for the caller to pass in 0.\n Return value:\n          The bitmap handle, or NULL if parameter error or out of memory.\n Comments:\n          Similar to FPDFBitmap_Create function, but allows for more formats\n          and an external buffer is supported. The bitmap created by this\n          function can be used in any place that a FPDF_BITMAP handle is\n          required.\n\n          If an external buffer is used, then the caller should destroy the\n          buffer. FPDFBitmap_Destroy() will not destroy the buffer.\n\n          It is recommended to use FPDFBitmap_GetStride() to get the stride\n          value."]
1411    pub fn FPDFBitmap_CreateEx(
1412        width: ::std::os::raw::c_int,
1413        height: ::std::os::raw::c_int,
1414        format: ::std::os::raw::c_int,
1415        first_scan: *mut ::std::os::raw::c_void,
1416        stride: ::std::os::raw::c_int,
1417    ) -> FPDF_BITMAP;
1418}
1419unsafe extern "C" {
1420    #[doc = " Function: FPDFBitmap_GetFormat\n          Get the format of the bitmap.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          The format of the bitmap.\n Comments:\n          Only formats supported by FPDFBitmap_CreateEx are supported by this\n          function; see the list of such formats above."]
1421    pub fn FPDFBitmap_GetFormat(bitmap: FPDF_BITMAP) -> ::std::os::raw::c_int;
1422}
1423unsafe extern "C" {
1424    #[doc = " Function: FPDFBitmap_FillRect\n          Fill a rectangle in a bitmap.\n Parameters:\n          bitmap      -   The handle to the bitmap. Returned by\n                          FPDFBitmap_Create.\n          left        -   The left position. Starting from 0 at the\n                          left-most pixel.\n          top         -   The top position. Starting from 0 at the\n                          top-most line.\n          width       -   Width in pixels to be filled.\n          height      -   Height in pixels to be filled.\n          color       -   A 32-bit value specifing the color, in 8888 ARGB\n                          format.\n Return value:\n          Returns whether the operation succeeded or not.\n Comments:\n          This function sets the color and (optionally) alpha value in the\n          specified region of the bitmap.\n\n          NOTE: If the alpha channel is used, this function does NOT\n          composite the background with the source color, instead the\n          background will be replaced by the source color and the alpha.\n\n          If the alpha channel is not used, the alpha parameter is ignored."]
1425    pub fn FPDFBitmap_FillRect(
1426        bitmap: FPDF_BITMAP,
1427        left: ::std::os::raw::c_int,
1428        top: ::std::os::raw::c_int,
1429        width: ::std::os::raw::c_int,
1430        height: ::std::os::raw::c_int,
1431        color: FPDF_DWORD,
1432    ) -> FPDF_BOOL;
1433}
1434unsafe extern "C" {
1435    #[doc = " Function: FPDFBitmap_GetBuffer\n          Get data buffer of a bitmap.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          The pointer to the first byte of the bitmap buffer.\n Comments:\n          The stride may be more than width * number of bytes per pixel\n\n          Applications can use this function to get the bitmap buffer pointer,\n          then manipulate any color and/or alpha values for any pixels in the\n          bitmap.\n\n          Use FPDFBitmap_GetFormat() to find out the format of the data."]
1436    pub fn FPDFBitmap_GetBuffer(bitmap: FPDF_BITMAP) -> *mut ::std::os::raw::c_void;
1437}
1438unsafe extern "C" {
1439    #[doc = " Function: FPDFBitmap_GetWidth\n          Get width of a bitmap.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          The width of the bitmap in pixels."]
1440    pub fn FPDFBitmap_GetWidth(bitmap: FPDF_BITMAP) -> ::std::os::raw::c_int;
1441}
1442unsafe extern "C" {
1443    #[doc = " Function: FPDFBitmap_GetHeight\n          Get height of a bitmap.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          The height of the bitmap in pixels."]
1444    pub fn FPDFBitmap_GetHeight(bitmap: FPDF_BITMAP) -> ::std::os::raw::c_int;
1445}
1446unsafe extern "C" {
1447    #[doc = " Function: FPDFBitmap_GetStride\n          Get number of bytes for each line in the bitmap buffer.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          The number of bytes for each line in the bitmap buffer.\n Comments:\n          The stride may be more than width * number of bytes per pixel."]
1448    pub fn FPDFBitmap_GetStride(bitmap: FPDF_BITMAP) -> ::std::os::raw::c_int;
1449}
1450unsafe extern "C" {
1451    #[doc = " Function: FPDFBitmap_Destroy\n          Destroy a bitmap and release all related buffers.\n Parameters:\n          bitmap      -   Handle to the bitmap. Returned by FPDFBitmap_Create\n                          or FPDFImageObj_GetBitmap.\n Return value:\n          None.\n Comments:\n          This function will not destroy any external buffers provided when\n          the bitmap was created."]
1452    pub fn FPDFBitmap_Destroy(bitmap: FPDF_BITMAP);
1453}
1454unsafe extern "C" {
1455    #[doc = " Function: FPDF_VIEWERREF_GetPrintScaling\n          Whether the PDF document prefers to be scaled or not.\n Parameters:\n          document    -   Handle to the loaded document.\n Return value:\n          None."]
1456    pub fn FPDF_VIEWERREF_GetPrintScaling(document: FPDF_DOCUMENT) -> FPDF_BOOL;
1457}
1458unsafe extern "C" {
1459    #[doc = " Function: FPDF_VIEWERREF_GetNumCopies\n          Returns the number of copies to be printed.\n Parameters:\n          document    -   Handle to the loaded document.\n Return value:\n          The number of copies to be printed."]
1460    pub fn FPDF_VIEWERREF_GetNumCopies(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
1461}
1462unsafe extern "C" {
1463    #[doc = " Function: FPDF_VIEWERREF_GetPrintPageRange\n          Page numbers to initialize print dialog box when file is printed.\n Parameters:\n          document    -   Handle to the loaded document.\n Return value:\n          The print page range to be used for printing."]
1464    pub fn FPDF_VIEWERREF_GetPrintPageRange(document: FPDF_DOCUMENT) -> FPDF_PAGERANGE;
1465}
1466unsafe extern "C" {
1467    #[doc = " Experimental API.\n Function: FPDF_VIEWERREF_GetPrintPageRangeCount\n          Returns the number of elements in a FPDF_PAGERANGE.\n Parameters:\n          pagerange   -   Handle to the page range.\n Return value:\n          The number of elements in the page range. Returns 0 on error."]
1468    pub fn FPDF_VIEWERREF_GetPrintPageRangeCount(pagerange: FPDF_PAGERANGE) -> usize;
1469}
1470unsafe extern "C" {
1471    #[doc = " Experimental API.\n Function: FPDF_VIEWERREF_GetPrintPageRangeElement\n          Returns an element from a FPDF_PAGERANGE.\n Parameters:\n          pagerange   -   Handle to the page range.\n          index       -   Index of the element.\n Return value:\n          The value of the element in the page range at a given index.\n          Returns -1 on error."]
1472    pub fn FPDF_VIEWERREF_GetPrintPageRangeElement(pagerange: FPDF_PAGERANGE, index: usize) -> ::std::os::raw::c_int;
1473}
1474unsafe extern "C" {
1475    #[doc = " Function: FPDF_VIEWERREF_GetDuplex\n          Returns the paper handling option to be used when printing from\n          the print dialog.\n Parameters:\n          document    -   Handle to the loaded document.\n Return value:\n          The paper handling option to be used when printing."]
1476    pub fn FPDF_VIEWERREF_GetDuplex(document: FPDF_DOCUMENT) -> FPDF_DUPLEXTYPE;
1477}
1478unsafe extern "C" {
1479    #[doc = " Function: FPDF_VIEWERREF_GetName\n          Gets the contents for a viewer ref, with a given key. The value must\n          be of type \"name\".\n Parameters:\n          document    -   Handle to the loaded document.\n          key         -   Name of the key in the viewer pref dictionary,\n                          encoded in UTF-8.\n          buffer      -   Caller-allocate buffer to receive the key, or NULL\n                      -   to query the required length.\n          length      -   Length of the buffer.\n Return value:\n          The number of bytes in the contents, including the NULL terminator.\n          Thus if the return value is 0, then that indicates an error, such\n          as when |document| is invalid. If |length| is less than the required\n          length, or |buffer| is NULL, |buffer| will not be modified."]
1480    pub fn FPDF_VIEWERREF_GetName(
1481        document: FPDF_DOCUMENT,
1482        key: FPDF_BYTESTRING,
1483        buffer: *mut ::std::os::raw::c_char,
1484        length: ::std::os::raw::c_ulong,
1485    ) -> ::std::os::raw::c_ulong;
1486}
1487unsafe extern "C" {
1488    #[doc = " Function: FPDF_CountNamedDests\n          Get the count of named destinations in the PDF document.\n Parameters:\n          document    -   Handle to a document\n Return value:\n          The count of named destinations."]
1489    pub fn FPDF_CountNamedDests(document: FPDF_DOCUMENT) -> FPDF_DWORD;
1490}
1491unsafe extern "C" {
1492    #[doc = " Function: FPDF_GetNamedDestByName\n          Get a the destination handle for the given name.\n Parameters:\n          document    -   Handle to the loaded document.\n          name        -   The name of a destination.\n Return value:\n          The handle to the destination."]
1493    pub fn FPDF_GetNamedDestByName(document: FPDF_DOCUMENT, name: FPDF_BYTESTRING) -> FPDF_DEST;
1494}
1495unsafe extern "C" {
1496    #[doc = " Function: FPDF_GetNamedDest\n          Get the named destination by index.\n Parameters:\n          document        -   Handle to a document\n          index           -   The index of a named destination.\n          buffer          -   The buffer to store the destination name,\n                              used as wchar_t*.\n          buflen [in/out] -   Size of the buffer in bytes on input,\n                              length of the result in bytes on output\n                              or -1 if the buffer is too small.\n Return value:\n          The destination handle for a given index, or NULL if there is no\n          named destination corresponding to |index|.\n Comments:\n          Call this function twice to get the name of the named destination:\n            1) First time pass in |buffer| as NULL and get buflen.\n            2) Second time pass in allocated |buffer| and buflen to retrieve\n               |buffer|, which should be used as wchar_t*.\n\n         If buflen is not sufficiently large, it will be set to -1 upon\n         return."]
1497    pub fn FPDF_GetNamedDest(
1498        document: FPDF_DOCUMENT,
1499        index: ::std::os::raw::c_int,
1500        buffer: *mut ::std::os::raw::c_void,
1501        buflen: *mut ::std::os::raw::c_long,
1502    ) -> FPDF_DEST;
1503}
1504unsafe extern "C" {
1505    #[doc = " Experimental API.\n Function: FPDF_GetXFAPacketCount\n          Get the number of valid packets in the XFA entry.\n Parameters:\n          document - Handle to the document.\n Return value:\n          The number of valid packets, or -1 on error."]
1506    pub fn FPDF_GetXFAPacketCount(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
1507}
1508unsafe extern "C" {
1509    #[doc = " Experimental API.\n Function: FPDF_GetXFAPacketName\n          Get the name of a packet in the XFA array.\n Parameters:\n          document - Handle to the document.\n          index    - Index number of the packet. 0 for the first packet.\n          buffer   - Buffer for holding the name of the XFA packet.\n          buflen   - Length of |buffer| in bytes.\n Return value:\n          The length of the packet name in bytes, or 0 on error.\n\n |document| must be valid and |index| must be in the range [0, N), where N is\n the value returned by FPDF_GetXFAPacketCount().\n |buffer| is only modified if it is non-NULL and |buflen| is greater than or\n equal to the length of the packet name. The packet name includes a\n terminating NUL character. |buffer| is unmodified on error."]
1510    pub fn FPDF_GetXFAPacketName(
1511        document: FPDF_DOCUMENT,
1512        index: ::std::os::raw::c_int,
1513        buffer: *mut ::std::os::raw::c_void,
1514        buflen: ::std::os::raw::c_ulong,
1515    ) -> ::std::os::raw::c_ulong;
1516}
1517unsafe extern "C" {
1518    #[doc = " Experimental API.\n Function: FPDF_GetXFAPacketContent\n          Get the content of a packet in the XFA array.\n Parameters:\n          document   - Handle to the document.\n          index      - Index number of the packet. 0 for the first packet.\n          buffer     - Buffer for holding the content of the XFA packet.\n          buflen     - Length of |buffer| in bytes.\n          out_buflen - Pointer to the variable that will receive the minimum\n                       buffer size needed to contain the content of the XFA\n                       packet.\n Return value:\n          Whether the operation succeeded or not.\n\n |document| must be valid and |index| must be in the range [0, N), where N is\n the value returned by FPDF_GetXFAPacketCount(). |out_buflen| must not be\n NULL. When the aforementioned arguments are valid, the operation succeeds,\n and |out_buflen| receives the content size. |buffer| is only modified if\n |buffer| is non-null and long enough to contain the content. Callers must\n check both the return value and the input |buflen| is no less than the\n returned |out_buflen| before using the data in |buffer|."]
1519    pub fn FPDF_GetXFAPacketContent(
1520        document: FPDF_DOCUMENT,
1521        index: ::std::os::raw::c_int,
1522        buffer: *mut ::std::os::raw::c_void,
1523        buflen: ::std::os::raw::c_ulong,
1524        out_buflen: *mut ::std::os::raw::c_ulong,
1525    ) -> FPDF_BOOL;
1526}
1527unsafe extern "C" {
1528    #[doc = " Function: FPDF_GetRecommendedV8Flags\n          Returns a space-separated string of command line flags that are\n          recommended to be passed into V8 via V8::SetFlagsFromString()\n          prior to initializing the PDFium library.\n Parameters:\n          None.\n Return value:\n          NUL-terminated string of the form \"--flag1 --flag2\".\n          The caller must not attempt to modify or free the result."]
1529    pub fn FPDF_GetRecommendedV8Flags() -> *const ::std::os::raw::c_char;
1530}
1531unsafe extern "C" {
1532    #[doc = " Experimental API.\n Function: FPDF_GetArrayBufferAllocatorSharedInstance()\n          Helper function for initializing V8 isolates that will\n          use PDFium's internal memory management.\n Parameters:\n          None.\n Return Value:\n          Pointer to a suitable v8::ArrayBuffer::Allocator, returned\n          as void for C compatibility.\n Notes:\n          Use is optional, but allows external creation of isolates\n          matching the ones PDFium will make when none is provided\n          via |FPDF_LIBRARY_CONFIG::m_pIsolate|.\n\n          Can only be called when the library is in an uninitialized or\n          destroyed state."]
1533    pub fn FPDF_GetArrayBufferAllocatorSharedInstance() -> *mut ::std::os::raw::c_void;
1534}
1535unsafe extern "C" {
1536    #[doc = " Function: FPDF_BStr_Init\n          Helper function to initialize a FPDF_BSTR."]
1537    pub fn FPDF_BStr_Init(bstr: *mut FPDF_BSTR) -> FPDF_RESULT;
1538}
1539unsafe extern "C" {
1540    #[doc = " Function: FPDF_BStr_Set\n          Helper function to copy string data into the FPDF_BSTR."]
1541    pub fn FPDF_BStr_Set(
1542        bstr: *mut FPDF_BSTR,
1543        cstr: *const ::std::os::raw::c_char,
1544        length: ::std::os::raw::c_int,
1545    ) -> FPDF_RESULT;
1546}
1547unsafe extern "C" {
1548    #[doc = " Function: FPDF_BStr_Clear\n          Helper function to clear a FPDF_BSTR."]
1549    pub fn FPDF_BStr_Clear(bstr: *mut FPDF_BSTR) -> FPDF_RESULT;
1550}
1551unsafe extern "C" {
1552    #[doc = " Experimental API.\n\n Determine if |document| represents a tagged PDF.\n\n For the definition of tagged PDF, See (see 10.7 \"Tagged PDF\" in PDF\n Reference 1.7).\n\n   document - handle to a document.\n\n Returns |true| iff |document| is a tagged PDF."]
1553    pub fn FPDFCatalog_IsTagged(document: FPDF_DOCUMENT) -> FPDF_BOOL;
1554}
1555unsafe extern "C" {
1556    #[doc = " Experimental API.\n Sets the language of |document| to |language|.\n\n document - handle to a document.\n language - the language to set to.\n\n Returns TRUE on success."]
1557    pub fn FPDFCatalog_SetLanguage(document: FPDF_DOCUMENT, language: FPDF_BYTESTRING) -> FPDF_BOOL;
1558}
1559unsafe extern "C" {
1560    #[doc = " Function: FPDF_StructTree_GetForPage\n          Get the structure tree for a page.\n Parameters:\n          page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return value:\n          A handle to the structure tree or NULL on error. The caller owns the\n          returned handle and must use FPDF_StructTree_Close() to release it.\n          The handle should be released before |page| gets released."]
1561    pub fn FPDF_StructTree_GetForPage(page: FPDF_PAGE) -> FPDF_STRUCTTREE;
1562}
1563unsafe extern "C" {
1564    #[doc = " Function: FPDF_StructTree_Close\n          Release a resource allocated by FPDF_StructTree_GetForPage().\n Parameters:\n          struct_tree -   Handle to the structure tree, as returned by\n                          FPDF_StructTree_LoadPage().\n Return value:\n          None."]
1565    pub fn FPDF_StructTree_Close(struct_tree: FPDF_STRUCTTREE);
1566}
1567unsafe extern "C" {
1568    #[doc = " Function: FPDF_StructTree_CountChildren\n          Count the number of children for the structure tree.\n Parameters:\n          struct_tree -   Handle to the structure tree, as returned by\n                          FPDF_StructTree_LoadPage().\n Return value:\n          The number of children, or -1 on error."]
1569    pub fn FPDF_StructTree_CountChildren(struct_tree: FPDF_STRUCTTREE) -> ::std::os::raw::c_int;
1570}
1571unsafe extern "C" {
1572    #[doc = " Function: FPDF_StructTree_GetChildAtIndex\n          Get a child in the structure tree.\n Parameters:\n          struct_tree -   Handle to the structure tree, as returned by\n                          FPDF_StructTree_LoadPage().\n          index       -   The index for the child, 0-based.\n Return value:\n          The child at the n-th index or NULL on error. The caller does not\n          own the handle. The handle remains valid as long as |struct_tree|\n          remains valid.\n Comments:\n          The |index| must be less than the FPDF_StructTree_CountChildren()\n          return value."]
1573    pub fn FPDF_StructTree_GetChildAtIndex(
1574        struct_tree: FPDF_STRUCTTREE,
1575        index: ::std::os::raw::c_int,
1576    ) -> FPDF_STRUCTELEMENT;
1577}
1578unsafe extern "C" {
1579    #[doc = " Function: FPDF_StructElement_GetAltText\n          Get the alt text for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          buffer         -   A buffer for output the alt text. May be NULL.\n          buflen         -   The length of the buffer, in bytes. May be 0.\n Return value:\n          The number of bytes in the alt text, including the terminating NUL\n          character. The number of bytes is returned regardless of the\n          |buffer| and |buflen| parameters.\n Comments:\n          Regardless of the platform, the |buffer| is always in UTF-16LE\n          encoding. The string is terminated by a UTF16 NUL character. If\n          |buflen| is less than the required length, or |buffer| is NULL,\n          |buffer| will not be modified."]
1580    pub fn FPDF_StructElement_GetAltText(
1581        struct_element: FPDF_STRUCTELEMENT,
1582        buffer: *mut ::std::os::raw::c_void,
1583        buflen: ::std::os::raw::c_ulong,
1584    ) -> ::std::os::raw::c_ulong;
1585}
1586unsafe extern "C" {
1587    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetActualText\n          Get the actual text for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          buffer         -   A buffer for output the actual text. May be NULL.\n          buflen         -   The length of the buffer, in bytes. May be 0.\n Return value:\n          The number of bytes in the actual text, including the terminating\n          NUL character. The number of bytes is returned regardless of the\n          |buffer| and |buflen| parameters.\n Comments:\n          Regardless of the platform, the |buffer| is always in UTF-16LE\n          encoding. The string is terminated by a UTF16 NUL character. If\n          |buflen| is less than the required length, or |buffer| is NULL,\n          |buffer| will not be modified."]
1588    pub fn FPDF_StructElement_GetActualText(
1589        struct_element: FPDF_STRUCTELEMENT,
1590        buffer: *mut ::std::os::raw::c_void,
1591        buflen: ::std::os::raw::c_ulong,
1592    ) -> ::std::os::raw::c_ulong;
1593}
1594unsafe extern "C" {
1595    #[doc = " Function: FPDF_StructElement_GetID\n          Get the ID for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          buffer         -   A buffer for output the ID string. May be NULL.\n          buflen         -   The length of the buffer, in bytes. May be 0.\n Return value:\n          The number of bytes in the ID string, including the terminating NUL\n          character. The number of bytes is returned regardless of the\n          |buffer| and |buflen| parameters.\n Comments:\n          Regardless of the platform, the |buffer| is always in UTF-16LE\n          encoding. The string is terminated by a UTF16 NUL character. If\n          |buflen| is less than the required length, or |buffer| is NULL,\n          |buffer| will not be modified."]
1596    pub fn FPDF_StructElement_GetID(
1597        struct_element: FPDF_STRUCTELEMENT,
1598        buffer: *mut ::std::os::raw::c_void,
1599        buflen: ::std::os::raw::c_ulong,
1600    ) -> ::std::os::raw::c_ulong;
1601}
1602unsafe extern "C" {
1603    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetLang\n          Get the case-insensitive IETF BCP 47 language code for an element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          buffer         -   A buffer for output the lang string. May be NULL.\n          buflen         -   The length of the buffer, in bytes. May be 0.\n Return value:\n          The number of bytes in the ID string, including the terminating NUL\n          character. The number of bytes is returned regardless of the\n          |buffer| and |buflen| parameters.\n Comments:\n          Regardless of the platform, the |buffer| is always in UTF-16LE\n          encoding. The string is terminated by a UTF16 NUL character. If\n          |buflen| is less than the required length, or |buffer| is NULL,\n          |buffer| will not be modified."]
1604    pub fn FPDF_StructElement_GetLang(
1605        struct_element: FPDF_STRUCTELEMENT,
1606        buffer: *mut ::std::os::raw::c_void,
1607        buflen: ::std::os::raw::c_ulong,
1608    ) -> ::std::os::raw::c_ulong;
1609}
1610unsafe extern "C" {
1611    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetStringAttribute\n          Get a struct element attribute of type \"name\" or \"string\".\n Parameters:\n          struct_element -   Handle to the struct element.\n          attr_name      -   The name of the attribute to retrieve.\n          buffer         -   A buffer for output. May be NULL.\n          buflen         -   The length of the buffer, in bytes. May be 0.\n Return value:\n          The number of bytes in the attribute value, including the\n          terminating NUL character. The number of bytes is returned\n          regardless of the |buffer| and |buflen| parameters.\n Comments:\n          Regardless of the platform, the |buffer| is always in UTF-16LE\n          encoding. The string is terminated by a UTF16 NUL character. If\n          |buflen| is less than the required length, or |buffer| is NULL,\n          |buffer| will not be modified."]
1612    pub fn FPDF_StructElement_GetStringAttribute(
1613        struct_element: FPDF_STRUCTELEMENT,
1614        attr_name: FPDF_BYTESTRING,
1615        buffer: *mut ::std::os::raw::c_void,
1616        buflen: ::std::os::raw::c_ulong,
1617    ) -> ::std::os::raw::c_ulong;
1618}
1619unsafe extern "C" {
1620    #[doc = " Function: FPDF_StructElement_GetMarkedContentID\n          Get the marked content ID for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n Return value:\n          The marked content ID of the element. If no ID exists, returns\n          -1.\n Comments:\n          FPDF_StructElement_GetMarkedContentIdAtIndex() may be able to\n          extract more marked content IDs out of |struct_element|. This API\n          may be deprecated in the future."]
1621    pub fn FPDF_StructElement_GetMarkedContentID(struct_element: FPDF_STRUCTELEMENT) -> ::std::os::raw::c_int;
1622}
1623unsafe extern "C" {
1624    #[doc = " Function: FPDF_StructElement_GetType\n           Get the type (/S) for a given element.\n Parameters:\n           struct_element - Handle to the struct element.\n           buffer         - A buffer for output. May be NULL.\n           buflen         - The length of the buffer, in bytes. May be 0.\n Return value:\n           The number of bytes in the type, including the terminating NUL\n           character. The number of bytes is returned regardless of the\n           |buffer| and |buflen| parameters.\n Comments:\n           Regardless of the platform, the |buffer| is always in UTF-16LE\n           encoding. The string is terminated by a UTF16 NUL character. If\n           |buflen| is less than the required length, or |buffer| is NULL,\n           |buffer| will not be modified."]
1625    pub fn FPDF_StructElement_GetType(
1626        struct_element: FPDF_STRUCTELEMENT,
1627        buffer: *mut ::std::os::raw::c_void,
1628        buflen: ::std::os::raw::c_ulong,
1629    ) -> ::std::os::raw::c_ulong;
1630}
1631unsafe extern "C" {
1632    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetObjType\n           Get the object type (/Type) for a given element.\n Parameters:\n           struct_element - Handle to the struct element.\n           buffer         - A buffer for output. May be NULL.\n           buflen         - The length of the buffer, in bytes. May be 0.\n Return value:\n           The number of bytes in the object type, including the terminating\n           NUL character. The number of bytes is returned regardless of the\n           |buffer| and |buflen| parameters.\n Comments:\n           Regardless of the platform, the |buffer| is always in UTF-16LE\n           encoding. The string is terminated by a UTF16 NUL character. If\n           |buflen| is less than the required length, or |buffer| is NULL,\n           |buffer| will not be modified."]
1633    pub fn FPDF_StructElement_GetObjType(
1634        struct_element: FPDF_STRUCTELEMENT,
1635        buffer: *mut ::std::os::raw::c_void,
1636        buflen: ::std::os::raw::c_ulong,
1637    ) -> ::std::os::raw::c_ulong;
1638}
1639unsafe extern "C" {
1640    #[doc = " Function: FPDF_StructElement_GetTitle\n           Get the title (/T) for a given element.\n Parameters:\n           struct_element - Handle to the struct element.\n           buffer         - A buffer for output. May be NULL.\n           buflen         - The length of the buffer, in bytes. May be 0.\n Return value:\n           The number of bytes in the title, including the terminating NUL\n           character. The number of bytes is returned regardless of the\n           |buffer| and |buflen| parameters.\n Comments:\n           Regardless of the platform, the |buffer| is always in UTF-16LE\n           encoding. The string is terminated by a UTF16 NUL character. If\n           |buflen| is less than the required length, or |buffer| is NULL,\n           |buffer| will not be modified."]
1641    pub fn FPDF_StructElement_GetTitle(
1642        struct_element: FPDF_STRUCTELEMENT,
1643        buffer: *mut ::std::os::raw::c_void,
1644        buflen: ::std::os::raw::c_ulong,
1645    ) -> ::std::os::raw::c_ulong;
1646}
1647unsafe extern "C" {
1648    #[doc = " Function: FPDF_StructElement_CountChildren\n          Count the number of children for the structure element.\n Parameters:\n          struct_element -   Handle to the struct element.\n Return value:\n          The number of children, or -1 on error."]
1649    pub fn FPDF_StructElement_CountChildren(struct_element: FPDF_STRUCTELEMENT) -> ::std::os::raw::c_int;
1650}
1651unsafe extern "C" {
1652    #[doc = " Function: FPDF_StructElement_GetChildAtIndex\n          Get a child in the structure element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          index          -   The index for the child, 0-based.\n Return value:\n          The child at the n-th index or NULL on error.\n Comments:\n          If the child exists but is not an element, then this function will\n          return NULL. This will also return NULL for out of bounds indices.\n          The |index| must be less than the FPDF_StructElement_CountChildren()\n          return value."]
1653    pub fn FPDF_StructElement_GetChildAtIndex(
1654        struct_element: FPDF_STRUCTELEMENT,
1655        index: ::std::os::raw::c_int,
1656    ) -> FPDF_STRUCTELEMENT;
1657}
1658unsafe extern "C" {
1659    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetChildMarkedContentID\n          Get the child's content id\n Parameters:\n          struct_element -   Handle to the struct element.\n          index          -   The index for the child, 0-based.\n Return value:\n          The marked content ID of the child. If no ID exists, returns -1.\n Comments:\n          If the child exists but is not a stream or object, then this\n          function will return -1. This will also return -1 for out of bounds\n          indices. Compared to FPDF_StructElement_GetMarkedContentIdAtIndex,\n          it is scoped to the current page.\n          The |index| must be less than the FPDF_StructElement_CountChildren()\n          return value."]
1660    pub fn FPDF_StructElement_GetChildMarkedContentID(
1661        struct_element: FPDF_STRUCTELEMENT,
1662        index: ::std::os::raw::c_int,
1663    ) -> ::std::os::raw::c_int;
1664}
1665unsafe extern "C" {
1666    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetParent\n          Get the parent of the structure element.\n Parameters:\n          struct_element -   Handle to the struct element.\n Return value:\n          The parent structure element or NULL on error.\n Comments:\n          If structure element is StructTreeRoot, then this function will\n          return NULL."]
1667    pub fn FPDF_StructElement_GetParent(struct_element: FPDF_STRUCTELEMENT) -> FPDF_STRUCTELEMENT;
1668}
1669unsafe extern "C" {
1670    #[doc = " Function: FPDF_StructElement_GetAttributeCount\n          Count the number of attributes for the structure element.\n Parameters:\n          struct_element -   Handle to the struct element.\n Return value:\n          The number of attributes, or -1 on error."]
1671    pub fn FPDF_StructElement_GetAttributeCount(struct_element: FPDF_STRUCTELEMENT) -> ::std::os::raw::c_int;
1672}
1673unsafe extern "C" {
1674    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetAttributeAtIndex\n          Get an attribute object in the structure element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          index          -   The index for the attribute object, 0-based.\n Return value:\n          The attribute object at the n-th index or NULL on error.\n Comments:\n          If the attribute object exists but is not a dict, then this\n          function will return NULL. This will also return NULL for out of\n          bounds indices. The caller does not own the handle. The handle\n          remains valid as long as |struct_element| remains valid.\n          The |index| must be less than the\n          FPDF_StructElement_GetAttributeCount() return value."]
1675    pub fn FPDF_StructElement_GetAttributeAtIndex(
1676        struct_element: FPDF_STRUCTELEMENT,
1677        index: ::std::os::raw::c_int,
1678    ) -> FPDF_STRUCTELEMENT_ATTR;
1679}
1680unsafe extern "C" {
1681    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetCount\n          Count the number of attributes in a structure element attribute map.\n Parameters:\n          struct_attribute - Handle to the struct element attribute.\n Return value:\n          The number of attributes, or -1 on error."]
1682    pub fn FPDF_StructElement_Attr_GetCount(struct_attribute: FPDF_STRUCTELEMENT_ATTR) -> ::std::os::raw::c_int;
1683}
1684unsafe extern "C" {
1685    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetName\n          Get the name of an attribute in a structure element attribute map.\n Parameters:\n          struct_attribute   - Handle to the struct element attribute.\n          index              - The index of attribute in the map.\n          buffer             - A buffer for output. May be NULL. This is only\n                               modified if |buflen| is longer than the length\n                               of the key. Optional, pass null to just\n                               retrieve the size of the buffer needed.\n          buflen             - The length of the buffer.\n          out_buflen         - A pointer to variable that will receive the\n                               minimum buffer size to contain the key. Not\n                               filled if FALSE is returned.\n Return value:\n          TRUE if the operation was successful, FALSE otherwise."]
1686    pub fn FPDF_StructElement_Attr_GetName(
1687        struct_attribute: FPDF_STRUCTELEMENT_ATTR,
1688        index: ::std::os::raw::c_int,
1689        buffer: *mut ::std::os::raw::c_void,
1690        buflen: ::std::os::raw::c_ulong,
1691        out_buflen: *mut ::std::os::raw::c_ulong,
1692    ) -> FPDF_BOOL;
1693}
1694unsafe extern "C" {
1695    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetValue\n           Get a handle to a value for an attribute in a structure element\n           attribute map.\n Parameters:\n           struct_attribute   - Handle to the struct element attribute.\n           name               - The attribute name.\n Return value:\n           Returns a handle to the value associated with the input, if any.\n           Returns NULL on failure. The caller does not own the handle.\n           The handle remains valid as long as |struct_attribute| remains\n           valid."]
1696    pub fn FPDF_StructElement_Attr_GetValue(
1697        struct_attribute: FPDF_STRUCTELEMENT_ATTR,
1698        name: FPDF_BYTESTRING,
1699    ) -> FPDF_STRUCTELEMENT_ATTR_VALUE;
1700}
1701unsafe extern "C" {
1702    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetType\n           Get the type of an attribute in a structure element attribute map.\n Parameters:\n           value - Handle to the value.\n Return value:\n           Returns the type of the value, or FPDF_OBJECT_UNKNOWN in case of\n           failure. Note that this will never return FPDF_OBJECT_REFERENCE, as\n           references are always dereferenced."]
1703    pub fn FPDF_StructElement_Attr_GetType(value: FPDF_STRUCTELEMENT_ATTR_VALUE) -> FPDF_OBJECT_TYPE;
1704}
1705unsafe extern "C" {
1706    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetBooleanValue\n           Get the value of a boolean attribute in an attribute map as\n           FPDF_BOOL. FPDF_StructElement_Attr_GetType() should have returned\n           FPDF_OBJECT_BOOLEAN for this property.\n Parameters:\n           value     - Handle to the value.\n           out_value - A pointer to variable that will receive the value. Not\n                       filled if false is returned.\n Return value:\n           Returns TRUE if the attribute maps to a boolean value, FALSE\n           otherwise."]
1707    pub fn FPDF_StructElement_Attr_GetBooleanValue(
1708        value: FPDF_STRUCTELEMENT_ATTR_VALUE,
1709        out_value: *mut FPDF_BOOL,
1710    ) -> FPDF_BOOL;
1711}
1712unsafe extern "C" {
1713    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetNumberValue\n           Get the value of a number attribute in an attribute map as float.\n           FPDF_StructElement_Attr_GetType() should have returned\n           FPDF_OBJECT_NUMBER for this property.\n Parameters:\n           value     - Handle to the value.\n           out_value - A pointer to variable that will receive the value. Not\n                       filled if false is returned.\n Return value:\n           Returns TRUE if the attribute maps to a number value, FALSE\n           otherwise."]
1714    pub fn FPDF_StructElement_Attr_GetNumberValue(
1715        value: FPDF_STRUCTELEMENT_ATTR_VALUE,
1716        out_value: *mut f32,
1717    ) -> FPDF_BOOL;
1718}
1719unsafe extern "C" {
1720    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetStringValue\n           Get the value of a string attribute in an attribute map as string.\n           FPDF_StructElement_Attr_GetType() should have returned\n           FPDF_OBJECT_STRING or FPDF_OBJECT_NAME for this property.\n Parameters:\n           value      - Handle to the value.\n           buffer     - A buffer for holding the returned key in UTF-16LE.\n                        This is only modified if |buflen| is longer than the\n                        length of the key. Optional, pass null to just\n                        retrieve the size of the buffer needed.\n           buflen     - The length of the buffer.\n           out_buflen - A pointer to variable that will receive the minimum\n                        buffer size to contain the key. Not filled if FALSE is\n                        returned.\n Return value:\n           Returns TRUE if the attribute maps to a string value, FALSE\n           otherwise."]
1721    pub fn FPDF_StructElement_Attr_GetStringValue(
1722        value: FPDF_STRUCTELEMENT_ATTR_VALUE,
1723        buffer: *mut ::std::os::raw::c_void,
1724        buflen: ::std::os::raw::c_ulong,
1725        out_buflen: *mut ::std::os::raw::c_ulong,
1726    ) -> FPDF_BOOL;
1727}
1728unsafe extern "C" {
1729    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetBlobValue\n           Get the value of a blob attribute in an attribute map as string.\n Parameters:\n           value      - Handle to the value.\n           buffer     - A buffer for holding the returned value. This is only\n                        modified if |buflen| is at least as long as the length\n                        of the value. Optional, pass null to just retrieve the\n                        size of the buffer needed.\n           buflen     - The length of the buffer.\n           out_buflen - A pointer to variable that will receive the minimum\n                        buffer size to contain the key. Not filled if FALSE is\n                        returned.\n Return value:\n           Returns TRUE if the attribute maps to a string value, FALSE\n           otherwise."]
1730    pub fn FPDF_StructElement_Attr_GetBlobValue(
1731        value: FPDF_STRUCTELEMENT_ATTR_VALUE,
1732        buffer: *mut ::std::os::raw::c_void,
1733        buflen: ::std::os::raw::c_ulong,
1734        out_buflen: *mut ::std::os::raw::c_ulong,
1735    ) -> FPDF_BOOL;
1736}
1737unsafe extern "C" {
1738    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_CountChildren\n           Count the number of children values in an attribute.\n Parameters:\n           value - Handle to the value.\n Return value:\n           The number of children, or -1 on error."]
1739    pub fn FPDF_StructElement_Attr_CountChildren(value: FPDF_STRUCTELEMENT_ATTR_VALUE) -> ::std::os::raw::c_int;
1740}
1741unsafe extern "C" {
1742    #[doc = " Experimental API.\n Function: FPDF_StructElement_Attr_GetChildAtIndex\n           Get a child from an attribute.\n Parameters:\n           value - Handle to the value.\n           index - The index for the child, 0-based.\n Return value:\n           The child at the n-th index or NULL on error.\n Comments:\n           The |index| must be less than the\n           FPDF_StructElement_Attr_CountChildren() return value."]
1743    pub fn FPDF_StructElement_Attr_GetChildAtIndex(
1744        value: FPDF_STRUCTELEMENT_ATTR_VALUE,
1745        index: ::std::os::raw::c_int,
1746    ) -> FPDF_STRUCTELEMENT_ATTR_VALUE;
1747}
1748unsafe extern "C" {
1749    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetMarkedContentIdCount\n          Get the count of marked content ids for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n Return value:\n          The count of marked content ids or -1 if none exists."]
1750    pub fn FPDF_StructElement_GetMarkedContentIdCount(struct_element: FPDF_STRUCTELEMENT) -> ::std::os::raw::c_int;
1751}
1752unsafe extern "C" {
1753    #[doc = " Experimental API.\n Function: FPDF_StructElement_GetMarkedContentIdAtIndex\n          Get the marked content id at a given index for a given element.\n Parameters:\n          struct_element -   Handle to the struct element.\n          index          -   The index of the marked content id, 0-based.\n Return value:\n          The marked content ID of the element. If no ID exists, returns\n          -1.\n Comments:\n          The |index| must be less than the\n          FPDF_StructElement_GetMarkedContentIdCount() return value.\n          This will likely supersede FPDF_StructElement_GetMarkedContentID()."]
1754    pub fn FPDF_StructElement_GetMarkedContentIdAtIndex(
1755        struct_element: FPDF_STRUCTELEMENT,
1756        index: ::std::os::raw::c_int,
1757    ) -> ::std::os::raw::c_int;
1758}
1759unsafe extern "C" {
1760    #[doc = " Function: FPDFText_LoadPage\n          Prepare information about all characters in a page.\n Parameters:\n          page    -   Handle to the page. Returned by FPDF_LoadPage function\n                      (in FPDFVIEW module).\n Return value:\n          A handle to the text page information structure.\n          NULL if something goes wrong.\n Comments:\n          Application must call FPDFText_ClosePage to release the text page\n          information.\n"]
1761    pub fn FPDFText_LoadPage(page: FPDF_PAGE) -> FPDF_TEXTPAGE;
1762}
1763unsafe extern "C" {
1764    #[doc = " Function: FPDFText_ClosePage\n          Release all resources allocated for a text page information\n          structure.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n Return Value:\n          None.\n"]
1765    pub fn FPDFText_ClosePage(text_page: FPDF_TEXTPAGE);
1766}
1767unsafe extern "C" {
1768    #[doc = " Function: FPDFText_CountChars\n          Get number of characters in a page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n Return value:\n          Number of characters in the page. Return -1 for error.\n          Generated characters, like additional space characters, new line\n          characters, are also counted.\n Comments:\n          Characters in a page form a \"stream\", inside the stream, each\n          character has an index.\n          We will use the index parameters in many of FPDFTEXT functions. The\n          first character in the page\n          has an index value of zero.\n"]
1769    pub fn FPDFText_CountChars(text_page: FPDF_TEXTPAGE) -> ::std::os::raw::c_int;
1770}
1771unsafe extern "C" {
1772    #[doc = " Function: FPDFText_GetUnicode\n          Get Unicode of a character in a page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          The Unicode of the particular character.\n          If a character is not encoded in Unicode and Foxit engine can't\n          convert to Unicode,\n          the return value will be zero.\n"]
1773    pub fn FPDFText_GetUnicode(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> ::std::os::raw::c_uint;
1774}
1775unsafe extern "C" {
1776    #[doc = " Experimental API.\n Function: FPDFText_GetTextObject\n          Get the FPDF_PAGEOBJECT associated with a given character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          The associated text object for the character at |index|, or NULL on\n          error. The returned text object, if non-null, is of type\n          |FPDF_PAGEOBJ_TEXT|. The caller does not own the returned object.\n"]
1777    pub fn FPDFText_GetTextObject(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> FPDF_PAGEOBJECT;
1778}
1779unsafe extern "C" {
1780    #[doc = " Experimental API.\n Function: FPDFText_IsGenerated\n          Get if a character in a page is generated by PDFium.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          1 if the character is generated by PDFium.\n          0 if the character is not generated by PDFium.\n          -1 if there was an error.\n"]
1781    pub fn FPDFText_IsGenerated(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1782}
1783unsafe extern "C" {
1784    #[doc = " Experimental API.\n Function: FPDFText_IsHyphen\n          Get if a character in a page is a hyphen.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          1 if the character is a hyphen.\n          0 if the character is not a hyphen.\n          -1 if there was an error.\n"]
1785    pub fn FPDFText_IsHyphen(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1786}
1787unsafe extern "C" {
1788    #[doc = " Experimental API.\n Function: FPDFText_HasUnicodeMapError\n          Get if a character in a page has an invalid unicode mapping.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          1 if the character has an invalid unicode mapping.\n          0 if the character has no known unicode mapping issues.\n          -1 if there was an error.\n"]
1789    pub fn FPDFText_HasUnicodeMapError(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int)
1790    -> ::std::os::raw::c_int;
1791}
1792unsafe extern "C" {
1793    #[doc = " Function: FPDFText_GetFontSize\n          Get the font size of a particular character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          The font size of the particular character, measured in points (about\n          1/72 inch). This is the typographic size of the font (so called\n          \"em size\").\n"]
1794    pub fn FPDFText_GetFontSize(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> f64;
1795}
1796unsafe extern "C" {
1797    #[doc = " Experimental API.\n Function: FPDFText_GetFontInfo\n          Get the font name and flags of a particular character.\n Parameters:\n          text_page - Handle to a text page information structure.\n                      Returned by FPDFText_LoadPage function.\n          index     - Zero-based index of the character.\n          buffer    - A buffer receiving the font name.\n          buflen    - The length of |buffer| in bytes.\n          flags     - Optional pointer to an int receiving the font flags.\n                      These flags should be interpreted per PDF spec 1.7\n                      Section 5.7.1 Font Descriptor Flags.\n Return value:\n          On success, return the length of the font name, including the\n          trailing NUL character, in bytes. If this length is less than or\n          equal to |length|, |buffer| is set to the font name, |flags| is\n          set to the font flags. |buffer| is in UTF-8 encoding. Return 0 on\n          failure.\n"]
1798    pub fn FPDFText_GetFontInfo(
1799        text_page: FPDF_TEXTPAGE,
1800        index: ::std::os::raw::c_int,
1801        buffer: *mut ::std::os::raw::c_void,
1802        buflen: ::std::os::raw::c_ulong,
1803        flags: *mut ::std::os::raw::c_int,
1804    ) -> ::std::os::raw::c_ulong;
1805}
1806unsafe extern "C" {
1807    #[doc = " Experimental API.\n Function: FPDFText_GetFontWeight\n          Get the font weight of a particular character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return value:\n          On success, return the font weight of the particular character. If\n          |text_page| is invalid, if |index| is out of bounds, or if the\n          character's text object is undefined, return -1.\n"]
1808    pub fn FPDFText_GetFontWeight(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1809}
1810unsafe extern "C" {
1811    #[doc = " Experimental API.\n Function: FPDFText_GetFillColor\n          Get the fill color of a particular character.\n Parameters:\n          text_page      -   Handle to a text page information structure.\n                             Returned by FPDFText_LoadPage function.\n          index          -   Zero-based index of the character.\n          R              -   Pointer to an unsigned int number receiving the\n                             red value of the fill color.\n          G              -   Pointer to an unsigned int number receiving the\n                             green value of the fill color.\n          B              -   Pointer to an unsigned int number receiving the\n                             blue value of the fill color.\n          A              -   Pointer to an unsigned int number receiving the\n                             alpha value of the fill color.\n Return value:\n          Whether the call succeeded. If false, |R|, |G|, |B| and |A| are\n          unchanged.\n"]
1812    pub fn FPDFText_GetFillColor(
1813        text_page: FPDF_TEXTPAGE,
1814        index: ::std::os::raw::c_int,
1815        R: *mut ::std::os::raw::c_uint,
1816        G: *mut ::std::os::raw::c_uint,
1817        B: *mut ::std::os::raw::c_uint,
1818        A: *mut ::std::os::raw::c_uint,
1819    ) -> FPDF_BOOL;
1820}
1821unsafe extern "C" {
1822    #[doc = " Experimental API.\n Function: FPDFText_GetStrokeColor\n          Get the stroke color of a particular character.\n Parameters:\n          text_page      -   Handle to a text page information structure.\n                             Returned by FPDFText_LoadPage function.\n          index          -   Zero-based index of the character.\n          R              -   Pointer to an unsigned int number receiving the\n                             red value of the stroke color.\n          G              -   Pointer to an unsigned int number receiving the\n                             green value of the stroke color.\n          B              -   Pointer to an unsigned int number receiving the\n                             blue value of the stroke color.\n          A              -   Pointer to an unsigned int number receiving the\n                             alpha value of the stroke color.\n Return value:\n          Whether the call succeeded. If false, |R|, |G|, |B| and |A| are\n          unchanged.\n"]
1823    pub fn FPDFText_GetStrokeColor(
1824        text_page: FPDF_TEXTPAGE,
1825        index: ::std::os::raw::c_int,
1826        R: *mut ::std::os::raw::c_uint,
1827        G: *mut ::std::os::raw::c_uint,
1828        B: *mut ::std::os::raw::c_uint,
1829        A: *mut ::std::os::raw::c_uint,
1830    ) -> FPDF_BOOL;
1831}
1832unsafe extern "C" {
1833    #[doc = " Experimental API.\n Function: FPDFText_GetCharAngle\n          Get character rotation angle.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n Return Value:\n          On success, return the angle value in radian. Value will always be\n          greater or equal to 0. If |text_page| is invalid, or if |index| is\n          out of bounds, then return -1.\n"]
1834    pub fn FPDFText_GetCharAngle(text_page: FPDF_TEXTPAGE, index: ::std::os::raw::c_int) -> f32;
1835}
1836unsafe extern "C" {
1837    #[doc = " Function: FPDFText_GetCharBox\n          Get bounding box of a particular character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n          left        -   Pointer to a double number receiving left position\n                          of the character box.\n          right       -   Pointer to a double number receiving right position\n                          of the character box.\n          bottom      -   Pointer to a double number receiving bottom position\n                          of the character box.\n          top         -   Pointer to a double number receiving top position of\n                          the character box.\n Return Value:\n          On success, return TRUE and fill in |left|, |right|, |bottom|, and\n          |top|. If |text_page| is invalid, or if |index| is out of bounds,\n          then return FALSE, and the out parameters remain unmodified.\n Comments:\n          All positions are measured in PDF \"user space\".\n"]
1838    pub fn FPDFText_GetCharBox(
1839        text_page: FPDF_TEXTPAGE,
1840        index: ::std::os::raw::c_int,
1841        left: *mut f64,
1842        right: *mut f64,
1843        bottom: *mut f64,
1844        top: *mut f64,
1845    ) -> FPDF_BOOL;
1846}
1847unsafe extern "C" {
1848    #[doc = " Experimental API.\n Function: FPDFText_GetLooseCharBox\n          Get a \"loose\" bounding box of a particular character, i.e., covering\n          the entire glyph bounds, without taking the actual glyph shape into\n          account.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n          rect        -   Pointer to a FS_RECTF receiving the character box.\n Return Value:\n          On success, return TRUE and fill in |rect|. If |text_page| is\n          invalid, or if |index| is out of bounds, then return FALSE, and the\n          |rect| out parameter remains unmodified.\n Comments:\n          All positions are measured in PDF \"user space\".\n"]
1849    pub fn FPDFText_GetLooseCharBox(
1850        text_page: FPDF_TEXTPAGE,
1851        index: ::std::os::raw::c_int,
1852        rect: *mut FS_RECTF,
1853    ) -> FPDF_BOOL;
1854}
1855unsafe extern "C" {
1856    #[doc = " Experimental API.\n Function: FPDFText_GetMatrix\n          Get the effective transformation matrix for a particular character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage().\n          index       -   Zero-based index of the character.\n          matrix      -   Pointer to a FS_MATRIX receiving the transformation\n                          matrix.\n Return Value:\n          On success, return TRUE and fill in |matrix|. If |text_page| is\n          invalid, or if |index| is out of bounds, or if |matrix| is NULL,\n          then return FALSE, and |matrix| remains unmodified.\n"]
1857    pub fn FPDFText_GetMatrix(
1858        text_page: FPDF_TEXTPAGE,
1859        index: ::std::os::raw::c_int,
1860        matrix: *mut FS_MATRIX,
1861    ) -> FPDF_BOOL;
1862}
1863unsafe extern "C" {
1864    #[doc = " Function: FPDFText_GetCharOrigin\n          Get origin of a particular character.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          index       -   Zero-based index of the character.\n          x           -   Pointer to a double number receiving x coordinate of\n                          the character origin.\n          y           -   Pointer to a double number receiving y coordinate of\n                          the character origin.\n Return Value:\n          Whether the call succeeded. If false, x and y are unchanged.\n Comments:\n          All positions are measured in PDF \"user space\".\n"]
1865    pub fn FPDFText_GetCharOrigin(
1866        text_page: FPDF_TEXTPAGE,
1867        index: ::std::os::raw::c_int,
1868        x: *mut f64,
1869        y: *mut f64,
1870    ) -> FPDF_BOOL;
1871}
1872unsafe extern "C" {
1873    #[doc = " Function: FPDFText_GetCharIndexAtPos\n          Get the index of a character at or nearby a certain position on the\n          page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          x           -   X position in PDF \"user space\".\n          y           -   Y position in PDF \"user space\".\n          xTolerance  -   An x-axis tolerance value for character hit\n                          detection, in point units.\n          yTolerance  -   A y-axis tolerance value for character hit\n                          detection, in point units.\n Return Value:\n          The zero-based index of the character at, or nearby the point (x,y).\n          If there is no character at or nearby the point, return value will\n          be -1. If an error occurs, -3 will be returned.\n"]
1874    pub fn FPDFText_GetCharIndexAtPos(
1875        text_page: FPDF_TEXTPAGE,
1876        x: f64,
1877        y: f64,
1878        xTolerance: f64,
1879        yTolerance: f64,
1880    ) -> ::std::os::raw::c_int;
1881}
1882unsafe extern "C" {
1883    #[doc = " Function: FPDFText_GetText\n          Extract unicode text string from the page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          start_index -   Index for the start characters.\n          count       -   Number of UCS-2 values to be extracted.\n          result      -   A buffer (allocated by application) receiving the\n                          extracted UCS-2 values. The buffer must be able to\n                          hold `count` UCS-2 values plus a terminator.\n Return Value:\n          Number of characters written into the result buffer, including the\n          trailing terminator.\n Comments:\n          This function ignores characters without UCS-2 representations.\n          It considers all characters on the page, even those that are not\n          visible when the page has a cropbox. To filter out the characters\n          outside of the cropbox, use FPDF_GetPageBoundingBox() and\n          FPDFText_GetCharBox().\n"]
1884    pub fn FPDFText_GetText(
1885        text_page: FPDF_TEXTPAGE,
1886        start_index: ::std::os::raw::c_int,
1887        count: ::std::os::raw::c_int,
1888        result: *mut ::std::os::raw::c_ushort,
1889    ) -> ::std::os::raw::c_int;
1890}
1891unsafe extern "C" {
1892    #[doc = " Function: FPDFText_CountRects\n          Counts number of rectangular areas occupied by a segment of text,\n          and caches the result for subsequent FPDFText_GetRect() calls.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          start_index -   Index for the start character.\n          count       -   Number of characters, or -1 for all remaining.\n Return value:\n          Number of rectangles, 0 if text_page is null, or -1 on bad\n          start_index.\n Comments:\n          This function, along with FPDFText_GetRect can be used by\n          applications to detect the position on the page for a text segment,\n          so proper areas can be highlighted. The FPDFText_* functions will\n          automatically merge small character boxes into bigger one if those\n          characters are on the same line and use same font settings.\n"]
1893    pub fn FPDFText_CountRects(
1894        text_page: FPDF_TEXTPAGE,
1895        start_index: ::std::os::raw::c_int,
1896        count: ::std::os::raw::c_int,
1897    ) -> ::std::os::raw::c_int;
1898}
1899unsafe extern "C" {
1900    #[doc = " Function: FPDFText_GetRect\n          Get a rectangular area from the result generated by\n          FPDFText_CountRects.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          rect_index  -   Zero-based index for the rectangle.\n          left        -   Pointer to a double value receiving the rectangle\n                          left boundary.\n          top         -   Pointer to a double value receiving the rectangle\n                          top boundary.\n          right       -   Pointer to a double value receiving the rectangle\n                          right boundary.\n          bottom      -   Pointer to a double value receiving the rectangle\n                          bottom boundary.\n Return Value:\n          On success, return TRUE and fill in |left|, |top|, |right|, and\n          |bottom|. If |text_page| is invalid then return FALSE, and the out\n          parameters remain unmodified. If |text_page| is valid but\n          |rect_index| is out of bounds, then return FALSE and set the out\n          parameters to 0.\n"]
1901    pub fn FPDFText_GetRect(
1902        text_page: FPDF_TEXTPAGE,
1903        rect_index: ::std::os::raw::c_int,
1904        left: *mut f64,
1905        top: *mut f64,
1906        right: *mut f64,
1907        bottom: *mut f64,
1908    ) -> FPDF_BOOL;
1909}
1910unsafe extern "C" {
1911    #[doc = " Function: FPDFText_GetBoundedText\n          Extract unicode text within a rectangular boundary on the page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          left        -   Left boundary.\n          top         -   Top boundary.\n          right       -   Right boundary.\n          bottom      -   Bottom boundary.\n          buffer      -   Caller-allocated buffer to receive UTF-16 values.\n          buflen      -   Number of UTF-16 values (not bytes) that `buffer`\n                          is capable of holding.\n Return Value:\n          If buffer is NULL or buflen is zero, return number of UTF-16\n          values (not bytes) of text present within the rectangle, excluding\n          a terminating NUL. Generally you should pass a buffer at least one\n          larger than this if you want a terminating NUL, which will be\n          provided if space is available. Otherwise, return number of UTF-16\n          values copied into the buffer, including the terminating NUL when\n          space for it is available.\n Comment:\n          If the buffer is too small, as much text as will fit is copied into\n          it. May return a split surrogate in that case.\n"]
1912    pub fn FPDFText_GetBoundedText(
1913        text_page: FPDF_TEXTPAGE,
1914        left: f64,
1915        top: f64,
1916        right: f64,
1917        bottom: f64,
1918        buffer: *mut ::std::os::raw::c_ushort,
1919        buflen: ::std::os::raw::c_int,
1920    ) -> ::std::os::raw::c_int;
1921}
1922unsafe extern "C" {
1923    #[doc = " Function: FPDFText_FindStart\n          Start a search.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n          findwhat    -   A unicode match pattern.\n          flags       -   Option flags.\n          start_index -   Start from this character. -1 for end of the page.\n Return Value:\n          A handle for the search context. FPDFText_FindClose must be called\n          to release this handle.\n"]
1924    pub fn FPDFText_FindStart(
1925        text_page: FPDF_TEXTPAGE,
1926        findwhat: FPDF_WIDESTRING,
1927        flags: ::std::os::raw::c_ulong,
1928        start_index: ::std::os::raw::c_int,
1929    ) -> FPDF_SCHHANDLE;
1930}
1931unsafe extern "C" {
1932    #[doc = " Function: FPDFText_FindNext\n          Search in the direction from page start to end.\n Parameters:\n          handle      -   A search context handle returned by\n                          FPDFText_FindStart.\n Return Value:\n          Whether a match is found.\n"]
1933    pub fn FPDFText_FindNext(handle: FPDF_SCHHANDLE) -> FPDF_BOOL;
1934}
1935unsafe extern "C" {
1936    #[doc = " Function: FPDFText_FindPrev\n          Search in the direction from page end to start.\n Parameters:\n          handle      -   A search context handle returned by\n                          FPDFText_FindStart.\n Return Value:\n          Whether a match is found.\n"]
1937    pub fn FPDFText_FindPrev(handle: FPDF_SCHHANDLE) -> FPDF_BOOL;
1938}
1939unsafe extern "C" {
1940    #[doc = " Function: FPDFText_GetSchResultIndex\n          Get the starting character index of the search result.\n Parameters:\n          handle      -   A search context handle returned by\n                          FPDFText_FindStart.\n Return Value:\n          Index for the starting character.\n"]
1941    pub fn FPDFText_GetSchResultIndex(handle: FPDF_SCHHANDLE) -> ::std::os::raw::c_int;
1942}
1943unsafe extern "C" {
1944    #[doc = " Function: FPDFText_GetSchCount\n          Get the number of matched characters in the search result.\n Parameters:\n          handle      -   A search context handle returned by\n                          FPDFText_FindStart.\n Return Value:\n          Number of matched characters.\n"]
1945    pub fn FPDFText_GetSchCount(handle: FPDF_SCHHANDLE) -> ::std::os::raw::c_int;
1946}
1947unsafe extern "C" {
1948    #[doc = " Function: FPDFText_FindClose\n          Release a search context.\n Parameters:\n          handle      -   A search context handle returned by\n                          FPDFText_FindStart.\n Return Value:\n          None.\n"]
1949    pub fn FPDFText_FindClose(handle: FPDF_SCHHANDLE);
1950}
1951unsafe extern "C" {
1952    #[doc = " Function: FPDFLink_LoadWebLinks\n          Prepare information about weblinks in a page.\n Parameters:\n          text_page   -   Handle to a text page information structure.\n                          Returned by FPDFText_LoadPage function.\n Return Value:\n          A handle to the page's links information structure, or\n          NULL if something goes wrong.\n Comments:\n          Weblinks are those links implicitly embedded in PDF pages. PDF also\n          has a type of annotation called \"link\" (FPDFTEXT doesn't deal with\n          that kind of link). FPDFTEXT weblink feature is useful for\n          automatically detecting links in the page contents. For example,\n          things like \"https://www.example.com\" will be detected, so\n          applications can allow user to click on those characters to activate\n          the link, even the PDF doesn't come with link annotations.\n\n          FPDFLink_CloseWebLinks must be called to release resources.\n"]
1953    pub fn FPDFLink_LoadWebLinks(text_page: FPDF_TEXTPAGE) -> FPDF_PAGELINK;
1954}
1955unsafe extern "C" {
1956    #[doc = " Function: FPDFLink_CountWebLinks\n          Count number of detected web links.\n Parameters:\n          link_page   -   Handle returned by FPDFLink_LoadWebLinks.\n Return Value:\n          Number of detected web links.\n"]
1957    pub fn FPDFLink_CountWebLinks(link_page: FPDF_PAGELINK) -> ::std::os::raw::c_int;
1958}
1959unsafe extern "C" {
1960    #[doc = " Function: FPDFLink_GetURL\n          Fetch the URL information for a detected web link.\n Parameters:\n          link_page   -   Handle returned by FPDFLink_LoadWebLinks.\n          link_index  -   Zero-based index for the link.\n          buffer      -   A unicode buffer for the result.\n          buflen      -   Number of 16-bit code units (not bytes) for the\n                          buffer, including an additional terminator.\n Return Value:\n          If |buffer| is NULL or |buflen| is zero, return the number of 16-bit\n          code units (not bytes) needed to buffer the result (an additional\n          terminator is included in this count).\n          Otherwise, copy the result into |buffer|, truncating at |buflen| if\n          the result is too large to fit, and return the number of 16-bit code\n          units actually copied into the buffer (the additional terminator is\n          also included in this count).\n          If |link_index| does not correspond to a valid link, then the result\n          is an empty string.\n"]
1961    pub fn FPDFLink_GetURL(
1962        link_page: FPDF_PAGELINK,
1963        link_index: ::std::os::raw::c_int,
1964        buffer: *mut ::std::os::raw::c_ushort,
1965        buflen: ::std::os::raw::c_int,
1966    ) -> ::std::os::raw::c_int;
1967}
1968unsafe extern "C" {
1969    #[doc = " Function: FPDFLink_CountRects\n          Count number of rectangular areas for the link.\n Parameters:\n          link_page   -   Handle returned by FPDFLink_LoadWebLinks.\n          link_index  -   Zero-based index for the link.\n Return Value:\n          Number of rectangular areas for the link.  If |link_index| does\n          not correspond to a valid link, then 0 is returned.\n"]
1970    pub fn FPDFLink_CountRects(link_page: FPDF_PAGELINK, link_index: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1971}
1972unsafe extern "C" {
1973    #[doc = " Function: FPDFLink_GetRect\n          Fetch the boundaries of a rectangle for a link.\n Parameters:\n          link_page   -   Handle returned by FPDFLink_LoadWebLinks.\n          link_index  -   Zero-based index for the link.\n          rect_index  -   Zero-based index for a rectangle.\n          left        -   Pointer to a double value receiving the rectangle\n                          left boundary.\n          top         -   Pointer to a double value receiving the rectangle\n                          top boundary.\n          right       -   Pointer to a double value receiving the rectangle\n                          right boundary.\n          bottom      -   Pointer to a double value receiving the rectangle\n                          bottom boundary.\n Return Value:\n          On success, return TRUE and fill in |left|, |top|, |right|, and\n          |bottom|. If |link_page| is invalid or if |link_index| does not\n          correspond to a valid link, then return FALSE, and the out\n          parameters remain unmodified.\n"]
1974    pub fn FPDFLink_GetRect(
1975        link_page: FPDF_PAGELINK,
1976        link_index: ::std::os::raw::c_int,
1977        rect_index: ::std::os::raw::c_int,
1978        left: *mut f64,
1979        top: *mut f64,
1980        right: *mut f64,
1981        bottom: *mut f64,
1982    ) -> FPDF_BOOL;
1983}
1984unsafe extern "C" {
1985    #[doc = " Experimental API.\n Function: FPDFLink_GetTextRange\n          Fetch the start char index and char count for a link.\n Parameters:\n          link_page         -   Handle returned by FPDFLink_LoadWebLinks.\n          link_index        -   Zero-based index for the link.\n          start_char_index  -   pointer to int receiving the start char index\n          char_count        -   pointer to int receiving the char count\n Return Value:\n          On success, return TRUE and fill in |start_char_index| and\n          |char_count|. if |link_page| is invalid or if |link_index| does\n          not correspond to a valid link, then return FALSE and the out\n          parameters remain unmodified.\n"]
1986    pub fn FPDFLink_GetTextRange(
1987        link_page: FPDF_PAGELINK,
1988        link_index: ::std::os::raw::c_int,
1989        start_char_index: *mut ::std::os::raw::c_int,
1990        char_count: *mut ::std::os::raw::c_int,
1991    ) -> FPDF_BOOL;
1992}
1993unsafe extern "C" {
1994    #[doc = " Function: FPDFLink_CloseWebLinks\n          Release resources used by weblink feature.\n Parameters:\n          link_page   -   Handle returned by FPDFLink_LoadWebLinks.\n Return Value:\n          None.\n"]
1995    pub fn FPDFLink_CloseWebLinks(link_page: FPDF_PAGELINK);
1996}
1997pub const FPDF_FILEIDTYPE_FILEIDTYPE_PERMANENT: FPDF_FILEIDTYPE = 0;
1998pub const FPDF_FILEIDTYPE_FILEIDTYPE_CHANGING: FPDF_FILEIDTYPE = 1;
1999#[doc = " The file identifier entry type. See section 14.4 \"File Identifiers\" of the\n ISO 32000-1:2008 spec."]
2000pub type FPDF_FILEIDTYPE = ::std::os::raw::c_uint;
2001unsafe extern "C" {
2002    #[doc = " Get the first child of |bookmark|, or the first top-level bookmark item.\n\n   document - handle to the document.\n   bookmark - handle to the current bookmark. Pass NULL for the first top\n              level item.\n\n Returns a handle to the first child of |bookmark| or the first top-level\n bookmark item. NULL if no child or top-level bookmark found.\n Note that another name for the bookmarks is the document outline, as\n described in ISO 32000-1:2008, section 12.3.3."]
2003    pub fn FPDFBookmark_GetFirstChild(document: FPDF_DOCUMENT, bookmark: FPDF_BOOKMARK) -> FPDF_BOOKMARK;
2004}
2005unsafe extern "C" {
2006    #[doc = " Get the next sibling of |bookmark|.\n\n   document - handle to the document.\n   bookmark - handle to the current bookmark.\n\n Returns a handle to the next sibling of |bookmark|, or NULL if this is the\n last bookmark at this level.\n\n Note that the caller is responsible for handling circular bookmark\n references, as may arise from malformed documents."]
2007    pub fn FPDFBookmark_GetNextSibling(document: FPDF_DOCUMENT, bookmark: FPDF_BOOKMARK) -> FPDF_BOOKMARK;
2008}
2009unsafe extern "C" {
2010    #[doc = " Get the title of |bookmark|.\n\n   bookmark - handle to the bookmark.\n   buffer   - buffer for the title. May be NULL.\n   buflen   - the length of the buffer in bytes. May be 0.\n\n Returns the number of bytes in the title, including the terminating NUL\n character. The number of bytes is returned regardless of the |buffer| and\n |buflen| parameters.\n\n Regardless of the platform, the |buffer| is always in UTF-16LE encoding. The\n string is terminated by a UTF16 NUL character. If |buflen| is less than the\n required length, or |buffer| is NULL, |buffer| will not be modified."]
2011    pub fn FPDFBookmark_GetTitle(
2012        bookmark: FPDF_BOOKMARK,
2013        buffer: *mut ::std::os::raw::c_void,
2014        buflen: ::std::os::raw::c_ulong,
2015    ) -> ::std::os::raw::c_ulong;
2016}
2017unsafe extern "C" {
2018    #[doc = " Experimental API.\n Get the number of chlidren of |bookmark|.\n\n   bookmark - handle to the bookmark.\n\n Returns a signed integer that represents the number of sub-items the given\n bookmark has. If the value is positive, child items shall be shown by default\n (open state). If the value is negative, child items shall be hidden by\n default (closed state). Please refer to PDF 32000-1:2008, Table 153.\n Returns 0 if the bookmark has no children or is invalid."]
2019    pub fn FPDFBookmark_GetCount(bookmark: FPDF_BOOKMARK) -> ::std::os::raw::c_int;
2020}
2021unsafe extern "C" {
2022    #[doc = " Find the bookmark with |title| in |document|.\n\n   document - handle to the document.\n   title    - the UTF-16LE encoded Unicode title for which to search.\n\n Returns the handle to the bookmark, or NULL if |title| can't be found.\n\n FPDFBookmark_Find() will always return the first bookmark found even if\n multiple bookmarks have the same |title|."]
2023    pub fn FPDFBookmark_Find(document: FPDF_DOCUMENT, title: FPDF_WIDESTRING) -> FPDF_BOOKMARK;
2024}
2025unsafe extern "C" {
2026    #[doc = " Get the destination associated with |bookmark|.\n\n   document - handle to the document.\n   bookmark - handle to the bookmark.\n\n Returns the handle to the destination data, or NULL if no destination is\n associated with |bookmark|."]
2027    pub fn FPDFBookmark_GetDest(document: FPDF_DOCUMENT, bookmark: FPDF_BOOKMARK) -> FPDF_DEST;
2028}
2029unsafe extern "C" {
2030    #[doc = " Get the action associated with |bookmark|.\n\n   bookmark - handle to the bookmark.\n\n Returns the handle to the action data, or NULL if no action is associated\n with |bookmark|.\n If this function returns a valid handle, it is valid as long as |bookmark| is\n valid.\n If this function returns NULL, FPDFBookmark_GetDest() should be called to get\n the |bookmark| destination data."]
2031    pub fn FPDFBookmark_GetAction(bookmark: FPDF_BOOKMARK) -> FPDF_ACTION;
2032}
2033unsafe extern "C" {
2034    #[doc = " Get the type of |action|.\n\n   action - handle to the action.\n\n Returns one of:\n   PDFACTION_UNSUPPORTED\n   PDFACTION_GOTO\n   PDFACTION_REMOTEGOTO\n   PDFACTION_URI\n   PDFACTION_LAUNCH"]
2035    pub fn FPDFAction_GetType(action: FPDF_ACTION) -> ::std::os::raw::c_ulong;
2036}
2037unsafe extern "C" {
2038    #[doc = " Get the destination of |action|.\n\n   document - handle to the document.\n   action   - handle to the action. |action| must be a |PDFACTION_GOTO| or\n              |PDFACTION_REMOTEGOTO|.\n\n Returns a handle to the destination data, or NULL on error, typically\n because the arguments were bad or the action was of the wrong type.\n\n In the case of |PDFACTION_REMOTEGOTO|, you must first call\n FPDFAction_GetFilePath(), then load the document at that path, then pass\n the document handle from that document as |document| to FPDFAction_GetDest()."]
2039    pub fn FPDFAction_GetDest(document: FPDF_DOCUMENT, action: FPDF_ACTION) -> FPDF_DEST;
2040}
2041unsafe extern "C" {
2042    #[doc = " Get the file path of |action|.\n\n   action - handle to the action. |action| must be a |PDFACTION_LAUNCH| or\n            |PDFACTION_REMOTEGOTO|.\n   buffer - a buffer for output the path string. May be NULL.\n   buflen - the length of the buffer, in bytes. May be 0.\n\n Returns the number of bytes in the file path, including the trailing NUL\n character, or 0 on error, typically because the arguments were bad or the\n action was of the wrong type.\n\n Regardless of the platform, the |buffer| is always in UTF-8 encoding.\n If |buflen| is less than the returned length, or |buffer| is NULL, |buffer|\n will not be modified."]
2043    pub fn FPDFAction_GetFilePath(
2044        action: FPDF_ACTION,
2045        buffer: *mut ::std::os::raw::c_void,
2046        buflen: ::std::os::raw::c_ulong,
2047    ) -> ::std::os::raw::c_ulong;
2048}
2049unsafe extern "C" {
2050    #[doc = " Get the URI path of |action|.\n\n   document - handle to the document.\n   action   - handle to the action. Must be a |PDFACTION_URI|.\n   buffer   - a buffer for the path string. May be NULL.\n   buflen   - the length of the buffer, in bytes. May be 0.\n\n Returns the number of bytes in the URI path, including the trailing NUL\n character, or 0 on error, typically because the arguments were bad or the\n action was of the wrong type.\n\n The |buffer| may contain badly encoded data. The caller should validate the\n output. e.g. Check to see if it is UTF-8.\n\n If |buflen| is less than the returned length, or |buffer| is NULL, |buffer|\n will not be modified.\n\n Historically, the documentation for this API claimed |buffer| is always\n encoded in 7-bit ASCII, but did not actually enforce it.\n https://pdfium.googlesource.com/pdfium.git/+/d609e84cee2e14a18333247485af91df48a40592\n added that enforcement, but that did not work well for real world PDFs that\n used UTF-8. As of this writing, this API reverted back to its original\n behavior prior to commit d609e84cee."]
2051    pub fn FPDFAction_GetURIPath(
2052        document: FPDF_DOCUMENT,
2053        action: FPDF_ACTION,
2054        buffer: *mut ::std::os::raw::c_void,
2055        buflen: ::std::os::raw::c_ulong,
2056    ) -> ::std::os::raw::c_ulong;
2057}
2058unsafe extern "C" {
2059    #[doc = " Get the page index of |dest|.\n\n   document - handle to the document.\n   dest     - handle to the destination.\n\n Returns the 0-based page index containing |dest|. Returns -1 on error."]
2060    pub fn FPDFDest_GetDestPageIndex(document: FPDF_DOCUMENT, dest: FPDF_DEST) -> ::std::os::raw::c_int;
2061}
2062unsafe extern "C" {
2063    #[doc = " Experimental API.\n Get the view (fit type) specified by |dest|.\n\n   dest         - handle to the destination.\n   pNumParams   - receives the number of view parameters, which is at most 4.\n   pParams      - buffer to write the view parameters. Must be at least 4\n                  FS_FLOATs long.\n Returns one of the PDFDEST_VIEW_* constants, PDFDEST_VIEW_UNKNOWN_MODE if\n |dest| does not specify a view."]
2064    pub fn FPDFDest_GetView(
2065        dest: FPDF_DEST,
2066        pNumParams: *mut ::std::os::raw::c_ulong,
2067        pParams: *mut FS_FLOAT,
2068    ) -> ::std::os::raw::c_ulong;
2069}
2070unsafe extern "C" {
2071    #[doc = " Get the (x, y, zoom) location of |dest| in the destination page, if the\n destination is in [page /XYZ x y zoom] syntax.\n\n   dest       - handle to the destination.\n   hasXVal    - out parameter; true if the x value is not null\n   hasYVal    - out parameter; true if the y value is not null\n   hasZoomVal - out parameter; true if the zoom value is not null\n   x          - out parameter; the x coordinate, in page coordinates.\n   y          - out parameter; the y coordinate, in page coordinates.\n   zoom       - out parameter; the zoom value.\n Returns TRUE on successfully reading the /XYZ value.\n\n Note the [x, y, zoom] values are only set if the corresponding hasXVal,\n hasYVal or hasZoomVal flags are true."]
2072    pub fn FPDFDest_GetLocationInPage(
2073        dest: FPDF_DEST,
2074        hasXVal: *mut FPDF_BOOL,
2075        hasYVal: *mut FPDF_BOOL,
2076        hasZoomVal: *mut FPDF_BOOL,
2077        x: *mut FS_FLOAT,
2078        y: *mut FS_FLOAT,
2079        zoom: *mut FS_FLOAT,
2080    ) -> FPDF_BOOL;
2081}
2082unsafe extern "C" {
2083    #[doc = " Find a link at point (|x|,|y|) on |page|.\n\n   page - handle to the document page.\n   x    - the x coordinate, in the page coordinate system.\n   y    - the y coordinate, in the page coordinate system.\n\n Returns a handle to the link, or NULL if no link found at the given point.\n\n You can convert coordinates from screen coordinates to page coordinates using\n FPDF_DeviceToPage()."]
2084    pub fn FPDFLink_GetLinkAtPoint(page: FPDF_PAGE, x: f64, y: f64) -> FPDF_LINK;
2085}
2086unsafe extern "C" {
2087    #[doc = " Find the Z-order of link at point (|x|,|y|) on |page|.\n\n   page - handle to the document page.\n   x    - the x coordinate, in the page coordinate system.\n   y    - the y coordinate, in the page coordinate system.\n\n Returns the Z-order of the link, or -1 if no link found at the given point.\n Larger Z-order numbers are closer to the front.\n\n You can convert coordinates from screen coordinates to page coordinates using\n FPDF_DeviceToPage()."]
2088    pub fn FPDFLink_GetLinkZOrderAtPoint(page: FPDF_PAGE, x: f64, y: f64) -> ::std::os::raw::c_int;
2089}
2090unsafe extern "C" {
2091    #[doc = " Get destination info for |link|.\n\n   document - handle to the document.\n   link     - handle to the link.\n\n Returns a handle to the destination, or NULL if there is no destination\n associated with the link. In this case, you should call FPDFLink_GetAction()\n to retrieve the action associated with |link|."]
2092    pub fn FPDFLink_GetDest(document: FPDF_DOCUMENT, link: FPDF_LINK) -> FPDF_DEST;
2093}
2094unsafe extern "C" {
2095    #[doc = " Get action info for |link|.\n\n   link - handle to the link.\n\n Returns a handle to the action associated to |link|, or NULL if no action.\n If this function returns a valid handle, it is valid as long as |link| is\n valid."]
2096    pub fn FPDFLink_GetAction(link: FPDF_LINK) -> FPDF_ACTION;
2097}
2098unsafe extern "C" {
2099    #[doc = " Enumerates all the link annotations in |page|.\n\n   page       - handle to the page.\n   start_pos  - the start position, should initially be 0 and is updated with\n                the next start position on return.\n   link_annot - the link handle for |startPos|.\n\n Returns TRUE on success."]
2100    pub fn FPDFLink_Enumerate(
2101        page: FPDF_PAGE,
2102        start_pos: *mut ::std::os::raw::c_int,
2103        link_annot: *mut FPDF_LINK,
2104    ) -> FPDF_BOOL;
2105}
2106unsafe extern "C" {
2107    #[doc = " Experimental API.\n Gets FPDF_ANNOTATION object for |link_annot|.\n\n   page       - handle to the page in which FPDF_LINK object is present.\n   link_annot - handle to link annotation.\n\n Returns FPDF_ANNOTATION from the FPDF_LINK and NULL on failure,\n if the input link annot or page is NULL."]
2108    pub fn FPDFLink_GetAnnot(page: FPDF_PAGE, link_annot: FPDF_LINK) -> FPDF_ANNOTATION;
2109}
2110unsafe extern "C" {
2111    #[doc = " Get the rectangle for |link_annot|.\n\n   link_annot - handle to the link annotation.\n   rect       - the annotation rectangle.\n\n Returns true on success."]
2112    pub fn FPDFLink_GetAnnotRect(link_annot: FPDF_LINK, rect: *mut FS_RECTF) -> FPDF_BOOL;
2113}
2114unsafe extern "C" {
2115    #[doc = " Get the count of quadrilateral points to the |link_annot|.\n\n   link_annot - handle to the link annotation.\n\n Returns the count of quadrilateral points."]
2116    pub fn FPDFLink_CountQuadPoints(link_annot: FPDF_LINK) -> ::std::os::raw::c_int;
2117}
2118unsafe extern "C" {
2119    #[doc = " Get the quadrilateral points for the specified |quad_index| in |link_annot|.\n\n   link_annot  - handle to the link annotation.\n   quad_index  - the specified quad point index.\n   quad_points - receives the quadrilateral points.\n\n Returns true on success."]
2120    pub fn FPDFLink_GetQuadPoints(
2121        link_annot: FPDF_LINK,
2122        quad_index: ::std::os::raw::c_int,
2123        quad_points: *mut FS_QUADPOINTSF,
2124    ) -> FPDF_BOOL;
2125}
2126unsafe extern "C" {
2127    #[doc = " Experimental API\n Gets an additional-action from |page|.\n\n   page      - handle to the page, as returned by FPDF_LoadPage().\n   aa_type   - the type of the page object's addtional-action, defined\n               in public/fpdf_formfill.h\n\n   Returns the handle to the action data, or NULL if there is no\n   additional-action of type |aa_type|.\n   If this function returns a valid handle, it is valid as long as |page| is\n   valid."]
2128    pub fn FPDF_GetPageAAction(page: FPDF_PAGE, aa_type: ::std::os::raw::c_int) -> FPDF_ACTION;
2129}
2130unsafe extern "C" {
2131    #[doc = " Experimental API.\n Get the file identifer defined in the trailer of |document|.\n\n   document - handle to the document.\n   id_type  - the file identifier type to retrieve.\n   buffer   - a buffer for the file identifier. May be NULL.\n   buflen   - the length of the buffer, in bytes. May be 0.\n\n Returns the number of bytes in the file identifier, including the NUL\n terminator.\n\n The |buffer| is always a byte string. The |buffer| is followed by a NUL\n terminator.  If |buflen| is less than the returned length, or |buffer| is\n NULL, |buffer| will not be modified."]
2132    pub fn FPDF_GetFileIdentifier(
2133        document: FPDF_DOCUMENT,
2134        id_type: FPDF_FILEIDTYPE,
2135        buffer: *mut ::std::os::raw::c_void,
2136        buflen: ::std::os::raw::c_ulong,
2137    ) -> ::std::os::raw::c_ulong;
2138}
2139unsafe extern "C" {
2140    #[doc = " Get meta-data |tag| content from |document|.\n\n   document - handle to the document.\n   tag      - the tag to retrieve. The tag can be one of:\n                Title, Author, Subject, Keywords, Creator, Producer,\n                CreationDate, or ModDate.\n              For detailed explanations of these tags and their respective\n              values, please refer to PDF Reference 1.6, section 10.2.1,\n              'Document Information Dictionary'.\n   buffer   - a buffer for the tag. May be NULL.\n   buflen   - the length of the buffer, in bytes. May be 0.\n\n Returns the number of bytes in the tag, including trailing zeros.\n\n The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two\n bytes of zeros indicating the end of the string.  If |buflen| is less than\n the returned length, or |buffer| is NULL, |buffer| will not be modified.\n\n For linearized files, FPDFAvail_IsFormAvail must be called before this, and\n it must have returned PDF_FORM_AVAIL or PDF_FORM_NOTEXIST. Before that, there\n is no guarantee the metadata has been loaded."]
2141    pub fn FPDF_GetMetaText(
2142        document: FPDF_DOCUMENT,
2143        tag: FPDF_BYTESTRING,
2144        buffer: *mut ::std::os::raw::c_void,
2145        buflen: ::std::os::raw::c_ulong,
2146    ) -> ::std::os::raw::c_ulong;
2147}
2148unsafe extern "C" {
2149    #[doc = " Get the page label for |page_index| from |document|.\n\n   document    - handle to the document.\n   page_index  - the 0-based index of the page.\n   buffer      - a buffer for the page label. May be NULL.\n   buflen      - the length of the buffer, in bytes. May be 0.\n\n Returns the number of bytes in the page label, including trailing zeros.\n\n The |buffer| is always encoded in UTF-16LE. The |buffer| is followed by two\n bytes of zeros indicating the end of the string.  If |buflen| is less than\n the returned length, or |buffer| is NULL, |buffer| will not be modified."]
2150    pub fn FPDF_GetPageLabel(
2151        document: FPDF_DOCUMENT,
2152        page_index: ::std::os::raw::c_int,
2153        buffer: *mut ::std::os::raw::c_void,
2154        buflen: ::std::os::raw::c_ulong,
2155    ) -> ::std::os::raw::c_ulong;
2156}
2157#[doc = " 7.18.1.2 Minimum-width integer types"]
2158pub type int_least8_t = i8;
2159pub type int_least16_t = i16;
2160pub type int_least32_t = i32;
2161pub type int_least64_t = i64;
2162pub type uint_least8_t = u8;
2163pub type uint_least16_t = u16;
2164pub type uint_least32_t = u32;
2165pub type uint_least64_t = u64;
2166#[doc = " 7.18.1.3 Fastest-width integer types"]
2167pub type int_fast8_t = i8;
2168pub type int_fast16_t = i16;
2169pub type int_fast32_t = i32;
2170pub type int_fast64_t = i64;
2171pub type uint_fast8_t = u8;
2172pub type uint_fast16_t = u16;
2173pub type uint_fast32_t = u32;
2174pub type uint_fast64_t = u64;
2175pub type __int8_t = ::std::os::raw::c_schar;
2176pub type __uint8_t = ::std::os::raw::c_uchar;
2177pub type __int16_t = ::std::os::raw::c_short;
2178pub type __uint16_t = ::std::os::raw::c_ushort;
2179pub type __int32_t = ::std::os::raw::c_int;
2180pub type __uint32_t = ::std::os::raw::c_uint;
2181pub type __int64_t = ::std::os::raw::c_longlong;
2182pub type __uint64_t = ::std::os::raw::c_ulonglong;
2183pub type __darwin_intptr_t = ::std::os::raw::c_long;
2184pub type __darwin_natural_t = ::std::os::raw::c_uint;
2185#[doc = " The rune type below is declared to be an ``int'' instead of the more natural\n ``unsigned long'' or ``long''.  Two things are happening here.  It is not\n unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,\n it looks like 10646 will be a 31 bit standard.  This means that if your\n ints cannot hold 32 bits, you will be in trouble.  The reason an int was\n chosen over a long is that the is*() and to*() routines take ints (says\n ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it\n here, you lose a bit of ANSI conformance, but your programs will still\n work.\n\n NOTE: rune_t is not covered by ANSI nor other standards, and should not\n be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and\n rune_t must be the same type.  Also wint_t must be no narrower than\n wchar_t, and should also be able to hold all members of the largest\n character set plus one extra value (WEOF). wint_t must be at least 16 bits."]
2186pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
2187#[doc = " mbstate_t is an opaque object to keep conversion state, during multibyte\n stream conversions.  The content must not be referenced by user programs."]
2188#[repr(C)]
2189#[derive(Copy, Clone)]
2190pub union __mbstate_t {
2191    pub __mbstate8: [::std::os::raw::c_char; 128usize],
2192    #[doc = " for alignment"]
2193    pub _mbstateL: ::std::os::raw::c_longlong,
2194}
2195#[doc = " mbstate_t is an opaque object to keep conversion state, during multibyte\n stream conversions.  The content must not be referenced by user programs."]
2196pub type __darwin_mbstate_t = __mbstate_t;
2197pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
2198pub type __darwin_size_t = ::std::os::raw::c_ulong;
2199pub type __darwin_va_list = __builtin_va_list;
2200pub type __darwin_wchar_t = ::std::os::raw::c_int;
2201pub type __darwin_rune_t = __darwin_wchar_t;
2202pub type __darwin_wint_t = ::std::os::raw::c_int;
2203pub type __darwin_clock_t = ::std::os::raw::c_ulong;
2204pub type __darwin_socklen_t = __uint32_t;
2205pub type __darwin_ssize_t = ::std::os::raw::c_long;
2206pub type __darwin_time_t = ::std::os::raw::c_long;
2207pub type __darwin_blkcnt_t = __int64_t;
2208pub type __darwin_blksize_t = __int32_t;
2209pub type __darwin_dev_t = __int32_t;
2210pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
2211pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
2212pub type __darwin_gid_t = __uint32_t;
2213pub type __darwin_id_t = __uint32_t;
2214pub type __darwin_ino64_t = __uint64_t;
2215pub type __darwin_ino_t = __darwin_ino64_t;
2216pub type __darwin_mach_port_name_t = __darwin_natural_t;
2217pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
2218pub type __darwin_mode_t = __uint16_t;
2219pub type __darwin_off_t = __int64_t;
2220pub type __darwin_pid_t = __int32_t;
2221pub type __darwin_sigset_t = __uint32_t;
2222pub type __darwin_suseconds_t = __int32_t;
2223pub type __darwin_uid_t = __uint32_t;
2224pub type __darwin_useconds_t = __uint32_t;
2225pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
2226pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
2227#[repr(C)]
2228#[derive(Debug, Copy, Clone)]
2229pub struct __darwin_pthread_handler_rec {
2230    #[doc = " Routine to call"]
2231    pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2232    #[doc = " Argument to pass"]
2233    pub __arg: *mut ::std::os::raw::c_void,
2234    pub __next: *mut __darwin_pthread_handler_rec,
2235}
2236#[repr(C)]
2237#[derive(Debug, Copy, Clone)]
2238pub struct _opaque_pthread_attr_t {
2239    pub __sig: ::std::os::raw::c_long,
2240    pub __opaque: [::std::os::raw::c_char; 56usize],
2241}
2242#[repr(C)]
2243#[derive(Debug, Copy, Clone)]
2244pub struct _opaque_pthread_cond_t {
2245    pub __sig: ::std::os::raw::c_long,
2246    pub __opaque: [::std::os::raw::c_char; 40usize],
2247}
2248#[repr(C)]
2249#[derive(Debug, Copy, Clone)]
2250pub struct _opaque_pthread_condattr_t {
2251    pub __sig: ::std::os::raw::c_long,
2252    pub __opaque: [::std::os::raw::c_char; 8usize],
2253}
2254#[repr(C)]
2255#[derive(Debug, Copy, Clone)]
2256pub struct _opaque_pthread_mutex_t {
2257    pub __sig: ::std::os::raw::c_long,
2258    pub __opaque: [::std::os::raw::c_char; 56usize],
2259}
2260#[repr(C)]
2261#[derive(Debug, Copy, Clone)]
2262pub struct _opaque_pthread_mutexattr_t {
2263    pub __sig: ::std::os::raw::c_long,
2264    pub __opaque: [::std::os::raw::c_char; 8usize],
2265}
2266#[repr(C)]
2267#[derive(Debug, Copy, Clone)]
2268pub struct _opaque_pthread_once_t {
2269    pub __sig: ::std::os::raw::c_long,
2270    pub __opaque: [::std::os::raw::c_char; 8usize],
2271}
2272#[repr(C)]
2273#[derive(Debug, Copy, Clone)]
2274pub struct _opaque_pthread_rwlock_t {
2275    pub __sig: ::std::os::raw::c_long,
2276    pub __opaque: [::std::os::raw::c_char; 192usize],
2277}
2278#[repr(C)]
2279#[derive(Debug, Copy, Clone)]
2280pub struct _opaque_pthread_rwlockattr_t {
2281    pub __sig: ::std::os::raw::c_long,
2282    pub __opaque: [::std::os::raw::c_char; 16usize],
2283}
2284#[repr(C)]
2285#[derive(Debug, Copy, Clone)]
2286pub struct _opaque_pthread_t {
2287    pub __sig: ::std::os::raw::c_long,
2288    pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
2289    pub __opaque: [::std::os::raw::c_char; 8176usize],
2290}
2291pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
2292pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
2293pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
2294pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
2295pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
2296pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
2297pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
2298pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
2299pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
2300pub type __darwin_pthread_t = *mut _opaque_pthread_t;
2301pub type intmax_t = ::std::os::raw::c_long;
2302pub type uintmax_t = ::std::os::raw::c_ulong;
2303#[repr(C)]
2304#[derive(Debug, Copy, Clone)]
2305pub struct FPDF_IMAGEOBJ_METADATA {
2306    #[doc = " The image width in pixels."]
2307    pub width: ::std::os::raw::c_uint,
2308    #[doc = " The image height in pixels."]
2309    pub height: ::std::os::raw::c_uint,
2310    #[doc = " The image's horizontal pixel-per-inch."]
2311    pub horizontal_dpi: f32,
2312    #[doc = " The image's vertical pixel-per-inch."]
2313    pub vertical_dpi: f32,
2314    #[doc = " The number of bits used to represent each pixel."]
2315    pub bits_per_pixel: ::std::os::raw::c_uint,
2316    #[doc = " The image's colorspace. See above for the list of FPDF_COLORSPACE_*."]
2317    pub colorspace: ::std::os::raw::c_int,
2318    #[doc = " The image's marked content ID. Useful for pairing with associated alt-text.\n A value of -1 indicates no ID."]
2319    pub marked_content_id: ::std::os::raw::c_int,
2320}
2321unsafe extern "C" {
2322    #[doc = " Create a new PDF document.\n\n Returns a handle to a new document, or NULL on failure."]
2323    pub fn FPDF_CreateNewDocument() -> FPDF_DOCUMENT;
2324}
2325unsafe extern "C" {
2326    #[doc = " Create a new PDF page.\n\n   document   - handle to document.\n   page_index - suggested 0-based index of the page to create. If it is larger\n                than document's current last index(L), the created page index\n                is the next available index -- L+1.\n   width      - the page width in points.\n   height     - the page height in points.\n\n Returns the handle to the new page or NULL on failure.\n\n The page should be closed with FPDF_ClosePage() when finished as\n with any other page in the document."]
2327    pub fn FPDFPage_New(
2328        document: FPDF_DOCUMENT,
2329        page_index: ::std::os::raw::c_int,
2330        width: f64,
2331        height: f64,
2332    ) -> FPDF_PAGE;
2333}
2334unsafe extern "C" {
2335    #[doc = " Delete the page at |page_index|.\n\n   document   - handle to document.\n   page_index - the index of the page to delete."]
2336    pub fn FPDFPage_Delete(document: FPDF_DOCUMENT, page_index: ::std::os::raw::c_int);
2337}
2338unsafe extern "C" {
2339    #[doc = " Experimental API.\n Move the given pages to a new index position.\n\n  page_indices     - the ordered list of pages to move. No duplicates allowed.\n  page_indices_len - the number of elements in |page_indices|\n  dest_page_index  - the new index position to which the pages in\n                     |page_indices| are moved.\n\n Returns TRUE on success. If it returns FALSE, the document may be left in an\n indeterminate state.\n\n Example: The PDF document starts out with pages [A, B, C, D], with indices\n [0, 1, 2, 3].\n\n >  Move(doc, [3, 2], 2, 1); // returns true\n >  // The document has pages [A, D, C, B].\n >\n >  Move(doc, [0, 4, 3], 3, 1); // returns false\n >  // Returned false because index 4 is out of range.\n >\n >  Move(doc, [0, 3, 1], 3, 2); // returns false\n >  // Returned false because index 2 is out of range for 3 page indices.\n >\n >  Move(doc, [2, 2], 2, 0); // returns false\n >  // Returned false because [2, 2] contains duplicates.\n"]
2340    pub fn FPDF_MovePages(
2341        document: FPDF_DOCUMENT,
2342        page_indices: *const ::std::os::raw::c_int,
2343        page_indices_len: ::std::os::raw::c_ulong,
2344        dest_page_index: ::std::os::raw::c_int,
2345    ) -> FPDF_BOOL;
2346}
2347unsafe extern "C" {
2348    #[doc = " Get the rotation of |page|.\n\n   page - handle to a page\n\n Returns one of the following indicating the page rotation:\n   0 - No rotation.\n   1 - Rotated 90 degrees clockwise.\n   2 - Rotated 180 degrees clockwise.\n   3 - Rotated 270 degrees clockwise."]
2349    pub fn FPDFPage_GetRotation(page: FPDF_PAGE) -> ::std::os::raw::c_int;
2350}
2351unsafe extern "C" {
2352    #[doc = " Set rotation for |page|.\n\n   page   - handle to a page.\n   rotate - the rotation value, one of:\n              0 - No rotation.\n              1 - Rotated 90 degrees clockwise.\n              2 - Rotated 180 degrees clockwise.\n              3 - Rotated 270 degrees clockwise."]
2353    pub fn FPDFPage_SetRotation(page: FPDF_PAGE, rotate: ::std::os::raw::c_int);
2354}
2355unsafe extern "C" {
2356    #[doc = " Insert |page_object| into |page|.\n\n   page        - handle to a page\n   page_object - handle to a page object. The |page_object| will be\n                 automatically freed."]
2357    pub fn FPDFPage_InsertObject(page: FPDF_PAGE, page_object: FPDF_PAGEOBJECT);
2358}
2359unsafe extern "C" {
2360    #[doc = " Insert |page_object| into |page| at the specified |index|.\n\n   page        - handle to a page\n   page_object - handle to a page object as previously obtained by\n                 FPDFPageObj_CreateNew{Path|Rect}() or\n                 FPDFPageObj_New{Text|Image}Obj(). Ownership of the object\n                 is transferred back to PDFium.\n   index       - the index position to insert the object at. If index equals\n                 the current object count, the object will be appended to the\n                 end. If index is greater than the object count, the function\n                 will fail and return false.\n\n Returns true if successful."]
2361    pub fn FPDFPage_InsertObjectAtIndex(page: FPDF_PAGE, page_object: FPDF_PAGEOBJECT, index: usize) -> FPDF_BOOL;
2362}
2363unsafe extern "C" {
2364    #[doc = " Experimental API.\n Remove |page_object| from |page|.\n\n   page        - handle to a page\n   page_object - handle to a page object to be removed.\n\n Returns TRUE on success.\n\n Ownership is transferred to the caller. Call FPDFPageObj_Destroy() to free\n it.\n Note that when removing a |page_object| of type FPDF_PAGEOBJ_TEXT, all\n FPDF_TEXTPAGE handles for |page| are no longer valid."]
2365    pub fn FPDFPage_RemoveObject(page: FPDF_PAGE, page_object: FPDF_PAGEOBJECT) -> FPDF_BOOL;
2366}
2367unsafe extern "C" {
2368    #[doc = " Get number of page objects inside |page|.\n\n   page - handle to a page.\n\n Returns the number of objects in |page|."]
2369    pub fn FPDFPage_CountObjects(page: FPDF_PAGE) -> ::std::os::raw::c_int;
2370}
2371unsafe extern "C" {
2372    #[doc = " Get object in |page| at |index|.\n\n   page  - handle to a page.\n   index - the index of a page object.\n\n Returns the handle to the page object, or NULL on failed."]
2373    pub fn FPDFPage_GetObject(page: FPDF_PAGE, index: ::std::os::raw::c_int) -> FPDF_PAGEOBJECT;
2374}
2375unsafe extern "C" {
2376    #[doc = " Checks if |page| contains transparency.\n\n   page - handle to a page.\n\n Returns TRUE if |page| contains transparency."]
2377    pub fn FPDFPage_HasTransparency(page: FPDF_PAGE) -> FPDF_BOOL;
2378}
2379unsafe extern "C" {
2380    #[doc = " Generate the content of |page|.\n\n   page - handle to a page.\n\n Returns TRUE on success.\n\n Before you save the page to a file, or reload the page, you must call\n |FPDFPage_GenerateContent| or any changes to |page| will be lost."]
2381    pub fn FPDFPage_GenerateContent(page: FPDF_PAGE) -> FPDF_BOOL;
2382}
2383unsafe extern "C" {
2384    #[doc = " Destroy |page_object| by releasing its resources. |page_object| must have\n been created by FPDFPageObj_CreateNew{Path|Rect}() or\n FPDFPageObj_New{Text|Image}Obj(). This function must be called on\n newly-created objects if they are not added to a page through\n FPDFPage_InsertObject() or to an annotation through FPDFAnnot_AppendObject().\n\n   page_object - handle to a page object."]
2385    pub fn FPDFPageObj_Destroy(page_object: FPDF_PAGEOBJECT);
2386}
2387unsafe extern "C" {
2388    #[doc = " Checks if |page_object| contains transparency.\n\n   page_object - handle to a page object.\n\n Returns TRUE if |page_object| contains transparency."]
2389    pub fn FPDFPageObj_HasTransparency(page_object: FPDF_PAGEOBJECT) -> FPDF_BOOL;
2390}
2391unsafe extern "C" {
2392    #[doc = " Get type of |page_object|.\n\n   page_object - handle to a page object.\n\n Returns one of the FPDF_PAGEOBJ_* values on success, FPDF_PAGEOBJ_UNKNOWN on\n error."]
2393    pub fn FPDFPageObj_GetType(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2394}
2395unsafe extern "C" {
2396    #[doc = " Experimental API.\n Gets active state for |page_object| within page.\n\n   page_object - handle to a page object.\n   active      - pointer to variable that will receive if the page object is\n                 active. This is a required parameter. Not filled if FALSE\n                 is returned.\n\n For page objects where |active| is filled with FALSE, the |page_object| is\n treated as if it wasn't in the document even though it is still held\n internally.\n\n Returns TRUE if the operation succeeded, FALSE if it failed."]
2397    pub fn FPDFPageObj_GetIsActive(page_object: FPDF_PAGEOBJECT, active: *mut FPDF_BOOL) -> FPDF_BOOL;
2398}
2399unsafe extern "C" {
2400    #[doc = " Experimental API.\n Sets if |page_object| is active within page.\n\n   page_object - handle to a page object.\n   active      - a boolean specifying if the object is active.\n\n Returns TRUE on success.\n\n Page objects all start in the active state by default, and remain in that\n state unless this function is called.\n\n When |active| is false, this makes the |page_object| be treated as if it\n wasn't in the document even though it is still held internally."]
2401    pub fn FPDFPageObj_SetIsActive(page_object: FPDF_PAGEOBJECT, active: FPDF_BOOL) -> FPDF_BOOL;
2402}
2403unsafe extern "C" {
2404    #[doc = " Transform |page_object| by the given matrix.\n\n   page_object - handle to a page object.\n   a           - matrix value.\n   b           - matrix value.\n   c           - matrix value.\n   d           - matrix value.\n   e           - matrix value.\n   f           - matrix value.\n\n The matrix is composed as:\n   |a c e|\n   |b d f|\n and can be used to scale, rotate, shear and translate the |page_object|."]
2405    pub fn FPDFPageObj_Transform(page_object: FPDF_PAGEOBJECT, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64);
2406}
2407unsafe extern "C" {
2408    #[doc = " Experimental API.\n Transform |page_object| by the given matrix.\n\n   page_object - handle to a page object.\n   matrix      - the transform matrix.\n\n Returns TRUE on success.\n\n This can be used to scale, rotate, shear and translate the |page_object|.\n It is an improved version of FPDFPageObj_Transform() that does not do\n unnecessary double to float conversions, and only uses 1 parameter for the\n matrix. It also returns whether the operation succeeded or not."]
2409    pub fn FPDFPageObj_TransformF(page_object: FPDF_PAGEOBJECT, matrix: *const FS_MATRIX) -> FPDF_BOOL;
2410}
2411unsafe extern "C" {
2412    #[doc = " Experimental API.\n Get the transform matrix of a page object.\n\n   page_object - handle to a page object.\n   matrix      - pointer to struct to receive the matrix value.\n\n The matrix is composed as:\n   |a c e|\n   |b d f|\n and used to scale, rotate, shear and translate the page object.\n\n For page objects outside form objects, the matrix values are relative to the\n page that contains it.\n For page objects inside form objects, the matrix values are relative to the\n form that contains it.\n\n Returns TRUE on success."]
2413    pub fn FPDFPageObj_GetMatrix(page_object: FPDF_PAGEOBJECT, matrix: *mut FS_MATRIX) -> FPDF_BOOL;
2414}
2415unsafe extern "C" {
2416    #[doc = " Experimental API.\n Set the transform matrix of a page object.\n\n   page_object - handle to a page object.\n   matrix      - pointer to struct with the matrix value.\n\n The matrix is composed as:\n   |a c e|\n   |b d f|\n and can be used to scale, rotate, shear and translate the page object.\n\n Returns TRUE on success."]
2417    pub fn FPDFPageObj_SetMatrix(page_object: FPDF_PAGEOBJECT, matrix: *const FS_MATRIX) -> FPDF_BOOL;
2418}
2419unsafe extern "C" {
2420    #[doc = " Transform all annotations in |page|.\n\n   page - handle to a page.\n   a    - matrix value.\n   b    - matrix value.\n   c    - matrix value.\n   d    - matrix value.\n   e    - matrix value.\n   f    - matrix value.\n\n The matrix is composed as:\n   |a c e|\n   |b d f|\n and can be used to scale, rotate, shear and translate the |page| annotations."]
2421    pub fn FPDFPage_TransformAnnots(page: FPDF_PAGE, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64);
2422}
2423unsafe extern "C" {
2424    #[doc = " Create a new image object.\n\n   document - handle to a document.\n\n Returns a handle to a new image object."]
2425    pub fn FPDFPageObj_NewImageObj(document: FPDF_DOCUMENT) -> FPDF_PAGEOBJECT;
2426}
2427unsafe extern "C" {
2428    #[doc = " Experimental API.\n Get the marked content ID for the object.\n\n   page_object - handle to a page object.\n\n Returns the page object's marked content ID, or -1 on error."]
2429    pub fn FPDFPageObj_GetMarkedContentID(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2430}
2431unsafe extern "C" {
2432    #[doc = " Experimental API.\n Get number of content marks in |page_object|.\n\n   page_object - handle to a page object.\n\n Returns the number of content marks in |page_object|, or -1 in case of\n failure."]
2433    pub fn FPDFPageObj_CountMarks(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2434}
2435unsafe extern "C" {
2436    #[doc = " Experimental API.\n Get content mark in |page_object| at |index|.\n\n   page_object - handle to a page object.\n   index       - the index of a page object.\n\n Returns the handle to the content mark, or NULL on failure. The handle is\n still owned by the library, and it should not be freed directly. It becomes\n invalid if the page object is destroyed, either directly or indirectly by\n unloading the page."]
2437    pub fn FPDFPageObj_GetMark(page_object: FPDF_PAGEOBJECT, index: ::std::os::raw::c_ulong) -> FPDF_PAGEOBJECTMARK;
2438}
2439unsafe extern "C" {
2440    #[doc = " Experimental API.\n Add a new content mark to a |page_object|.\n\n   page_object - handle to a page object.\n   name        - the name (tag) of the mark.\n\n Returns the handle to the content mark, or NULL on failure. The handle is\n still owned by the library, and it should not be freed directly. It becomes\n invalid if the page object is destroyed, either directly or indirectly by\n unloading the page."]
2441    pub fn FPDFPageObj_AddMark(page_object: FPDF_PAGEOBJECT, name: FPDF_BYTESTRING) -> FPDF_PAGEOBJECTMARK;
2442}
2443unsafe extern "C" {
2444    #[doc = " Experimental API.\n Removes a content |mark| from a |page_object|.\n The mark handle will be invalid after the removal.\n\n   page_object - handle to a page object.\n   mark        - handle to a content mark in that object to remove.\n\n Returns TRUE if the operation succeeded, FALSE if it failed."]
2445    pub fn FPDFPageObj_RemoveMark(page_object: FPDF_PAGEOBJECT, mark: FPDF_PAGEOBJECTMARK) -> FPDF_BOOL;
2446}
2447unsafe extern "C" {
2448    #[doc = " Experimental API.\n Get the name of a content mark.\n\n   mark       - handle to a content mark.\n   buffer     - buffer for holding the returned name in UTF-16LE. This is only\n                modified if |buflen| is large enough to store the name.\n                Optional, pass null to just retrieve the size of the buffer\n                needed.\n   buflen     - length of the buffer in bytes.\n   out_buflen - pointer to variable that will receive the minimum buffer size\n                in bytes to contain the name. This is a required parameter.\n                Not filled if FALSE is returned.\n\n Returns TRUE if the operation succeeded, FALSE if it failed."]
2449    pub fn FPDFPageObjMark_GetName(
2450        mark: FPDF_PAGEOBJECTMARK,
2451        buffer: *mut FPDF_WCHAR,
2452        buflen: ::std::os::raw::c_ulong,
2453        out_buflen: *mut ::std::os::raw::c_ulong,
2454    ) -> FPDF_BOOL;
2455}
2456unsafe extern "C" {
2457    #[doc = " Experimental API.\n Get the number of key/value pair parameters in |mark|.\n\n   mark   - handle to a content mark.\n\n Returns the number of key/value pair parameters |mark|, or -1 in case of\n failure."]
2458    pub fn FPDFPageObjMark_CountParams(mark: FPDF_PAGEOBJECTMARK) -> ::std::os::raw::c_int;
2459}
2460unsafe extern "C" {
2461    #[doc = " Experimental API.\n Get the key of a property in a content mark.\n\n   mark       - handle to a content mark.\n   index      - index of the property.\n   buffer     - buffer for holding the returned key in UTF-16LE. This is only\n                modified if |buflen| is large enough to store the key.\n                Optional, pass null to just retrieve the size of the buffer\n                needed.\n   buflen     - length of the buffer in bytes.\n   out_buflen - pointer to variable that will receive the minimum buffer size\n                in bytes to contain the name. This is a required parameter.\n                Not filled if FALSE is returned.\n\n Returns TRUE if the operation was successful, FALSE otherwise."]
2462    pub fn FPDFPageObjMark_GetParamKey(
2463        mark: FPDF_PAGEOBJECTMARK,
2464        index: ::std::os::raw::c_ulong,
2465        buffer: *mut FPDF_WCHAR,
2466        buflen: ::std::os::raw::c_ulong,
2467        out_buflen: *mut ::std::os::raw::c_ulong,
2468    ) -> FPDF_BOOL;
2469}
2470unsafe extern "C" {
2471    #[doc = " Experimental API.\n Get the type of the value of a property in a content mark by key.\n\n   mark   - handle to a content mark.\n   key    - string key of the property.\n\n Returns the type of the value, or FPDF_OBJECT_UNKNOWN in case of failure."]
2472    pub fn FPDFPageObjMark_GetParamValueType(mark: FPDF_PAGEOBJECTMARK, key: FPDF_BYTESTRING) -> FPDF_OBJECT_TYPE;
2473}
2474unsafe extern "C" {
2475    #[doc = " Experimental API.\n Get the value of a number property in a content mark by key as int.\n FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER\n for this property.\n\n   mark      - handle to a content mark.\n   key       - string key of the property.\n   out_value - pointer to variable that will receive the value. Not filled if\n               false is returned.\n\n Returns TRUE if the key maps to a number value, FALSE otherwise."]
2476    pub fn FPDFPageObjMark_GetParamIntValue(
2477        mark: FPDF_PAGEOBJECTMARK,
2478        key: FPDF_BYTESTRING,
2479        out_value: *mut ::std::os::raw::c_int,
2480    ) -> FPDF_BOOL;
2481}
2482unsafe extern "C" {
2483    #[doc = " Experimental API.\n Get the value of a number property in a content mark by key as float.\n FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER\n for this property.\n\n   mark      - handle to a content mark.\n   key       - string key of the property.\n   out_value - pointer to variable that will receive the value. Not filled if\n               false is returned.\n\n Returns TRUE if the key maps to a number value, FALSE otherwise."]
2484    pub fn FPDFPageObjMark_GetParamFloatValue(
2485        mark: FPDF_PAGEOBJECTMARK,
2486        key: FPDF_BYTESTRING,
2487        out_value: *mut f32,
2488    ) -> FPDF_BOOL;
2489}
2490unsafe extern "C" {
2491    #[doc = " Experimental API.\n Get the value of a string property in a content mark by key.\n\n   mark       - handle to a content mark.\n   key        - string key of the property.\n   buffer     - buffer for holding the returned value in UTF-16LE. This is\n                only modified if |buflen| is large enough to store the value.\n                Optional, pass null to just retrieve the size of the buffer\n                needed.\n   buflen     - length of the buffer in bytes.\n   out_buflen - pointer to variable that will receive the minimum buffer size\n                in bytes to contain the name. This is a required parameter.\n                Not filled if FALSE is returned.\n\n Returns TRUE if the key maps to a string/blob value, FALSE otherwise."]
2492    pub fn FPDFPageObjMark_GetParamStringValue(
2493        mark: FPDF_PAGEOBJECTMARK,
2494        key: FPDF_BYTESTRING,
2495        buffer: *mut FPDF_WCHAR,
2496        buflen: ::std::os::raw::c_ulong,
2497        out_buflen: *mut ::std::os::raw::c_ulong,
2498    ) -> FPDF_BOOL;
2499}
2500unsafe extern "C" {
2501    #[doc = " Experimental API.\n Get the value of a blob property in a content mark by key.\n\n   mark       - handle to a content mark.\n   key        - string key of the property.\n   buffer     - buffer for holding the returned value. This is only modified\n                if |buflen| is large enough to store the value.\n                Optional, pass null to just retrieve the size of the buffer\n                needed.\n   buflen     - length of the buffer in bytes.\n   out_buflen - pointer to variable that will receive the minimum buffer size\n                in bytes to contain the name. This is a required parameter.\n                Not filled if FALSE is returned.\n\n Returns TRUE if the key maps to a string/blob value, FALSE otherwise."]
2502    pub fn FPDFPageObjMark_GetParamBlobValue(
2503        mark: FPDF_PAGEOBJECTMARK,
2504        key: FPDF_BYTESTRING,
2505        buffer: *mut ::std::os::raw::c_uchar,
2506        buflen: ::std::os::raw::c_ulong,
2507        out_buflen: *mut ::std::os::raw::c_ulong,
2508    ) -> FPDF_BOOL;
2509}
2510unsafe extern "C" {
2511    #[doc = " Experimental API.\n Set the value of an int property in a content mark by key. If a parameter\n with key |key| exists, its value is set to |value|. Otherwise, it is added as\n a new parameter.\n\n   document    - handle to the document.\n   page_object - handle to the page object with the mark.\n   mark        - handle to a content mark.\n   key         - string key of the property.\n   value       - int value to set.\n\n Returns TRUE if the operation succeeded, FALSE otherwise."]
2512    pub fn FPDFPageObjMark_SetIntParam(
2513        document: FPDF_DOCUMENT,
2514        page_object: FPDF_PAGEOBJECT,
2515        mark: FPDF_PAGEOBJECTMARK,
2516        key: FPDF_BYTESTRING,
2517        value: ::std::os::raw::c_int,
2518    ) -> FPDF_BOOL;
2519}
2520unsafe extern "C" {
2521    #[doc = " Experimental API.\n Set the value of a float property in a content mark by key. If a parameter\n with key |key| exists, its value is set to |value|. Otherwise, it is added as\n a new parameter.\n\n   document    - handle to the document.\n   page_object - handle to the page object with the mark.\n   mark        - handle to a content mark.\n   key         - string key of the property.\n   value       - float value to set.\n\n Returns TRUE if the operation succeeded, FALSE otherwise."]
2522    pub fn FPDFPageObjMark_SetFloatParam(
2523        document: FPDF_DOCUMENT,
2524        page_object: FPDF_PAGEOBJECT,
2525        mark: FPDF_PAGEOBJECTMARK,
2526        key: FPDF_BYTESTRING,
2527        value: f32,
2528    ) -> FPDF_BOOL;
2529}
2530unsafe extern "C" {
2531    #[doc = " Experimental API.\n Set the value of a string property in a content mark by key. If a parameter\n with key |key| exists, its value is set to |value|. Otherwise, it is added as\n a new parameter.\n\n   document    - handle to the document.\n   page_object - handle to the page object with the mark.\n   mark        - handle to a content mark.\n   key         - string key of the property.\n   value       - string value to set.\n\n Returns TRUE if the operation succeeded, FALSE otherwise."]
2532    pub fn FPDFPageObjMark_SetStringParam(
2533        document: FPDF_DOCUMENT,
2534        page_object: FPDF_PAGEOBJECT,
2535        mark: FPDF_PAGEOBJECTMARK,
2536        key: FPDF_BYTESTRING,
2537        value: FPDF_BYTESTRING,
2538    ) -> FPDF_BOOL;
2539}
2540unsafe extern "C" {
2541    #[doc = " Experimental API.\n Set the value of a blob property in a content mark by key. If a parameter\n with key |key| exists, its value is set to |value|. Otherwise, it is added as\n a new parameter.\n\n   document    - handle to the document.\n   page_object - handle to the page object with the mark.\n   mark        - handle to a content mark.\n   key         - string key of the property.\n   value       - pointer to blob value to set.\n   value_len   - size in bytes of |value|.\n\n Returns TRUE if the operation succeeded, FALSE otherwise."]
2542    pub fn FPDFPageObjMark_SetBlobParam(
2543        document: FPDF_DOCUMENT,
2544        page_object: FPDF_PAGEOBJECT,
2545        mark: FPDF_PAGEOBJECTMARK,
2546        key: FPDF_BYTESTRING,
2547        value: *const ::std::os::raw::c_uchar,
2548        value_len: ::std::os::raw::c_ulong,
2549    ) -> FPDF_BOOL;
2550}
2551unsafe extern "C" {
2552    #[doc = " Experimental API.\n Removes a property from a content mark by key.\n\n   page_object - handle to the page object with the mark.\n   mark        - handle to a content mark.\n   key         - string key of the property.\n\n Returns TRUE if the operation succeeded, FALSE otherwise."]
2553    pub fn FPDFPageObjMark_RemoveParam(
2554        page_object: FPDF_PAGEOBJECT,
2555        mark: FPDF_PAGEOBJECTMARK,
2556        key: FPDF_BYTESTRING,
2557    ) -> FPDF_BOOL;
2558}
2559unsafe extern "C" {
2560    #[doc = " Load an image from a JPEG image file and then set it into |image_object|.\n\n   pages        - pointer to the start of all loaded pages, may be NULL.\n   count        - number of |pages|, may be 0.\n   image_object - handle to an image object.\n   file_access  - file access handler which specifies the JPEG image file.\n\n Returns TRUE on success.\n\n The image object might already have an associated image, which is shared and\n cached by the loaded pages. In that case, we need to clear the cached image\n for all the loaded pages. Pass |pages| and page count (|count|) to this API\n to clear the image cache. If the image is not previously shared, or NULL is a\n valid |pages| value."]
2561    pub fn FPDFImageObj_LoadJpegFile(
2562        pages: *mut FPDF_PAGE,
2563        count: ::std::os::raw::c_int,
2564        image_object: FPDF_PAGEOBJECT,
2565        file_access: *mut FPDF_FILEACCESS,
2566    ) -> FPDF_BOOL;
2567}
2568unsafe extern "C" {
2569    #[doc = " Load an image from a JPEG image file and then set it into |image_object|.\n\n   pages        - pointer to the start of all loaded pages, may be NULL.\n   count        - number of |pages|, may be 0.\n   image_object - handle to an image object.\n   file_access  - file access handler which specifies the JPEG image file.\n\n Returns TRUE on success.\n\n The image object might already have an associated image, which is shared and\n cached by the loaded pages. In that case, we need to clear the cached image\n for all the loaded pages. Pass |pages| and page count (|count|) to this API\n to clear the image cache. If the image is not previously shared, or NULL is a\n valid |pages| value. This function loads the JPEG image inline, so the image\n content is copied to the file. This allows |file_access| and its associated\n data to be deleted after this function returns."]
2570    pub fn FPDFImageObj_LoadJpegFileInline(
2571        pages: *mut FPDF_PAGE,
2572        count: ::std::os::raw::c_int,
2573        image_object: FPDF_PAGEOBJECT,
2574        file_access: *mut FPDF_FILEACCESS,
2575    ) -> FPDF_BOOL;
2576}
2577unsafe extern "C" {
2578    #[doc = " TODO(thestig): Start deprecating this once FPDFPageObj_SetMatrix() is stable.\n\n Set the transform matrix of |image_object|.\n\n   image_object - handle to an image object.\n   a            - matrix value.\n   b            - matrix value.\n   c            - matrix value.\n   d            - matrix value.\n   e            - matrix value.\n   f            - matrix value.\n\n The matrix is composed as:\n   |a c e|\n   |b d f|\n and can be used to scale, rotate, shear and translate the |image_object|.\n\n Returns TRUE on success."]
2579    pub fn FPDFImageObj_SetMatrix(
2580        image_object: FPDF_PAGEOBJECT,
2581        a: f64,
2582        b: f64,
2583        c: f64,
2584        d: f64,
2585        e: f64,
2586        f: f64,
2587    ) -> FPDF_BOOL;
2588}
2589unsafe extern "C" {
2590    #[doc = " Set |bitmap| to |image_object|.\n\n   pages        - pointer to the start of all loaded pages, may be NULL.\n   count        - number of |pages|, may be 0.\n   image_object - handle to an image object.\n   bitmap       - handle of the bitmap.\n\n Returns TRUE on success."]
2591    pub fn FPDFImageObj_SetBitmap(
2592        pages: *mut FPDF_PAGE,
2593        count: ::std::os::raw::c_int,
2594        image_object: FPDF_PAGEOBJECT,
2595        bitmap: FPDF_BITMAP,
2596    ) -> FPDF_BOOL;
2597}
2598unsafe extern "C" {
2599    #[doc = " Get a bitmap rasterization of |image_object|. FPDFImageObj_GetBitmap() only\n operates on |image_object| and does not take the associated image mask into\n account. It also ignores the matrix for |image_object|.\n The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy()\n must be called on the returned bitmap when it is no longer needed.\n\n   image_object - handle to an image object.\n\n Returns the bitmap."]
2600    pub fn FPDFImageObj_GetBitmap(image_object: FPDF_PAGEOBJECT) -> FPDF_BITMAP;
2601}
2602unsafe extern "C" {
2603    #[doc = " Experimental API.\n Get a bitmap rasterization of |image_object| that takes the image mask and\n image matrix into account. To render correctly, the caller must provide the\n |document| associated with |image_object|. If there is a |page| associated\n with |image_object|, the caller should provide that as well.\n The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy()\n must be called on the returned bitmap when it is no longer needed.\n\n   document     - handle to a document associated with |image_object|.\n   page         - handle to an optional page associated with |image_object|.\n   image_object - handle to an image object.\n\n Returns the bitmap or NULL on failure."]
2604    pub fn FPDFImageObj_GetRenderedBitmap(
2605        document: FPDF_DOCUMENT,
2606        page: FPDF_PAGE,
2607        image_object: FPDF_PAGEOBJECT,
2608    ) -> FPDF_BITMAP;
2609}
2610unsafe extern "C" {
2611    #[doc = " Get the decoded image data of |image_object|. The decoded data is the\n uncompressed image data, i.e. the raw image data after having all filters\n applied. |buffer| is only modified if |buflen| is longer than the length of\n the decoded image data.\n\n   image_object - handle to an image object.\n   buffer       - buffer for holding the decoded image data.\n   buflen       - length of the buffer in bytes.\n\n Returns the length of the decoded image data."]
2612    pub fn FPDFImageObj_GetImageDataDecoded(
2613        image_object: FPDF_PAGEOBJECT,
2614        buffer: *mut ::std::os::raw::c_void,
2615        buflen: ::std::os::raw::c_ulong,
2616    ) -> ::std::os::raw::c_ulong;
2617}
2618unsafe extern "C" {
2619    #[doc = " Get the raw image data of |image_object|. The raw data is the image data as\n stored in the PDF without applying any filters. |buffer| is only modified if\n |buflen| is longer than the length of the raw image data.\n\n   image_object - handle to an image object.\n   buffer       - buffer for holding the raw image data.\n   buflen       - length of the buffer in bytes.\n\n Returns the length of the raw image data."]
2620    pub fn FPDFImageObj_GetImageDataRaw(
2621        image_object: FPDF_PAGEOBJECT,
2622        buffer: *mut ::std::os::raw::c_void,
2623        buflen: ::std::os::raw::c_ulong,
2624    ) -> ::std::os::raw::c_ulong;
2625}
2626unsafe extern "C" {
2627    #[doc = " Get the number of filters (i.e. decoders) of the image in |image_object|.\n\n   image_object - handle to an image object.\n\n Returns the number of |image_object|'s filters."]
2628    pub fn FPDFImageObj_GetImageFilterCount(image_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2629}
2630unsafe extern "C" {
2631    #[doc = " Get the filter at |index| of |image_object|'s list of filters. Note that the\n filters need to be applied in order, i.e. the first filter should be applied\n first, then the second, etc. |buffer| is only modified if |buflen| is longer\n than the length of the filter string.\n\n   image_object - handle to an image object.\n   index        - the index of the filter requested.\n   buffer       - buffer for holding filter string, encoded in UTF-8.\n   buflen       - length of the buffer.\n\n Returns the length of the filter string."]
2632    pub fn FPDFImageObj_GetImageFilter(
2633        image_object: FPDF_PAGEOBJECT,
2634        index: ::std::os::raw::c_int,
2635        buffer: *mut ::std::os::raw::c_void,
2636        buflen: ::std::os::raw::c_ulong,
2637    ) -> ::std::os::raw::c_ulong;
2638}
2639unsafe extern "C" {
2640    #[doc = " Get the image metadata of |image_object|, including dimension, DPI, bits per\n pixel, and colorspace. If the |image_object| is not an image object or if it\n does not have an image, then the return value will be false. Otherwise,\n failure to retrieve any specific parameter would result in its value being 0.\n\n   image_object - handle to an image object.\n   page         - handle to the page that |image_object| is on. Required for\n                  retrieving the image's bits per pixel and colorspace.\n   metadata     - receives the image metadata; must not be NULL.\n\n Returns true if successful."]
2641    pub fn FPDFImageObj_GetImageMetadata(
2642        image_object: FPDF_PAGEOBJECT,
2643        page: FPDF_PAGE,
2644        metadata: *mut FPDF_IMAGEOBJ_METADATA,
2645    ) -> FPDF_BOOL;
2646}
2647unsafe extern "C" {
2648    #[doc = " Experimental API.\n Get the image size in pixels. Faster method to get only image size.\n\n   image_object - handle to an image object.\n   width        - receives the image width in pixels; must not be NULL.\n   height       - receives the image height in pixels; must not be NULL.\n\n Returns true if successful."]
2649    pub fn FPDFImageObj_GetImagePixelSize(
2650        image_object: FPDF_PAGEOBJECT,
2651        width: *mut ::std::os::raw::c_uint,
2652        height: *mut ::std::os::raw::c_uint,
2653    ) -> FPDF_BOOL;
2654}
2655unsafe extern "C" {
2656    #[doc = " Experimental API.\n Get ICC profile decoded data of |image_object|. If the |image_object| is not\n an image object or if it does not have an image, then the return value will\n be false. It also returns false if the |image_object| has no ICC profile.\n |buffer| is only modified if ICC profile exists and |buflen| is longer than\n the length of the ICC profile decoded data.\n\n   image_object - handle to an image object; must not be NULL.\n   page         - handle to the page containing |image_object|; must not be\n                  NULL. Required for retrieving the image's colorspace.\n   buffer       - Buffer to receive ICC profile data; may be NULL if querying\n                  required size via |out_buflen|.\n   buflen       - Length of the buffer in bytes. Ignored if |buffer| is NULL.\n   out_buflen   - Pointer to receive the ICC profile data size in bytes; must\n                  not be NULL. Will be set if this API returns true.\n\n Returns true if |out_buflen| is not null and an ICC profile exists for the\n given |image_object|."]
2657    pub fn FPDFImageObj_GetIccProfileDataDecoded(
2658        image_object: FPDF_PAGEOBJECT,
2659        page: FPDF_PAGE,
2660        buffer: *mut u8,
2661        buflen: usize,
2662        out_buflen: *mut usize,
2663    ) -> FPDF_BOOL;
2664}
2665unsafe extern "C" {
2666    #[doc = " Create a new path object at an initial position.\n\n   x - initial horizontal position.\n   y - initial vertical position.\n\n Returns a handle to a new path object."]
2667    pub fn FPDFPageObj_CreateNewPath(x: f32, y: f32) -> FPDF_PAGEOBJECT;
2668}
2669unsafe extern "C" {
2670    #[doc = " Create a closed path consisting of a rectangle.\n\n   x - horizontal position for the left boundary of the rectangle.\n   y - vertical position for the bottom boundary of the rectangle.\n   w - width of the rectangle.\n   h - height of the rectangle.\n\n Returns a handle to the new path object."]
2671    pub fn FPDFPageObj_CreateNewRect(x: f32, y: f32, w: f32, h: f32) -> FPDF_PAGEOBJECT;
2672}
2673unsafe extern "C" {
2674    #[doc = " Get the bounding box of |page_object|.\n\n page_object  - handle to a page object.\n left         - pointer where the left coordinate will be stored\n bottom       - pointer where the bottom coordinate will be stored\n right        - pointer where the right coordinate will be stored\n top          - pointer where the top coordinate will be stored\n\n On success, returns TRUE and fills in the 4 coordinates."]
2675    pub fn FPDFPageObj_GetBounds(
2676        page_object: FPDF_PAGEOBJECT,
2677        left: *mut f32,
2678        bottom: *mut f32,
2679        right: *mut f32,
2680        top: *mut f32,
2681    ) -> FPDF_BOOL;
2682}
2683unsafe extern "C" {
2684    #[doc = " Experimental API.\n Get the quad points that bounds |page_object|.\n\n page_object  - handle to a page object.\n quad_points  - pointer where the quadrilateral points will be stored.\n\n On success, returns TRUE and fills in |quad_points|.\n\n Similar to FPDFPageObj_GetBounds(), this returns the bounds of a page\n object. When the object is rotated by a non-multiple of 90 degrees, this API\n returns a tighter bound that cannot be represented with just the 4 sides of\n a rectangle.\n\n Currently only works the following |page_object| types: FPDF_PAGEOBJ_TEXT and\n FPDF_PAGEOBJ_IMAGE."]
2685    pub fn FPDFPageObj_GetRotatedBounds(page_object: FPDF_PAGEOBJECT, quad_points: *mut FS_QUADPOINTSF) -> FPDF_BOOL;
2686}
2687unsafe extern "C" {
2688    #[doc = " Set the blend mode of |page_object|.\n\n page_object  - handle to a page object.\n blend_mode   - string containing the blend mode.\n\n Blend mode can be one of following: Color, ColorBurn, ColorDodge, Darken,\n Difference, Exclusion, HardLight, Hue, Lighten, Luminosity, Multiply, Normal,\n Overlay, Saturation, Screen, SoftLight"]
2689    pub fn FPDFPageObj_SetBlendMode(page_object: FPDF_PAGEOBJECT, blend_mode: FPDF_BYTESTRING);
2690}
2691unsafe extern "C" {
2692    #[doc = " Set the stroke RGBA of a page object. Range of values: 0 - 255.\n\n page_object  - the handle to the page object.\n R            - the red component for the object's stroke color.\n G            - the green component for the object's stroke color.\n B            - the blue component for the object's stroke color.\n A            - the stroke alpha for the object.\n\n Returns TRUE on success."]
2693    pub fn FPDFPageObj_SetStrokeColor(
2694        page_object: FPDF_PAGEOBJECT,
2695        R: ::std::os::raw::c_uint,
2696        G: ::std::os::raw::c_uint,
2697        B: ::std::os::raw::c_uint,
2698        A: ::std::os::raw::c_uint,
2699    ) -> FPDF_BOOL;
2700}
2701unsafe extern "C" {
2702    #[doc = " Get the stroke RGBA of a page object. Range of values: 0 - 255.\n\n page_object  - the handle to the page object.\n R            - the red component of the path stroke color.\n G            - the green component of the object's stroke color.\n B            - the blue component of the object's stroke color.\n A            - the stroke alpha of the object.\n\n Returns TRUE on success."]
2703    pub fn FPDFPageObj_GetStrokeColor(
2704        page_object: FPDF_PAGEOBJECT,
2705        R: *mut ::std::os::raw::c_uint,
2706        G: *mut ::std::os::raw::c_uint,
2707        B: *mut ::std::os::raw::c_uint,
2708        A: *mut ::std::os::raw::c_uint,
2709    ) -> FPDF_BOOL;
2710}
2711unsafe extern "C" {
2712    #[doc = " Set the stroke width of a page object.\n\n path   - the handle to the page object.\n width  - the width of the stroke.\n\n Returns TRUE on success"]
2713    pub fn FPDFPageObj_SetStrokeWidth(page_object: FPDF_PAGEOBJECT, width: f32) -> FPDF_BOOL;
2714}
2715unsafe extern "C" {
2716    #[doc = " Get the stroke width of a page object.\n\n path   - the handle to the page object.\n width  - the width of the stroke.\n\n Returns TRUE on success"]
2717    pub fn FPDFPageObj_GetStrokeWidth(page_object: FPDF_PAGEOBJECT, width: *mut f32) -> FPDF_BOOL;
2718}
2719unsafe extern "C" {
2720    #[doc = " Get the line join of |page_object|.\n\n page_object  - handle to a page object.\n\n Returns the line join, or -1 on failure.\n Line join can be one of following: FPDF_LINEJOIN_MITER, FPDF_LINEJOIN_ROUND,\n FPDF_LINEJOIN_BEVEL"]
2721    pub fn FPDFPageObj_GetLineJoin(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2722}
2723unsafe extern "C" {
2724    #[doc = " Set the line join of |page_object|.\n\n page_object  - handle to a page object.\n line_join    - line join\n\n Line join can be one of following: FPDF_LINEJOIN_MITER, FPDF_LINEJOIN_ROUND,\n FPDF_LINEJOIN_BEVEL"]
2725    pub fn FPDFPageObj_SetLineJoin(page_object: FPDF_PAGEOBJECT, line_join: ::std::os::raw::c_int) -> FPDF_BOOL;
2726}
2727unsafe extern "C" {
2728    #[doc = " Get the line cap of |page_object|.\n\n page_object - handle to a page object.\n\n Returns the line cap, or -1 on failure.\n Line cap can be one of following: FPDF_LINECAP_BUTT, FPDF_LINECAP_ROUND,\n FPDF_LINECAP_PROJECTING_SQUARE"]
2729    pub fn FPDFPageObj_GetLineCap(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2730}
2731unsafe extern "C" {
2732    #[doc = " Set the line cap of |page_object|.\n\n page_object - handle to a page object.\n line_cap    - line cap\n\n Line cap can be one of following: FPDF_LINECAP_BUTT, FPDF_LINECAP_ROUND,\n FPDF_LINECAP_PROJECTING_SQUARE"]
2733    pub fn FPDFPageObj_SetLineCap(page_object: FPDF_PAGEOBJECT, line_cap: ::std::os::raw::c_int) -> FPDF_BOOL;
2734}
2735unsafe extern "C" {
2736    #[doc = " Set the fill RGBA of a page object. Range of values: 0 - 255.\n\n page_object  - the handle to the page object.\n R            - the red component for the object's fill color.\n G            - the green component for the object's fill color.\n B            - the blue component for the object's fill color.\n A            - the fill alpha for the object.\n\n Returns TRUE on success."]
2737    pub fn FPDFPageObj_SetFillColor(
2738        page_object: FPDF_PAGEOBJECT,
2739        R: ::std::os::raw::c_uint,
2740        G: ::std::os::raw::c_uint,
2741        B: ::std::os::raw::c_uint,
2742        A: ::std::os::raw::c_uint,
2743    ) -> FPDF_BOOL;
2744}
2745unsafe extern "C" {
2746    #[doc = " Get the fill RGBA of a page object. Range of values: 0 - 255.\n\n page_object  - the handle to the page object.\n R            - the red component of the object's fill color.\n G            - the green component of the object's fill color.\n B            - the blue component of the object's fill color.\n A            - the fill alpha of the object.\n\n Returns TRUE on success."]
2747    pub fn FPDFPageObj_GetFillColor(
2748        page_object: FPDF_PAGEOBJECT,
2749        R: *mut ::std::os::raw::c_uint,
2750        G: *mut ::std::os::raw::c_uint,
2751        B: *mut ::std::os::raw::c_uint,
2752        A: *mut ::std::os::raw::c_uint,
2753    ) -> FPDF_BOOL;
2754}
2755unsafe extern "C" {
2756    #[doc = " Experimental API.\n Get the line dash |phase| of |page_object|.\n\n page_object - handle to a page object.\n phase - pointer where the dashing phase will be stored.\n\n Returns TRUE on success."]
2757    pub fn FPDFPageObj_GetDashPhase(page_object: FPDF_PAGEOBJECT, phase: *mut f32) -> FPDF_BOOL;
2758}
2759unsafe extern "C" {
2760    #[doc = " Experimental API.\n Set the line dash phase of |page_object|.\n\n page_object - handle to a page object.\n phase - line dash phase.\n\n Returns TRUE on success."]
2761    pub fn FPDFPageObj_SetDashPhase(page_object: FPDF_PAGEOBJECT, phase: f32) -> FPDF_BOOL;
2762}
2763unsafe extern "C" {
2764    #[doc = " Experimental API.\n Get the line dash array of |page_object|.\n\n page_object - handle to a page object.\n\n Returns the line dash array size or -1 on failure."]
2765    pub fn FPDFPageObj_GetDashCount(page_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2766}
2767unsafe extern "C" {
2768    #[doc = " Experimental API.\n Get the line dash array of |page_object|.\n\n page_object - handle to a page object.\n dash_array - pointer where the dashing array will be stored.\n dash_count - number of elements in |dash_array|.\n\n Returns TRUE on success."]
2769    pub fn FPDFPageObj_GetDashArray(page_object: FPDF_PAGEOBJECT, dash_array: *mut f32, dash_count: usize)
2770    -> FPDF_BOOL;
2771}
2772unsafe extern "C" {
2773    #[doc = " Experimental API.\n Set the line dash array of |page_object|.\n\n page_object - handle to a page object.\n dash_array - the dash array.\n dash_count - number of elements in |dash_array|.\n phase - the line dash phase.\n\n Returns TRUE on success."]
2774    pub fn FPDFPageObj_SetDashArray(
2775        page_object: FPDF_PAGEOBJECT,
2776        dash_array: *const f32,
2777        dash_count: usize,
2778        phase: f32,
2779    ) -> FPDF_BOOL;
2780}
2781unsafe extern "C" {
2782    #[doc = " Get number of segments inside |path|.\n\n   path - handle to a path.\n\n A segment is a command, created by e.g. FPDFPath_MoveTo(),\n FPDFPath_LineTo() or FPDFPath_BezierTo().\n\n Returns the number of objects in |path| or -1 on failure."]
2783    pub fn FPDFPath_CountSegments(path: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2784}
2785unsafe extern "C" {
2786    #[doc = " Get segment in |path| at |index|.\n\n   path  - handle to a path.\n   index - the index of a segment.\n\n Returns the handle to the segment, or NULL on faiure."]
2787    pub fn FPDFPath_GetPathSegment(path: FPDF_PAGEOBJECT, index: ::std::os::raw::c_int) -> FPDF_PATHSEGMENT;
2788}
2789unsafe extern "C" {
2790    #[doc = " Get coordinates of |segment|.\n\n   segment  - handle to a segment.\n   x      - the horizontal position of the segment.\n   y      - the vertical position of the segment.\n\n Returns TRUE on success, otherwise |x| and |y| is not set."]
2791    pub fn FPDFPathSegment_GetPoint(segment: FPDF_PATHSEGMENT, x: *mut f32, y: *mut f32) -> FPDF_BOOL;
2792}
2793unsafe extern "C" {
2794    #[doc = " Get type of |segment|.\n\n   segment - handle to a segment.\n\n Returns one of the FPDF_SEGMENT_* values on success,\n FPDF_SEGMENT_UNKNOWN on error."]
2795    pub fn FPDFPathSegment_GetType(segment: FPDF_PATHSEGMENT) -> ::std::os::raw::c_int;
2796}
2797unsafe extern "C" {
2798    #[doc = " Gets if the |segment| closes the current subpath of a given path.\n\n   segment - handle to a segment.\n\n Returns close flag for non-NULL segment, FALSE otherwise."]
2799    pub fn FPDFPathSegment_GetClose(segment: FPDF_PATHSEGMENT) -> FPDF_BOOL;
2800}
2801unsafe extern "C" {
2802    #[doc = " Move a path's current point.\n\n path   - the handle to the path object.\n x      - the horizontal position of the new current point.\n y      - the vertical position of the new current point.\n\n Note that no line will be created between the previous current point and the\n new one.\n\n Returns TRUE on success"]
2803    pub fn FPDFPath_MoveTo(path: FPDF_PAGEOBJECT, x: f32, y: f32) -> FPDF_BOOL;
2804}
2805unsafe extern "C" {
2806    #[doc = " Add a line between the current point and a new point in the path.\n\n path   - the handle to the path object.\n x      - the horizontal position of the new point.\n y      - the vertical position of the new point.\n\n The path's current point is changed to (x, y).\n\n Returns TRUE on success"]
2807    pub fn FPDFPath_LineTo(path: FPDF_PAGEOBJECT, x: f32, y: f32) -> FPDF_BOOL;
2808}
2809unsafe extern "C" {
2810    #[doc = " Add a cubic Bezier curve to the given path, starting at the current point.\n\n path   - the handle to the path object.\n x1     - the horizontal position of the first Bezier control point.\n y1     - the vertical position of the first Bezier control point.\n x2     - the horizontal position of the second Bezier control point.\n y2     - the vertical position of the second Bezier control point.\n x3     - the horizontal position of the ending point of the Bezier curve.\n y3     - the vertical position of the ending point of the Bezier curve.\n\n Returns TRUE on success"]
2811    pub fn FPDFPath_BezierTo(path: FPDF_PAGEOBJECT, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3: f32) -> FPDF_BOOL;
2812}
2813unsafe extern "C" {
2814    #[doc = " Close the current subpath of a given path.\n\n path   - the handle to the path object.\n\n This will add a line between the current point and the initial point of the\n subpath, thus terminating the current subpath.\n\n Returns TRUE on success"]
2815    pub fn FPDFPath_Close(path: FPDF_PAGEOBJECT) -> FPDF_BOOL;
2816}
2817unsafe extern "C" {
2818    #[doc = " Set the drawing mode of a path.\n\n path     - the handle to the path object.\n fillmode - the filling mode to be set: one of the FPDF_FILLMODE_* flags.\n stroke   - a boolean specifying if the path should be stroked or not.\n\n Returns TRUE on success"]
2819    pub fn FPDFPath_SetDrawMode(path: FPDF_PAGEOBJECT, fillmode: ::std::os::raw::c_int, stroke: FPDF_BOOL)
2820    -> FPDF_BOOL;
2821}
2822unsafe extern "C" {
2823    #[doc = " Get the drawing mode of a path.\n\n path     - the handle to the path object.\n fillmode - the filling mode of the path: one of the FPDF_FILLMODE_* flags.\n stroke   - a boolean specifying if the path is stroked or not.\n\n Returns TRUE on success"]
2824    pub fn FPDFPath_GetDrawMode(
2825        path: FPDF_PAGEOBJECT,
2826        fillmode: *mut ::std::os::raw::c_int,
2827        stroke: *mut FPDF_BOOL,
2828    ) -> FPDF_BOOL;
2829}
2830unsafe extern "C" {
2831    #[doc = " Create a new text object using one of the standard PDF fonts.\n\n document   - handle to the document.\n font       - string containing the font name, without spaces.\n font_size  - the font size for the new text object.\n\n Returns a handle to a new text object, or NULL on failure"]
2832    pub fn FPDFPageObj_NewTextObj(document: FPDF_DOCUMENT, font: FPDF_BYTESTRING, font_size: f32) -> FPDF_PAGEOBJECT;
2833}
2834unsafe extern "C" {
2835    #[doc = " Set the text for a text object. If it had text, it will be replaced.\n\n text_object  - handle to the text object.\n text         - the UTF-16LE encoded string containing the text to be added.\n\n Returns TRUE on success"]
2836    pub fn FPDFText_SetText(text_object: FPDF_PAGEOBJECT, text: FPDF_WIDESTRING) -> FPDF_BOOL;
2837}
2838unsafe extern "C" {
2839    #[doc = " Experimental API.\n Set the text using charcodes for a text object. If it had text, it will be\n replaced.\n\n text_object  - handle to the text object.\n charcodes    - pointer to an array of charcodes to be added.\n count        - number of elements in |charcodes|.\n\n Returns TRUE on success"]
2840    pub fn FPDFText_SetCharcodes(text_object: FPDF_PAGEOBJECT, charcodes: *const u32, count: usize) -> FPDF_BOOL;
2841}
2842unsafe extern "C" {
2843    #[doc = " Returns a font object loaded from a stream of data. The font is loaded\n into the document. Various font data structures, such as the ToUnicode data,\n are auto-generated based on the inputs.\n\n document  - handle to the document.\n data      - the stream of font data, which will be copied by the font object.\n size      - the size of the font data, in bytes.\n font_type - FPDF_FONT_TYPE1 or FPDF_FONT_TRUETYPE depending on the font type.\n cid       - a boolean specifying if the font is a CID font or not.\n\n The loaded font can be closed using FPDFFont_Close().\n\n Returns NULL on failure"]
2844    pub fn FPDFText_LoadFont(
2845        document: FPDF_DOCUMENT,
2846        data: *const u8,
2847        size: u32,
2848        font_type: ::std::os::raw::c_int,
2849        cid: FPDF_BOOL,
2850    ) -> FPDF_FONT;
2851}
2852unsafe extern "C" {
2853    #[doc = " Experimental API.\n Loads one of the standard 14 fonts per PDF spec 1.7 page 416. The preferred\n way of using font style is using a dash to separate the name from the style,\n for example 'Helvetica-BoldItalic'.\n\n document   - handle to the document.\n font       - string containing the font name, without spaces.\n\n The loaded font can be closed using FPDFFont_Close().\n\n Returns NULL on failure."]
2854    pub fn FPDFText_LoadStandardFont(document: FPDF_DOCUMENT, font: FPDF_BYTESTRING) -> FPDF_FONT;
2855}
2856unsafe extern "C" {
2857    #[doc = " Experimental API.\n Returns a font object loaded from a stream of data for a type 2 CID font. The\n font is loaded into the document. Unlike FPDFText_LoadFont(), the ToUnicode\n data and the CIDToGIDMap data are caller provided, instead of auto-generated.\n\n document                 - handle to the document.\n font_data                - the stream of font data, which will be copied by\n                            the font object.\n font_data_size           - the size of the font data, in bytes.\n to_unicode_cmap          - the ToUnicode data.\n cid_to_gid_map_data      - the stream of CIDToGIDMap data.\n cid_to_gid_map_data_size - the size of the CIDToGIDMap data, in bytes.\n\n The loaded font can be closed using FPDFFont_Close().\n\n Returns NULL on failure."]
2858    pub fn FPDFText_LoadCidType2Font(
2859        document: FPDF_DOCUMENT,
2860        font_data: *const u8,
2861        font_data_size: u32,
2862        to_unicode_cmap: FPDF_BYTESTRING,
2863        cid_to_gid_map_data: *const u8,
2864        cid_to_gid_map_data_size: u32,
2865    ) -> FPDF_FONT;
2866}
2867unsafe extern "C" {
2868    #[doc = " Get the font size of a text object.\n\n   text - handle to a text.\n   size - pointer to the font size of the text object, measured in points\n   (about 1/72 inch)\n\n Returns TRUE on success."]
2869    pub fn FPDFTextObj_GetFontSize(text: FPDF_PAGEOBJECT, size: *mut f32) -> FPDF_BOOL;
2870}
2871unsafe extern "C" {
2872    #[doc = " Close a loaded PDF font.\n\n font   - Handle to the loaded font."]
2873    pub fn FPDFFont_Close(font: FPDF_FONT);
2874}
2875unsafe extern "C" {
2876    #[doc = " Create a new text object using a loaded font.\n\n document   - handle to the document.\n font       - handle to the font object.\n font_size  - the font size for the new text object.\n\n Returns a handle to a new text object, or NULL on failure"]
2877    pub fn FPDFPageObj_CreateTextObj(document: FPDF_DOCUMENT, font: FPDF_FONT, font_size: f32) -> FPDF_PAGEOBJECT;
2878}
2879unsafe extern "C" {
2880    #[doc = " Get the text rendering mode of a text object.\n\n text     - the handle to the text object.\n\n Returns one of the known FPDF_TEXT_RENDERMODE enum values on success,\n FPDF_TEXTRENDERMODE_UNKNOWN on error."]
2881    pub fn FPDFTextObj_GetTextRenderMode(text: FPDF_PAGEOBJECT) -> FPDF_TEXT_RENDERMODE;
2882}
2883unsafe extern "C" {
2884    #[doc = " Experimental API.\n Set the text rendering mode of a text object.\n\n text         - the handle to the text object.\n render_mode  - the FPDF_TEXT_RENDERMODE enum value to be set (cannot set to\n                FPDF_TEXTRENDERMODE_UNKNOWN).\n\n Returns TRUE on success."]
2885    pub fn FPDFTextObj_SetTextRenderMode(text: FPDF_PAGEOBJECT, render_mode: FPDF_TEXT_RENDERMODE) -> FPDF_BOOL;
2886}
2887unsafe extern "C" {
2888    #[doc = " Get the text of a text object.\n\n text_object      - the handle to the text object.\n text_page        - the handle to the text page.\n buffer           - the address of a buffer that receives the text.\n length           - the size, in bytes, of |buffer|.\n\n Returns the number of bytes in the text (including the trailing NUL\n character) on success, 0 on error.\n\n Regardless of the platform, the |buffer| is always in UTF-16LE encoding.\n If |length| is less than the returned length, or |buffer| is NULL, |buffer|\n will not be modified."]
2889    pub fn FPDFTextObj_GetText(
2890        text_object: FPDF_PAGEOBJECT,
2891        text_page: FPDF_TEXTPAGE,
2892        buffer: *mut FPDF_WCHAR,
2893        length: ::std::os::raw::c_ulong,
2894    ) -> ::std::os::raw::c_ulong;
2895}
2896unsafe extern "C" {
2897    #[doc = " Experimental API.\n Get a bitmap rasterization of |text_object|. To render correctly, the caller\n must provide the |document| associated with |text_object|. If there is a\n |page| associated with |text_object|, the caller should provide that as well.\n The returned bitmap will be owned by the caller, and FPDFBitmap_Destroy()\n must be called on the returned bitmap when it is no longer needed.\n\n   document    - handle to a document associated with |text_object|.\n   page        - handle to an optional page associated with |text_object|.\n   text_object - handle to a text object.\n   scale       - the scaling factor, which must be greater than 0.\n\n Returns the bitmap or NULL on failure."]
2898    pub fn FPDFTextObj_GetRenderedBitmap(
2899        document: FPDF_DOCUMENT,
2900        page: FPDF_PAGE,
2901        text_object: FPDF_PAGEOBJECT,
2902        scale: f32,
2903    ) -> FPDF_BITMAP;
2904}
2905unsafe extern "C" {
2906    #[doc = " Experimental API.\n Get the font of a text object.\n\n text - the handle to the text object.\n\n Returns a handle to the font object held by |text| which retains ownership."]
2907    pub fn FPDFTextObj_GetFont(text: FPDF_PAGEOBJECT) -> FPDF_FONT;
2908}
2909unsafe extern "C" {
2910    #[doc = " Experimental API.\n Get the base name of a font.\n\n font   - the handle to the font object.\n buffer - the address of a buffer that receives the base font name.\n length - the size, in bytes, of |buffer|.\n\n Returns the number of bytes in the base name (including the trailing NUL\n character) on success, 0 on error. The base name is typically the font's\n PostScript name. See descriptions of \"BaseFont\" in ISO 32000-1:2008 spec.\n\n Regardless of the platform, the |buffer| is always in UTF-8 encoding.\n If |length| is less than the returned length, or |buffer| is NULL, |buffer|\n will not be modified."]
2911    pub fn FPDFFont_GetBaseFontName(font: FPDF_FONT, buffer: *mut ::std::os::raw::c_char, length: usize) -> usize;
2912}
2913unsafe extern "C" {
2914    #[doc = " Experimental API.\n Get the family name of a font.\n\n font   - the handle to the font object.\n buffer - the address of a buffer that receives the font name.\n length - the size, in bytes, of |buffer|.\n\n Returns the number of bytes in the family name (including the trailing NUL\n character) on success, 0 on error.\n\n Regardless of the platform, the |buffer| is always in UTF-8 encoding.\n If |length| is less than the returned length, or |buffer| is NULL, |buffer|\n will not be modified."]
2915    pub fn FPDFFont_GetFamilyName(font: FPDF_FONT, buffer: *mut ::std::os::raw::c_char, length: usize) -> usize;
2916}
2917unsafe extern "C" {
2918    #[doc = " Experimental API.\n Get the decoded data from the |font| object.\n\n font       - The handle to the font object. (Required)\n buffer     - The address of a buffer that receives the font data.\n buflen     - Length of the buffer.\n out_buflen - Pointer to variable that will receive the minimum buffer size\n              to contain the font data. Not filled if the return value is\n              FALSE. (Required)\n\n Returns TRUE on success. In which case, |out_buflen| will be filled, and\n |buffer| will be filled if it is large enough. Returns FALSE if any of the\n required parameters are null.\n\n The decoded data is the uncompressed font data. i.e. the raw font data after\n having all stream filters applied, when the data is embedded.\n\n If the font is not embedded, then this API will instead return the data for\n the substitution font it is using."]
2919    pub fn FPDFFont_GetFontData(font: FPDF_FONT, buffer: *mut u8, buflen: usize, out_buflen: *mut usize) -> FPDF_BOOL;
2920}
2921unsafe extern "C" {
2922    #[doc = " Experimental API.\n Get whether |font| is embedded or not.\n\n font - the handle to the font object.\n\n Returns 1 if the font is embedded, 0 if it not, and -1 on failure."]
2923    pub fn FPDFFont_GetIsEmbedded(font: FPDF_FONT) -> ::std::os::raw::c_int;
2924}
2925unsafe extern "C" {
2926    #[doc = " Experimental API.\n Get the descriptor flags of a font.\n\n font - the handle to the font object.\n\n Returns the bit flags specifying various characteristics of the font as\n defined in ISO 32000-1:2008, table 123, -1 on failure."]
2927    pub fn FPDFFont_GetFlags(font: FPDF_FONT) -> ::std::os::raw::c_int;
2928}
2929unsafe extern "C" {
2930    #[doc = " Experimental API.\n Get the font weight of a font.\n\n font - the handle to the font object.\n\n Returns the font weight, -1 on failure.\n Typical values are 400 (normal) and 700 (bold)."]
2931    pub fn FPDFFont_GetWeight(font: FPDF_FONT) -> ::std::os::raw::c_int;
2932}
2933unsafe extern "C" {
2934    #[doc = " Experimental API.\n Get the italic angle of a font.\n\n font  - the handle to the font object.\n angle - pointer where the italic angle will be stored\n\n The italic angle of a |font| is defined as degrees counterclockwise\n from vertical. For a font that slopes to the right, this will be negative.\n\n Returns TRUE on success; |angle| unmodified on failure."]
2935    pub fn FPDFFont_GetItalicAngle(font: FPDF_FONT, angle: *mut ::std::os::raw::c_int) -> FPDF_BOOL;
2936}
2937unsafe extern "C" {
2938    #[doc = " Experimental API.\n Get ascent distance of a font.\n\n font       - the handle to the font object.\n font_size  - the size of the |font|.\n ascent     - pointer where the font ascent will be stored\n\n Ascent is the maximum distance in points above the baseline reached by the\n glyphs of the |font|. One point is 1/72 inch (around 0.3528 mm).\n\n Returns TRUE on success; |ascent| unmodified on failure."]
2939    pub fn FPDFFont_GetAscent(font: FPDF_FONT, font_size: f32, ascent: *mut f32) -> FPDF_BOOL;
2940}
2941unsafe extern "C" {
2942    #[doc = " Experimental API.\n Get descent distance of a font.\n\n font       - the handle to the font object.\n font_size  - the size of the |font|.\n descent    - pointer where the font descent will be stored\n\n Descent is the maximum distance in points below the baseline reached by the\n glyphs of the |font|. One point is 1/72 inch (around 0.3528 mm).\n\n Returns TRUE on success; |descent| unmodified on failure."]
2943    pub fn FPDFFont_GetDescent(font: FPDF_FONT, font_size: f32, descent: *mut f32) -> FPDF_BOOL;
2944}
2945unsafe extern "C" {
2946    #[doc = " Experimental API.\n Get the width of a glyph in a font.\n\n font       - the handle to the font object.\n glyph      - the glyph.\n font_size  - the size of the font.\n width      - pointer where the glyph width will be stored\n\n Glyph width is the distance from the end of the prior glyph to the next\n glyph. This will be the vertical distance for vertical writing.\n\n Returns TRUE on success; |width| unmodified on failure."]
2947    pub fn FPDFFont_GetGlyphWidth(font: FPDF_FONT, glyph: u32, font_size: f32, width: *mut f32) -> FPDF_BOOL;
2948}
2949unsafe extern "C" {
2950    #[doc = " Experimental API.\n Get the glyphpath describing how to draw a font glyph.\n\n font       - the handle to the font object.\n glyph      - the glyph being drawn.\n font_size  - the size of the font.\n\n Returns the handle to the segment, or NULL on faiure."]
2951    pub fn FPDFFont_GetGlyphPath(font: FPDF_FONT, glyph: u32, font_size: f32) -> FPDF_GLYPHPATH;
2952}
2953unsafe extern "C" {
2954    #[doc = " Experimental API.\n Get number of segments inside glyphpath.\n\n glyphpath - handle to a glyph path.\n\n Returns the number of objects in |glyphpath| or -1 on failure."]
2955    pub fn FPDFGlyphPath_CountGlyphSegments(glyphpath: FPDF_GLYPHPATH) -> ::std::os::raw::c_int;
2956}
2957unsafe extern "C" {
2958    #[doc = " Experimental API.\n Get segment in glyphpath at index.\n\n glyphpath  - handle to a glyph path.\n index      - the index of a segment.\n\n Returns the handle to the segment, or NULL on faiure."]
2959    pub fn FPDFGlyphPath_GetGlyphPathSegment(
2960        glyphpath: FPDF_GLYPHPATH,
2961        index: ::std::os::raw::c_int,
2962    ) -> FPDF_PATHSEGMENT;
2963}
2964unsafe extern "C" {
2965    #[doc = " Get number of page objects inside |form_object|.\n\n   form_object - handle to a form object.\n\n Returns the number of objects in |form_object| on success, -1 on error."]
2966    pub fn FPDFFormObj_CountObjects(form_object: FPDF_PAGEOBJECT) -> ::std::os::raw::c_int;
2967}
2968unsafe extern "C" {
2969    #[doc = " Get page object in |form_object| at |index|.\n\n   form_object - handle to a form object.\n   index       - the 0-based index of a page object.\n\n Returns the handle to the page object, or NULL on error."]
2970    pub fn FPDFFormObj_GetObject(form_object: FPDF_PAGEOBJECT, index: ::std::os::raw::c_ulong) -> FPDF_PAGEOBJECT;
2971}
2972unsafe extern "C" {
2973    #[doc = " Experimental API.\n\n Remove |page_object| from |form_object|.\n\n   form_object - handle to a form object.\n   page_object - handle to a page object to be removed from the form.\n\n Returns TRUE on success.\n\n Ownership of the removed |page_object| is transferred to the caller.\n Call FPDFPageObj_Destroy() on the removed page_object to free it."]
2974    pub fn FPDFFormObj_RemoveObject(form_object: FPDF_PAGEOBJECT, page_object: FPDF_PAGEOBJECT) -> FPDF_BOOL;
2975}
2976unsafe extern "C" {
2977    #[doc = " Set \"MediaBox\" entry to the page dictionary.\n\n page   - Handle to a page.\n left   - The left of the rectangle.\n bottom - The bottom of the rectangle.\n right  - The right of the rectangle.\n top    - The top of the rectangle."]
2978    pub fn FPDFPage_SetMediaBox(page: FPDF_PAGE, left: f32, bottom: f32, right: f32, top: f32);
2979}
2980unsafe extern "C" {
2981    #[doc = " Set \"CropBox\" entry to the page dictionary.\n\n page   - Handle to a page.\n left   - The left of the rectangle.\n bottom - The bottom of the rectangle.\n right  - The right of the rectangle.\n top    - The top of the rectangle."]
2982    pub fn FPDFPage_SetCropBox(page: FPDF_PAGE, left: f32, bottom: f32, right: f32, top: f32);
2983}
2984unsafe extern "C" {
2985    #[doc = " Set \"BleedBox\" entry to the page dictionary.\n\n page   - Handle to a page.\n left   - The left of the rectangle.\n bottom - The bottom of the rectangle.\n right  - The right of the rectangle.\n top    - The top of the rectangle."]
2986    pub fn FPDFPage_SetBleedBox(page: FPDF_PAGE, left: f32, bottom: f32, right: f32, top: f32);
2987}
2988unsafe extern "C" {
2989    #[doc = " Set \"TrimBox\" entry to the page dictionary.\n\n page   - Handle to a page.\n left   - The left of the rectangle.\n bottom - The bottom of the rectangle.\n right  - The right of the rectangle.\n top    - The top of the rectangle."]
2990    pub fn FPDFPage_SetTrimBox(page: FPDF_PAGE, left: f32, bottom: f32, right: f32, top: f32);
2991}
2992unsafe extern "C" {
2993    #[doc = " Set \"ArtBox\" entry to the page dictionary.\n\n page   - Handle to a page.\n left   - The left of the rectangle.\n bottom - The bottom of the rectangle.\n right  - The right of the rectangle.\n top    - The top of the rectangle."]
2994    pub fn FPDFPage_SetArtBox(page: FPDF_PAGE, left: f32, bottom: f32, right: f32, top: f32);
2995}
2996unsafe extern "C" {
2997    #[doc = " Get \"MediaBox\" entry from the page dictionary.\n\n page   - Handle to a page.\n left   - Pointer to a float value receiving the left of the rectangle.\n bottom - Pointer to a float value receiving the bottom of the rectangle.\n right  - Pointer to a float value receiving the right of the rectangle.\n top    - Pointer to a float value receiving the top of the rectangle.\n\n On success, return true and write to the out parameters. Otherwise return\n false and leave the out parameters unmodified."]
2998    pub fn FPDFPage_GetMediaBox(
2999        page: FPDF_PAGE,
3000        left: *mut f32,
3001        bottom: *mut f32,
3002        right: *mut f32,
3003        top: *mut f32,
3004    ) -> FPDF_BOOL;
3005}
3006unsafe extern "C" {
3007    #[doc = " Get \"CropBox\" entry from the page dictionary.\n\n page   - Handle to a page.\n left   - Pointer to a float value receiving the left of the rectangle.\n bottom - Pointer to a float value receiving the bottom of the rectangle.\n right  - Pointer to a float value receiving the right of the rectangle.\n top    - Pointer to a float value receiving the top of the rectangle.\n\n On success, return true and write to the out parameters. Otherwise return\n false and leave the out parameters unmodified."]
3008    pub fn FPDFPage_GetCropBox(
3009        page: FPDF_PAGE,
3010        left: *mut f32,
3011        bottom: *mut f32,
3012        right: *mut f32,
3013        top: *mut f32,
3014    ) -> FPDF_BOOL;
3015}
3016unsafe extern "C" {
3017    #[doc = " Get \"BleedBox\" entry from the page dictionary.\n\n page   - Handle to a page.\n left   - Pointer to a float value receiving the left of the rectangle.\n bottom - Pointer to a float value receiving the bottom of the rectangle.\n right  - Pointer to a float value receiving the right of the rectangle.\n top    - Pointer to a float value receiving the top of the rectangle.\n\n On success, return true and write to the out parameters. Otherwise return\n false and leave the out parameters unmodified."]
3018    pub fn FPDFPage_GetBleedBox(
3019        page: FPDF_PAGE,
3020        left: *mut f32,
3021        bottom: *mut f32,
3022        right: *mut f32,
3023        top: *mut f32,
3024    ) -> FPDF_BOOL;
3025}
3026unsafe extern "C" {
3027    #[doc = " Get \"TrimBox\" entry from the page dictionary.\n\n page   - Handle to a page.\n left   - Pointer to a float value receiving the left of the rectangle.\n bottom - Pointer to a float value receiving the bottom of the rectangle.\n right  - Pointer to a float value receiving the right of the rectangle.\n top    - Pointer to a float value receiving the top of the rectangle.\n\n On success, return true and write to the out parameters. Otherwise return\n false and leave the out parameters unmodified."]
3028    pub fn FPDFPage_GetTrimBox(
3029        page: FPDF_PAGE,
3030        left: *mut f32,
3031        bottom: *mut f32,
3032        right: *mut f32,
3033        top: *mut f32,
3034    ) -> FPDF_BOOL;
3035}
3036unsafe extern "C" {
3037    #[doc = " Get \"ArtBox\" entry from the page dictionary.\n\n page   - Handle to a page.\n left   - Pointer to a float value receiving the left of the rectangle.\n bottom - Pointer to a float value receiving the bottom of the rectangle.\n right  - Pointer to a float value receiving the right of the rectangle.\n top    - Pointer to a float value receiving the top of the rectangle.\n\n On success, return true and write to the out parameters. Otherwise return\n false and leave the out parameters unmodified."]
3038    pub fn FPDFPage_GetArtBox(
3039        page: FPDF_PAGE,
3040        left: *mut f32,
3041        bottom: *mut f32,
3042        right: *mut f32,
3043        top: *mut f32,
3044    ) -> FPDF_BOOL;
3045}
3046unsafe extern "C" {
3047    #[doc = " Apply transforms to |page|.\n\n If |matrix| is provided it will be applied to transform the page.\n If |clipRect| is provided it will be used to clip the resulting page.\n If neither |matrix| or |clipRect| are provided this method returns |false|.\n Returns |true| if transforms are applied.\n\n This function will transform the whole page, and would take effect to all the\n objects in the page.\n\n page        - Page handle.\n matrix      - Transform matrix.\n clipRect    - Clipping rectangle."]
3048    pub fn FPDFPage_TransFormWithClip(
3049        page: FPDF_PAGE,
3050        matrix: *const FS_MATRIX,
3051        clipRect: *const FS_RECTF,
3052    ) -> FPDF_BOOL;
3053}
3054unsafe extern "C" {
3055    #[doc = " Transform (scale, rotate, shear, move) the clip path of page object.\n page_object - Handle to a page object. Returned by\n FPDFPageObj_NewImageObj().\n\n a  - The coefficient \"a\" of the matrix.\n b  - The coefficient \"b\" of the matrix.\n c  - The coefficient \"c\" of the matrix.\n d  - The coefficient \"d\" of the matrix.\n e  - The coefficient \"e\" of the matrix.\n f  - The coefficient \"f\" of the matrix."]
3056    pub fn FPDFPageObj_TransformClipPath(page_object: FPDF_PAGEOBJECT, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64);
3057}
3058unsafe extern "C" {
3059    #[doc = " Experimental API.\n Get the clip path of the page object.\n\n   page object - Handle to a page object. Returned by e.g.\n                 FPDFPage_GetObject().\n\n Returns the handle to the clip path, or NULL on failure. The caller does not\n take ownership of the returned FPDF_CLIPPATH. Instead, it remains valid until\n FPDF_ClosePage() is called for the page containing |page_object|."]
3060    pub fn FPDFPageObj_GetClipPath(page_object: FPDF_PAGEOBJECT) -> FPDF_CLIPPATH;
3061}
3062unsafe extern "C" {
3063    #[doc = " Experimental API.\n Get number of paths inside |clip_path|.\n\n   clip_path - handle to a clip_path.\n\n Returns the number of objects in |clip_path| or -1 on failure."]
3064    pub fn FPDFClipPath_CountPaths(clip_path: FPDF_CLIPPATH) -> ::std::os::raw::c_int;
3065}
3066unsafe extern "C" {
3067    #[doc = " Experimental API.\n Get number of segments inside one path of |clip_path|.\n\n   clip_path  - handle to a clip_path.\n   path_index - index into the array of paths of the clip path.\n\n Returns the number of segments or -1 on failure."]
3068    pub fn FPDFClipPath_CountPathSegments(
3069        clip_path: FPDF_CLIPPATH,
3070        path_index: ::std::os::raw::c_int,
3071    ) -> ::std::os::raw::c_int;
3072}
3073unsafe extern "C" {
3074    #[doc = " Experimental API.\n Get segment in one specific path of |clip_path| at index.\n\n   clip_path     - handle to a clip_path.\n   path_index    - the index of a path.\n   segment_index - the index of a segment.\n\n Returns the handle to the segment, or NULL on failure. The caller does not\n take ownership of the returned FPDF_PATHSEGMENT. Instead, it remains valid\n until FPDF_ClosePage() is called for the page containing |clip_path|."]
3075    pub fn FPDFClipPath_GetPathSegment(
3076        clip_path: FPDF_CLIPPATH,
3077        path_index: ::std::os::raw::c_int,
3078        segment_index: ::std::os::raw::c_int,
3079    ) -> FPDF_PATHSEGMENT;
3080}
3081unsafe extern "C" {
3082    #[doc = " Create a new clip path, with a rectangle inserted.\n\n Caller takes ownership of the returned FPDF_CLIPPATH. It should be freed with\n FPDF_DestroyClipPath().\n\n left   - The left of the clip box.\n bottom - The bottom of the clip box.\n right  - The right of the clip box.\n top    - The top of the clip box."]
3083    pub fn FPDF_CreateClipPath(left: f32, bottom: f32, right: f32, top: f32) -> FPDF_CLIPPATH;
3084}
3085unsafe extern "C" {
3086    #[doc = " Destroy the clip path.\n\n clipPath - A handle to the clip path. It will be invalid after this call."]
3087    pub fn FPDF_DestroyClipPath(clipPath: FPDF_CLIPPATH);
3088}
3089unsafe extern "C" {
3090    #[doc = " Clip the page content, the page content that outside the clipping region\n become invisible.\n\n A clip path will be inserted before the page content stream or content array.\n In this way, the page content will be clipped by this clip path.\n\n page        - A page handle.\n clipPath    - A handle to the clip path. (Does not take ownership.)"]
3091    pub fn FPDFPage_InsertClipPath(page: FPDF_PAGE, clipPath: FPDF_CLIPPATH);
3092}
3093pub const FWL_EVENTFLAG_FWL_EVENTFLAG_ShiftKey: FWL_EVENTFLAG = 1;
3094pub const FWL_EVENTFLAG_FWL_EVENTFLAG_ControlKey: FWL_EVENTFLAG = 2;
3095pub const FWL_EVENTFLAG_FWL_EVENTFLAG_AltKey: FWL_EVENTFLAG = 4;
3096pub const FWL_EVENTFLAG_FWL_EVENTFLAG_MetaKey: FWL_EVENTFLAG = 8;
3097pub const FWL_EVENTFLAG_FWL_EVENTFLAG_KeyPad: FWL_EVENTFLAG = 16;
3098pub const FWL_EVENTFLAG_FWL_EVENTFLAG_AutoRepeat: FWL_EVENTFLAG = 32;
3099pub const FWL_EVENTFLAG_FWL_EVENTFLAG_LeftButtonDown: FWL_EVENTFLAG = 64;
3100pub const FWL_EVENTFLAG_FWL_EVENTFLAG_MiddleButtonDown: FWL_EVENTFLAG = 128;
3101pub const FWL_EVENTFLAG_FWL_EVENTFLAG_RightButtonDown: FWL_EVENTFLAG = 256;
3102#[doc = " Key flags."]
3103pub type FWL_EVENTFLAG = ::std::os::raw::c_uint;
3104pub const FWL_VKEYCODE_FWL_VKEY_Back: FWL_VKEYCODE = 8;
3105pub const FWL_VKEYCODE_FWL_VKEY_Tab: FWL_VKEYCODE = 9;
3106pub const FWL_VKEYCODE_FWL_VKEY_NewLine: FWL_VKEYCODE = 10;
3107pub const FWL_VKEYCODE_FWL_VKEY_Clear: FWL_VKEYCODE = 12;
3108pub const FWL_VKEYCODE_FWL_VKEY_Return: FWL_VKEYCODE = 13;
3109pub const FWL_VKEYCODE_FWL_VKEY_Shift: FWL_VKEYCODE = 16;
3110pub const FWL_VKEYCODE_FWL_VKEY_Control: FWL_VKEYCODE = 17;
3111pub const FWL_VKEYCODE_FWL_VKEY_Menu: FWL_VKEYCODE = 18;
3112pub const FWL_VKEYCODE_FWL_VKEY_Pause: FWL_VKEYCODE = 19;
3113pub const FWL_VKEYCODE_FWL_VKEY_Capital: FWL_VKEYCODE = 20;
3114pub const FWL_VKEYCODE_FWL_VKEY_Kana: FWL_VKEYCODE = 21;
3115pub const FWL_VKEYCODE_FWL_VKEY_Hangul: FWL_VKEYCODE = 21;
3116pub const FWL_VKEYCODE_FWL_VKEY_Junja: FWL_VKEYCODE = 23;
3117pub const FWL_VKEYCODE_FWL_VKEY_Final: FWL_VKEYCODE = 24;
3118pub const FWL_VKEYCODE_FWL_VKEY_Hanja: FWL_VKEYCODE = 25;
3119pub const FWL_VKEYCODE_FWL_VKEY_Kanji: FWL_VKEYCODE = 25;
3120pub const FWL_VKEYCODE_FWL_VKEY_Escape: FWL_VKEYCODE = 27;
3121pub const FWL_VKEYCODE_FWL_VKEY_Convert: FWL_VKEYCODE = 28;
3122pub const FWL_VKEYCODE_FWL_VKEY_NonConvert: FWL_VKEYCODE = 29;
3123pub const FWL_VKEYCODE_FWL_VKEY_Accept: FWL_VKEYCODE = 30;
3124pub const FWL_VKEYCODE_FWL_VKEY_ModeChange: FWL_VKEYCODE = 31;
3125pub const FWL_VKEYCODE_FWL_VKEY_Space: FWL_VKEYCODE = 32;
3126pub const FWL_VKEYCODE_FWL_VKEY_Prior: FWL_VKEYCODE = 33;
3127pub const FWL_VKEYCODE_FWL_VKEY_Next: FWL_VKEYCODE = 34;
3128pub const FWL_VKEYCODE_FWL_VKEY_End: FWL_VKEYCODE = 35;
3129pub const FWL_VKEYCODE_FWL_VKEY_Home: FWL_VKEYCODE = 36;
3130pub const FWL_VKEYCODE_FWL_VKEY_Left: FWL_VKEYCODE = 37;
3131pub const FWL_VKEYCODE_FWL_VKEY_Up: FWL_VKEYCODE = 38;
3132pub const FWL_VKEYCODE_FWL_VKEY_Right: FWL_VKEYCODE = 39;
3133pub const FWL_VKEYCODE_FWL_VKEY_Down: FWL_VKEYCODE = 40;
3134pub const FWL_VKEYCODE_FWL_VKEY_Select: FWL_VKEYCODE = 41;
3135pub const FWL_VKEYCODE_FWL_VKEY_Print: FWL_VKEYCODE = 42;
3136pub const FWL_VKEYCODE_FWL_VKEY_Execute: FWL_VKEYCODE = 43;
3137pub const FWL_VKEYCODE_FWL_VKEY_Snapshot: FWL_VKEYCODE = 44;
3138pub const FWL_VKEYCODE_FWL_VKEY_Insert: FWL_VKEYCODE = 45;
3139pub const FWL_VKEYCODE_FWL_VKEY_Delete: FWL_VKEYCODE = 46;
3140pub const FWL_VKEYCODE_FWL_VKEY_Help: FWL_VKEYCODE = 47;
3141pub const FWL_VKEYCODE_FWL_VKEY_0: FWL_VKEYCODE = 48;
3142pub const FWL_VKEYCODE_FWL_VKEY_1: FWL_VKEYCODE = 49;
3143pub const FWL_VKEYCODE_FWL_VKEY_2: FWL_VKEYCODE = 50;
3144pub const FWL_VKEYCODE_FWL_VKEY_3: FWL_VKEYCODE = 51;
3145pub const FWL_VKEYCODE_FWL_VKEY_4: FWL_VKEYCODE = 52;
3146pub const FWL_VKEYCODE_FWL_VKEY_5: FWL_VKEYCODE = 53;
3147pub const FWL_VKEYCODE_FWL_VKEY_6: FWL_VKEYCODE = 54;
3148pub const FWL_VKEYCODE_FWL_VKEY_7: FWL_VKEYCODE = 55;
3149pub const FWL_VKEYCODE_FWL_VKEY_8: FWL_VKEYCODE = 56;
3150pub const FWL_VKEYCODE_FWL_VKEY_9: FWL_VKEYCODE = 57;
3151pub const FWL_VKEYCODE_FWL_VKEY_A: FWL_VKEYCODE = 65;
3152pub const FWL_VKEYCODE_FWL_VKEY_B: FWL_VKEYCODE = 66;
3153pub const FWL_VKEYCODE_FWL_VKEY_C: FWL_VKEYCODE = 67;
3154pub const FWL_VKEYCODE_FWL_VKEY_D: FWL_VKEYCODE = 68;
3155pub const FWL_VKEYCODE_FWL_VKEY_E: FWL_VKEYCODE = 69;
3156pub const FWL_VKEYCODE_FWL_VKEY_F: FWL_VKEYCODE = 70;
3157pub const FWL_VKEYCODE_FWL_VKEY_G: FWL_VKEYCODE = 71;
3158pub const FWL_VKEYCODE_FWL_VKEY_H: FWL_VKEYCODE = 72;
3159pub const FWL_VKEYCODE_FWL_VKEY_I: FWL_VKEYCODE = 73;
3160pub const FWL_VKEYCODE_FWL_VKEY_J: FWL_VKEYCODE = 74;
3161pub const FWL_VKEYCODE_FWL_VKEY_K: FWL_VKEYCODE = 75;
3162pub const FWL_VKEYCODE_FWL_VKEY_L: FWL_VKEYCODE = 76;
3163pub const FWL_VKEYCODE_FWL_VKEY_M: FWL_VKEYCODE = 77;
3164pub const FWL_VKEYCODE_FWL_VKEY_N: FWL_VKEYCODE = 78;
3165pub const FWL_VKEYCODE_FWL_VKEY_O: FWL_VKEYCODE = 79;
3166pub const FWL_VKEYCODE_FWL_VKEY_P: FWL_VKEYCODE = 80;
3167pub const FWL_VKEYCODE_FWL_VKEY_Q: FWL_VKEYCODE = 81;
3168pub const FWL_VKEYCODE_FWL_VKEY_R: FWL_VKEYCODE = 82;
3169pub const FWL_VKEYCODE_FWL_VKEY_S: FWL_VKEYCODE = 83;
3170pub const FWL_VKEYCODE_FWL_VKEY_T: FWL_VKEYCODE = 84;
3171pub const FWL_VKEYCODE_FWL_VKEY_U: FWL_VKEYCODE = 85;
3172pub const FWL_VKEYCODE_FWL_VKEY_V: FWL_VKEYCODE = 86;
3173pub const FWL_VKEYCODE_FWL_VKEY_W: FWL_VKEYCODE = 87;
3174pub const FWL_VKEYCODE_FWL_VKEY_X: FWL_VKEYCODE = 88;
3175pub const FWL_VKEYCODE_FWL_VKEY_Y: FWL_VKEYCODE = 89;
3176pub const FWL_VKEYCODE_FWL_VKEY_Z: FWL_VKEYCODE = 90;
3177pub const FWL_VKEYCODE_FWL_VKEY_LWin: FWL_VKEYCODE = 91;
3178pub const FWL_VKEYCODE_FWL_VKEY_Command: FWL_VKEYCODE = 91;
3179pub const FWL_VKEYCODE_FWL_VKEY_RWin: FWL_VKEYCODE = 92;
3180pub const FWL_VKEYCODE_FWL_VKEY_Apps: FWL_VKEYCODE = 93;
3181pub const FWL_VKEYCODE_FWL_VKEY_Sleep: FWL_VKEYCODE = 95;
3182pub const FWL_VKEYCODE_FWL_VKEY_NumPad0: FWL_VKEYCODE = 96;
3183pub const FWL_VKEYCODE_FWL_VKEY_NumPad1: FWL_VKEYCODE = 97;
3184pub const FWL_VKEYCODE_FWL_VKEY_NumPad2: FWL_VKEYCODE = 98;
3185pub const FWL_VKEYCODE_FWL_VKEY_NumPad3: FWL_VKEYCODE = 99;
3186pub const FWL_VKEYCODE_FWL_VKEY_NumPad4: FWL_VKEYCODE = 100;
3187pub const FWL_VKEYCODE_FWL_VKEY_NumPad5: FWL_VKEYCODE = 101;
3188pub const FWL_VKEYCODE_FWL_VKEY_NumPad6: FWL_VKEYCODE = 102;
3189pub const FWL_VKEYCODE_FWL_VKEY_NumPad7: FWL_VKEYCODE = 103;
3190pub const FWL_VKEYCODE_FWL_VKEY_NumPad8: FWL_VKEYCODE = 104;
3191pub const FWL_VKEYCODE_FWL_VKEY_NumPad9: FWL_VKEYCODE = 105;
3192pub const FWL_VKEYCODE_FWL_VKEY_Multiply: FWL_VKEYCODE = 106;
3193pub const FWL_VKEYCODE_FWL_VKEY_Add: FWL_VKEYCODE = 107;
3194pub const FWL_VKEYCODE_FWL_VKEY_Separator: FWL_VKEYCODE = 108;
3195pub const FWL_VKEYCODE_FWL_VKEY_Subtract: FWL_VKEYCODE = 109;
3196pub const FWL_VKEYCODE_FWL_VKEY_Decimal: FWL_VKEYCODE = 110;
3197pub const FWL_VKEYCODE_FWL_VKEY_Divide: FWL_VKEYCODE = 111;
3198pub const FWL_VKEYCODE_FWL_VKEY_F1: FWL_VKEYCODE = 112;
3199pub const FWL_VKEYCODE_FWL_VKEY_F2: FWL_VKEYCODE = 113;
3200pub const FWL_VKEYCODE_FWL_VKEY_F3: FWL_VKEYCODE = 114;
3201pub const FWL_VKEYCODE_FWL_VKEY_F4: FWL_VKEYCODE = 115;
3202pub const FWL_VKEYCODE_FWL_VKEY_F5: FWL_VKEYCODE = 116;
3203pub const FWL_VKEYCODE_FWL_VKEY_F6: FWL_VKEYCODE = 117;
3204pub const FWL_VKEYCODE_FWL_VKEY_F7: FWL_VKEYCODE = 118;
3205pub const FWL_VKEYCODE_FWL_VKEY_F8: FWL_VKEYCODE = 119;
3206pub const FWL_VKEYCODE_FWL_VKEY_F9: FWL_VKEYCODE = 120;
3207pub const FWL_VKEYCODE_FWL_VKEY_F10: FWL_VKEYCODE = 121;
3208pub const FWL_VKEYCODE_FWL_VKEY_F11: FWL_VKEYCODE = 122;
3209pub const FWL_VKEYCODE_FWL_VKEY_F12: FWL_VKEYCODE = 123;
3210pub const FWL_VKEYCODE_FWL_VKEY_F13: FWL_VKEYCODE = 124;
3211pub const FWL_VKEYCODE_FWL_VKEY_F14: FWL_VKEYCODE = 125;
3212pub const FWL_VKEYCODE_FWL_VKEY_F15: FWL_VKEYCODE = 126;
3213pub const FWL_VKEYCODE_FWL_VKEY_F16: FWL_VKEYCODE = 127;
3214pub const FWL_VKEYCODE_FWL_VKEY_F17: FWL_VKEYCODE = 128;
3215pub const FWL_VKEYCODE_FWL_VKEY_F18: FWL_VKEYCODE = 129;
3216pub const FWL_VKEYCODE_FWL_VKEY_F19: FWL_VKEYCODE = 130;
3217pub const FWL_VKEYCODE_FWL_VKEY_F20: FWL_VKEYCODE = 131;
3218pub const FWL_VKEYCODE_FWL_VKEY_F21: FWL_VKEYCODE = 132;
3219pub const FWL_VKEYCODE_FWL_VKEY_F22: FWL_VKEYCODE = 133;
3220pub const FWL_VKEYCODE_FWL_VKEY_F23: FWL_VKEYCODE = 134;
3221pub const FWL_VKEYCODE_FWL_VKEY_F24: FWL_VKEYCODE = 135;
3222pub const FWL_VKEYCODE_FWL_VKEY_NunLock: FWL_VKEYCODE = 144;
3223pub const FWL_VKEYCODE_FWL_VKEY_Scroll: FWL_VKEYCODE = 145;
3224pub const FWL_VKEYCODE_FWL_VKEY_LShift: FWL_VKEYCODE = 160;
3225pub const FWL_VKEYCODE_FWL_VKEY_RShift: FWL_VKEYCODE = 161;
3226pub const FWL_VKEYCODE_FWL_VKEY_LControl: FWL_VKEYCODE = 162;
3227pub const FWL_VKEYCODE_FWL_VKEY_RControl: FWL_VKEYCODE = 163;
3228pub const FWL_VKEYCODE_FWL_VKEY_LMenu: FWL_VKEYCODE = 164;
3229pub const FWL_VKEYCODE_FWL_VKEY_RMenu: FWL_VKEYCODE = 165;
3230pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Back: FWL_VKEYCODE = 166;
3231pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Forward: FWL_VKEYCODE = 167;
3232pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Refresh: FWL_VKEYCODE = 168;
3233pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Stop: FWL_VKEYCODE = 169;
3234pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Search: FWL_VKEYCODE = 170;
3235pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Favorites: FWL_VKEYCODE = 171;
3236pub const FWL_VKEYCODE_FWL_VKEY_BROWSER_Home: FWL_VKEYCODE = 172;
3237pub const FWL_VKEYCODE_FWL_VKEY_VOLUME_Mute: FWL_VKEYCODE = 173;
3238pub const FWL_VKEYCODE_FWL_VKEY_VOLUME_Down: FWL_VKEYCODE = 174;
3239pub const FWL_VKEYCODE_FWL_VKEY_VOLUME_Up: FWL_VKEYCODE = 175;
3240pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_NEXT_Track: FWL_VKEYCODE = 176;
3241pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_PREV_Track: FWL_VKEYCODE = 177;
3242pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_Stop: FWL_VKEYCODE = 178;
3243pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_PLAY_Pause: FWL_VKEYCODE = 179;
3244pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_LAUNCH_Mail: FWL_VKEYCODE = 180;
3245pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_LAUNCH_MEDIA_Select: FWL_VKEYCODE = 181;
3246pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_LAUNCH_APP1: FWL_VKEYCODE = 182;
3247pub const FWL_VKEYCODE_FWL_VKEY_MEDIA_LAUNCH_APP2: FWL_VKEYCODE = 183;
3248pub const FWL_VKEYCODE_FWL_VKEY_OEM_1: FWL_VKEYCODE = 186;
3249pub const FWL_VKEYCODE_FWL_VKEY_OEM_Plus: FWL_VKEYCODE = 187;
3250pub const FWL_VKEYCODE_FWL_VKEY_OEM_Comma: FWL_VKEYCODE = 188;
3251pub const FWL_VKEYCODE_FWL_VKEY_OEM_Minus: FWL_VKEYCODE = 189;
3252pub const FWL_VKEYCODE_FWL_VKEY_OEM_Period: FWL_VKEYCODE = 190;
3253pub const FWL_VKEYCODE_FWL_VKEY_OEM_2: FWL_VKEYCODE = 191;
3254pub const FWL_VKEYCODE_FWL_VKEY_OEM_3: FWL_VKEYCODE = 192;
3255pub const FWL_VKEYCODE_FWL_VKEY_OEM_4: FWL_VKEYCODE = 219;
3256pub const FWL_VKEYCODE_FWL_VKEY_OEM_5: FWL_VKEYCODE = 220;
3257pub const FWL_VKEYCODE_FWL_VKEY_OEM_6: FWL_VKEYCODE = 221;
3258pub const FWL_VKEYCODE_FWL_VKEY_OEM_7: FWL_VKEYCODE = 222;
3259pub const FWL_VKEYCODE_FWL_VKEY_OEM_8: FWL_VKEYCODE = 223;
3260pub const FWL_VKEYCODE_FWL_VKEY_OEM_102: FWL_VKEYCODE = 226;
3261pub const FWL_VKEYCODE_FWL_VKEY_ProcessKey: FWL_VKEYCODE = 229;
3262pub const FWL_VKEYCODE_FWL_VKEY_Packet: FWL_VKEYCODE = 231;
3263pub const FWL_VKEYCODE_FWL_VKEY_Attn: FWL_VKEYCODE = 246;
3264pub const FWL_VKEYCODE_FWL_VKEY_Crsel: FWL_VKEYCODE = 247;
3265pub const FWL_VKEYCODE_FWL_VKEY_Exsel: FWL_VKEYCODE = 248;
3266pub const FWL_VKEYCODE_FWL_VKEY_Ereof: FWL_VKEYCODE = 249;
3267pub const FWL_VKEYCODE_FWL_VKEY_Play: FWL_VKEYCODE = 250;
3268pub const FWL_VKEYCODE_FWL_VKEY_Zoom: FWL_VKEYCODE = 251;
3269pub const FWL_VKEYCODE_FWL_VKEY_NoName: FWL_VKEYCODE = 252;
3270pub const FWL_VKEYCODE_FWL_VKEY_PA1: FWL_VKEYCODE = 253;
3271pub const FWL_VKEYCODE_FWL_VKEY_OEM_Clear: FWL_VKEYCODE = 254;
3272pub const FWL_VKEYCODE_FWL_VKEY_Unknown: FWL_VKEYCODE = 0;
3273#[doc = " Virtual keycodes."]
3274pub type FWL_VKEYCODE = ::std::os::raw::c_uint;
3275pub type rsize_t = ::std::os::raw::c_ulong;
3276#[repr(C)]
3277#[derive(Debug, Copy, Clone)]
3278pub struct _IPDF_JsPlatform {
3279    #[doc = " Version number of the interface. Currently must be 2."]
3280    pub version: ::std::os::raw::c_int,
3281    #[doc = " Method: app_alert\n       Pop up a dialog to show warning or hint.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       Msg         -   A string containing the message to be displayed.\n       Title       -   The title of the dialog.\n       Type        -   The type of button group, one of the\n                       JSPLATFORM_ALERT_BUTTON_* values above.\n       nIcon       -   The type of the icon, one of the\n                       JSPLATFORM_ALERT_ICON_* above.\n Return Value:\n       Option selected by user in dialogue, one of the\n       JSPLATFORM_ALERT_RETURN_* values above."]
3282    pub app_alert: ::std::option::Option<
3283        unsafe extern "C" fn(
3284            pThis: *mut _IPDF_JsPlatform,
3285            Msg: FPDF_WIDESTRING,
3286            Title: FPDF_WIDESTRING,
3287            Type: ::std::os::raw::c_int,
3288            Icon: ::std::os::raw::c_int,
3289        ) -> ::std::os::raw::c_int,
3290    >,
3291    #[doc = " Method: app_beep\n       Causes the system to play a sound.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       nType       -   The sound type, see JSPLATFORM_BEEP_TYPE_*\n                       above.\n Return Value:\n       None"]
3292    pub app_beep:
3293        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _IPDF_JsPlatform, nType: ::std::os::raw::c_int)>,
3294    #[doc = " Method: app_response\n       Displays a dialog box containing a question and an entry field for\n       the user to reply to the question.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       Question    -   The question to be posed to the user.\n       Title       -   The title of the dialog box.\n       Default     -   A default value for the answer to the question. If\n                       not specified, no default value is presented.\n       cLabel      -   A short string to appear in front of and on the\n                       same line as the edit text field.\n       bPassword   -   If true, indicates that the user's response should\n                       be shown as asterisks (*) or bullets (?) to mask\n                       the response, which might be sensitive information.\n       response    -   A string buffer allocated by PDFium, to receive the\n                       user's response.\n       length      -   The length of the buffer in bytes. Currently, it is\n                       always 2048.\n Return Value:\n       Number of bytes the complete user input would actually require, not\n       including trailing zeros, regardless of the value of the length\n       parameter or the presence of the response buffer.\n Comments:\n       No matter on what platform, the response buffer should be always\n       written using UTF-16LE encoding. If a response buffer is\n       present and the size of the user input exceeds the capacity of the\n       buffer as specified by the length parameter, only the\n       first \"length\" bytes of the user input are to be written to the\n       buffer."]
3295    pub app_response: ::std::option::Option<
3296        unsafe extern "C" fn(
3297            pThis: *mut _IPDF_JsPlatform,
3298            Question: FPDF_WIDESTRING,
3299            Title: FPDF_WIDESTRING,
3300            Default: FPDF_WIDESTRING,
3301            cLabel: FPDF_WIDESTRING,
3302            bPassword: FPDF_BOOL,
3303            response: *mut ::std::os::raw::c_void,
3304            length: ::std::os::raw::c_int,
3305        ) -> ::std::os::raw::c_int,
3306    >,
3307    #[doc = " Method: Doc_getFilePath\n       Get the file path of the current document.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       filePath    -   The string buffer to receive the file path. Can\n                       be NULL.\n       length      -   The length of the buffer, number of bytes. Can\n                       be 0.\n Return Value:\n       Number of bytes the filePath consumes, including trailing zeros.\n Comments:\n       The filePath should always be provided in the local encoding.\n       The return value always indicated number of bytes required for\n       the buffer, even when there is no buffer specified, or the buffer\n       size is less than required. In this case, the buffer will not\n       be modified."]
3308    pub Doc_getFilePath: ::std::option::Option<
3309        unsafe extern "C" fn(
3310            pThis: *mut _IPDF_JsPlatform,
3311            filePath: *mut ::std::os::raw::c_void,
3312            length: ::std::os::raw::c_int,
3313        ) -> ::std::os::raw::c_int,
3314    >,
3315    #[doc = " Method: Doc_mail\n       Mails the data buffer as an attachment to all recipients, with or\n       without user interaction.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       mailData    -   Pointer to the data buffer to be sent. Can be NULL.\n       length      -   The size,in bytes, of the buffer pointed by\n                       mailData parameter. Can be 0.\n       bUI         -   If true, the rest of the parameters are used in a\n                       compose-new-message window that is displayed to the\n                       user. If false, the cTo parameter is required and\n                       all others are optional.\n       To          -   A semicolon-delimited list of recipients for the\n                       message.\n       Subject     -   The subject of the message. The length limit is\n                       64 KB.\n       CC          -   A semicolon-delimited list of CC recipients for\n                       the message.\n       BCC         -   A semicolon-delimited list of BCC recipients for\n                       the message.\n       Msg         -   The content of the message. The length limit is\n                       64 KB.\n Return Value:\n       None.\n Comments:\n       If the parameter mailData is NULL or length is 0, the current\n       document will be mailed as an attachment to all recipients."]
3316    pub Doc_mail: ::std::option::Option<
3317        unsafe extern "C" fn(
3318            pThis: *mut _IPDF_JsPlatform,
3319            mailData: *mut ::std::os::raw::c_void,
3320            length: ::std::os::raw::c_int,
3321            bUI: FPDF_BOOL,
3322            To: FPDF_WIDESTRING,
3323            Subject: FPDF_WIDESTRING,
3324            CC: FPDF_WIDESTRING,
3325            BCC: FPDF_WIDESTRING,
3326            Msg: FPDF_WIDESTRING,
3327        ),
3328    >,
3329    #[doc = " Method: Doc_print\n       Prints all or a specific number of pages of the document.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis         -   Pointer to the interface structure itself.\n       bUI           -   If true, will cause a UI to be presented to the\n                         user to obtain printing information and confirm\n                         the action.\n       nStart        -   A 0-based index that defines the start of an\n                         inclusive range of pages.\n       nEnd          -   A 0-based index that defines the end of an\n                         inclusive page range.\n       bSilent       -   If true, suppresses the cancel dialog box while\n                         the document is printing. The default is false.\n       bShrinkToFit  -   If true, the page is shrunk (if necessary) to\n                         fit within the imageable area of the printed page.\n       bPrintAsImage -   If true, print pages as an image.\n       bReverse      -   If true, print from nEnd to nStart.\n       bAnnotations  -   If true (the default), annotations are\n                         printed.\n Return Value:\n       None."]
3330    pub Doc_print: ::std::option::Option<
3331        unsafe extern "C" fn(
3332            pThis: *mut _IPDF_JsPlatform,
3333            bUI: FPDF_BOOL,
3334            nStart: ::std::os::raw::c_int,
3335            nEnd: ::std::os::raw::c_int,
3336            bSilent: FPDF_BOOL,
3337            bShrinkToFit: FPDF_BOOL,
3338            bPrintAsImage: FPDF_BOOL,
3339            bReverse: FPDF_BOOL,
3340            bAnnotations: FPDF_BOOL,
3341        ),
3342    >,
3343    #[doc = " Method: Doc_submitForm\n       Send the form data to a specified URL.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       formData    -   Pointer to the data buffer to be sent.\n       length      -   The size,in bytes, of the buffer pointed by\n                       formData parameter.\n       URL         -   The URL to send to.\n Return Value:\n       None."]
3344    pub Doc_submitForm: ::std::option::Option<
3345        unsafe extern "C" fn(
3346            pThis: *mut _IPDF_JsPlatform,
3347            formData: *mut ::std::os::raw::c_void,
3348            length: ::std::os::raw::c_int,
3349            URL: FPDF_WIDESTRING,
3350        ),
3351    >,
3352    #[doc = " Method: Doc_gotoPage\n       Jump to a specified page.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n       nPageNum    -   The specified page number, zero for the first page.\n Return Value:\n       None."]
3353    pub Doc_gotoPage:
3354        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _IPDF_JsPlatform, nPageNum: ::std::os::raw::c_int)>,
3355    #[doc = " Method: Field_browse\n       Show a file selection dialog, and return the selected file path.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       filePath    -   Pointer to the data buffer to receive the file\n                       path. Can be NULL.\n       length      -   The length of the buffer, in bytes. Can be 0.\n Return Value:\n       Number of bytes the filePath consumes, including trailing zeros.\n Comments:\n       The filePath should always be provided in local encoding."]
3356    pub Field_browse: ::std::option::Option<
3357        unsafe extern "C" fn(
3358            pThis: *mut _IPDF_JsPlatform,
3359            filePath: *mut ::std::os::raw::c_void,
3360            length: ::std::os::raw::c_int,
3361        ) -> ::std::os::raw::c_int,
3362    >,
3363    #[doc = " Pointer for embedder-specific data. Unused by PDFium, and despite\n its name, can be any data the embedder desires, though traditionally\n a FPDF_FORMFILLINFO interface."]
3364    pub m_pFormfillinfo: *mut ::std::os::raw::c_void,
3365    #[doc = " Unused in v3, retain for compatibility."]
3366    pub m_isolate: *mut ::std::os::raw::c_void,
3367    #[doc = " Unused in v3, retain for compatibility."]
3368    pub m_v8EmbedderSlot: ::std::os::raw::c_uint,
3369}
3370pub type IPDF_JSPLATFORM = _IPDF_JsPlatform;
3371#[doc = " Function signature for the callback function passed to the FFI_SetTimer\n method.\n Parameters:\n          idEvent     -   Identifier of the timer.\n Return value:\n          None."]
3372pub type TimerCallback = ::std::option::Option<unsafe extern "C" fn(idEvent: ::std::os::raw::c_int)>;
3373#[doc = " Declares of a struct type to the local system time."]
3374#[repr(C)]
3375#[derive(Debug, Copy, Clone)]
3376pub struct _FPDF_SYSTEMTIME {
3377    #[doc = " years since 1900"]
3378    pub wYear: ::std::os::raw::c_ushort,
3379    #[doc = " months since January - [0,11]"]
3380    pub wMonth: ::std::os::raw::c_ushort,
3381    #[doc = " days since Sunday - [0,6]"]
3382    pub wDayOfWeek: ::std::os::raw::c_ushort,
3383    #[doc = " day of the month - [1,31]"]
3384    pub wDay: ::std::os::raw::c_ushort,
3385    #[doc = " hours since midnight - [0,23]"]
3386    pub wHour: ::std::os::raw::c_ushort,
3387    #[doc = " minutes after the hour - [0,59]"]
3388    pub wMinute: ::std::os::raw::c_ushort,
3389    #[doc = " seconds after the minute - [0,59]"]
3390    pub wSecond: ::std::os::raw::c_ushort,
3391    #[doc = " milliseconds after the second - [0,999]"]
3392    pub wMilliseconds: ::std::os::raw::c_ushort,
3393}
3394#[doc = " Declares of a struct type to the local system time."]
3395pub type FPDF_SYSTEMTIME = _FPDF_SYSTEMTIME;
3396#[repr(C)]
3397#[derive(Debug, Copy, Clone)]
3398pub struct _FPDF_FORMFILLINFO {
3399    #[doc = " Version number of the interface.\n Version 1 contains stable interfaces. Version 2 has additional\n experimental interfaces.\n When PDFium is built without the XFA module, version can be 1 or 2.\n With version 1, only stable interfaces are called. With version 2,\n additional experimental interfaces are also called.\n When PDFium is built with the XFA module, version must be 2.\n All the XFA related interfaces are experimental. If PDFium is built with\n the XFA module and version 1 then none of the XFA related interfaces\n would be called. When PDFium is built with XFA module then the version\n must be 2."]
3400    pub version: ::std::os::raw::c_int,
3401    #[doc = " Method: Release\n       Give the implementation a chance to release any resources after the\n       interface is no longer used.\n Interface Version:\n       1\n Implementation Required:\n       No\n Comments:\n       Called by PDFium during the final cleanup process.\n Parameters:\n       pThis       -   Pointer to the interface structure itself\n Return Value:\n       None"]
3402    pub Release: ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO)>,
3403    #[doc = " Method: FFI_Invalidate\n       Invalidate the client area within the specified rectangle.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       page        -   Handle to the page. Returned by FPDF_LoadPage().\n       left        -   Left position of the client area in PDF page\n                       coordinates.\n       top         -   Top position of the client area in PDF page\n                       coordinates.\n       right       -   Right position of the client area in PDF page\n                       coordinates.\n       bottom      -   Bottom position of the client area in PDF page\n                       coordinates.\n Return Value:\n       None.\n Comments:\n       All positions are measured in PDF \"user space\".\n       Implementation should call FPDF_RenderPageBitmap() for repainting\n       the specified page area."]
3404    pub FFI_Invalidate: ::std::option::Option<
3405        unsafe extern "C" fn(
3406            pThis: *mut _FPDF_FORMFILLINFO,
3407            page: FPDF_PAGE,
3408            left: f64,
3409            top: f64,
3410            right: f64,
3411            bottom: f64,
3412        ),
3413    >,
3414    #[doc = " Method: FFI_OutputSelectedRect\n       When the user selects text in form fields with the mouse, this\n       callback function will be invoked with the selected areas.\n Interface Version:\n       1\n Implementation Required:\n       No\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       page        -   Handle to the page. Returned by FPDF_LoadPage()/\n       left        -   Left position of the client area in PDF page\n                       coordinates.\n       top         -   Top position of the client area in PDF page\n                       coordinates.\n       right       -   Right position of the client area in PDF page\n                       coordinates.\n       bottom      -   Bottom position of the client area in PDF page\n                       coordinates.\n Return Value:\n       None.\n Comments:\n       This callback function is useful for implementing special text\n       selection effects. An implementation should first record the\n       returned rectangles, then draw them one by one during the next\n       painting period. Lastly, it should remove all the recorded\n       rectangles when finished painting."]
3415    pub FFI_OutputSelectedRect: ::std::option::Option<
3416        unsafe extern "C" fn(
3417            pThis: *mut _FPDF_FORMFILLINFO,
3418            page: FPDF_PAGE,
3419            left: f64,
3420            top: f64,
3421            right: f64,
3422            bottom: f64,
3423        ),
3424    >,
3425    #[doc = " Method: FFI_SetCursor\n       Set the Cursor shape.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       nCursorType -   Cursor type, see Flags for Cursor type for details.\n Return value:\n       None."]
3426    pub FFI_SetCursor:
3427        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, nCursorType: ::std::os::raw::c_int)>,
3428    #[doc = " Method: FFI_SetTimer\n       This method installs a system timer. An interval value is specified,\n       and every time that interval elapses, the system must call into the\n       callback function with the timer ID as returned by this function.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       uElapse     -   Specifies the time-out value, in milliseconds.\n       lpTimerFunc -   A pointer to the callback function-TimerCallback.\n Return value:\n       The timer identifier of the new timer if the function is successful.\n       An application passes this value to the FFI_KillTimer method to kill\n       the timer. Nonzero if it is successful; otherwise, it is zero."]
3429    pub FFI_SetTimer: ::std::option::Option<
3430        unsafe extern "C" fn(
3431            pThis: *mut _FPDF_FORMFILLINFO,
3432            uElapse: ::std::os::raw::c_int,
3433            lpTimerFunc: TimerCallback,
3434        ) -> ::std::os::raw::c_int,
3435    >,
3436    #[doc = " Method: FFI_KillTimer\n       This method uninstalls a system timer, as set by an earlier call to\n       FFI_SetTimer.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       nTimerID    -   The timer ID returned by FFI_SetTimer function.\n Return value:\n       None."]
3437    pub FFI_KillTimer:
3438        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, nTimerID: ::std::os::raw::c_int)>,
3439    #[doc = " Method: FFI_GetLocalTime\n       This method receives the current local time on the system.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n Return value:\n       The local time. See FPDF_SYSTEMTIME above for details.\n Note: Unused."]
3440    pub FFI_GetLocalTime:
3441        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO) -> FPDF_SYSTEMTIME>,
3442    #[doc = " Method: FFI_OnChange\n       This method will be invoked to notify the implementation when the\n       value of any FormField on the document had been changed.\n Interface Version:\n       1\n Implementation Required:\n       no\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n Return value:\n       None."]
3443    pub FFI_OnChange: ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO)>,
3444    #[doc = " Method: FFI_GetPage\n       This method receives the page handle associated with a specified\n       page index.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       document    -   Handle to document. Returned by FPDF_LoadDocument().\n       nPageIndex  -   Index number of the page. 0 for the first page.\n Return value:\n       Handle to the page, as previously returned to the implementation by\n       FPDF_LoadPage().\n Comments:\n       The implementation is expected to keep track of the page handles it\n       receives from PDFium, and their mappings to page numbers. In some\n       cases, the document-level JavaScript action may refer to a page\n       which hadn't been loaded yet. To successfully run the Javascript\n       action, the implementation needs to load the page."]
3445    pub FFI_GetPage: ::std::option::Option<
3446        unsafe extern "C" fn(
3447            pThis: *mut _FPDF_FORMFILLINFO,
3448            document: FPDF_DOCUMENT,
3449            nPageIndex: ::std::os::raw::c_int,
3450        ) -> FPDF_PAGE,
3451    >,
3452    #[doc = " Method: FFI_GetCurrentPage\n       This method receives the handle to the current page.\n Interface Version:\n       1\n Implementation Required:\n       Yes when V8 support is present, otherwise unused.\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       document    -   Handle to document. Returned by FPDF_LoadDocument().\n Return value:\n       Handle to the page. Returned by FPDF_LoadPage().\n Comments:\n       PDFium doesn't keep keep track of the \"current page\" (e.g. the one\n       that is most visible on screen), so it must ask the embedder for\n       this information."]
3453    pub FFI_GetCurrentPage: ::std::option::Option<
3454        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, document: FPDF_DOCUMENT) -> FPDF_PAGE,
3455    >,
3456    #[doc = " Method: FFI_GetRotation\n       This method receives currently rotation of the page view.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis       -   Pointer to the interface structure itself.\n       page        -   Handle to page, as returned by FPDF_LoadPage().\n Return value:\n       A number to indicate the page rotation in 90 degree increments\n       in a clockwise direction:\n         0 - 0 degrees\n         1 - 90 degrees\n         2 - 180 degrees\n         3 - 270 degrees\n Note: Unused."]
3457    pub FFI_GetRotation: ::std::option::Option<
3458        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, page: FPDF_PAGE) -> ::std::os::raw::c_int,
3459    >,
3460    #[doc = " Method: FFI_ExecuteNamedAction\n       This method will execute a named action.\n Interface Version:\n       1\n Implementation Required:\n       yes\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       namedAction     -   A byte string which indicates the named action,\n                           terminated by 0.\n Return value:\n       None.\n Comments:\n       See ISO 32000-1:2008, section 12.6.4.11 for descriptions of the\n       standard named actions, but note that a document may supply any\n       name of its choosing."]
3461    pub FFI_ExecuteNamedAction:
3462        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, namedAction: FPDF_BYTESTRING)>,
3463    #[doc = " Method: FFI_SetTextFieldFocus\n       Called when a text field is getting or losing focus.\n Interface Version:\n       1\n Implementation Required:\n       no\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       value           -   The string value of the form field, in UTF-16LE\n                           format.\n       valueLen        -   The length of the string value. This is the\n                           number of characters, not bytes.\n       is_focus        -   True if the form field is getting focus, false\n                           if the form field is losing focus.\n Return value:\n       None.\n Comments:\n       Only supports text fields and combobox fields."]
3464    pub FFI_SetTextFieldFocus: ::std::option::Option<
3465        unsafe extern "C" fn(
3466            pThis: *mut _FPDF_FORMFILLINFO,
3467            value: FPDF_WIDESTRING,
3468            valueLen: FPDF_DWORD,
3469            is_focus: FPDF_BOOL,
3470        ),
3471    >,
3472    #[doc = " Method: FFI_DoURIAction\n       Ask the implementation to navigate to a uniform resource identifier.\n Interface Version:\n       1\n Implementation Required:\n       No\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       bsURI           -   A byte string which indicates the uniform\n                           resource identifier, terminated by 0.\n Return value:\n       None.\n Comments:\n       If the embedder is version 2 or higher and have implementation for\n       FFI_DoURIActionWithKeyboardModifier, then\n       FFI_DoURIActionWithKeyboardModifier takes precedence over\n       FFI_DoURIAction.\n       See the URI actions description of <<PDF Reference, version 1.7>>\n       for more details."]
3473    pub FFI_DoURIAction:
3474        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, bsURI: FPDF_BYTESTRING)>,
3475    #[doc = " Method: FFI_DoGoToAction\n       This action changes the view to a specified destination.\n Interface Version:\n       1\n Implementation Required:\n       No\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       nPageIndex      -   The index of the PDF page.\n       zoomMode        -   The zoom mode for viewing page. See below.\n       fPosArray       -   The float array which carries the position info.\n       sizeofArray     -   The size of float array.\n PDFZoom values:\n         - XYZ = 1\n         - FITPAGE = 2\n         - FITHORZ = 3\n         - FITVERT = 4\n         - FITRECT = 5\n         - FITBBOX = 6\n         - FITBHORZ = 7\n         - FITBVERT = 8\n Return value:\n       None.\n Comments:\n       See the Destinations description of <<PDF Reference, version 1.7>>\n       in 8.2.1 for more details."]
3476    pub FFI_DoGoToAction: ::std::option::Option<
3477        unsafe extern "C" fn(
3478            pThis: *mut _FPDF_FORMFILLINFO,
3479            nPageIndex: ::std::os::raw::c_int,
3480            zoomMode: ::std::os::raw::c_int,
3481            fPosArray: *mut f32,
3482            sizeofArray: ::std::os::raw::c_int,
3483        ),
3484    >,
3485    #[doc = " Pointer to IPDF_JSPLATFORM interface.\n Unused if PDFium is built without V8 support. Otherwise, if NULL, then\n JavaScript will be prevented from executing while rendering the document."]
3486    pub m_pJsPlatform: *mut IPDF_JSPLATFORM,
3487    #[doc = " Whether the XFA module is disabled when built with the XFA module.\n Interface Version:\n       Ignored if |version| < 2."]
3488    pub xfa_disabled: FPDF_BOOL,
3489    #[doc = " Method: FFI_DisplayCaret\n       This method will show the caret at specified position.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       page            -   Handle to page. Returned by FPDF_LoadPage().\n       left            -   Left position of the client area in PDF page\n                           coordinates.\n       top             -   Top position of the client area in PDF page\n                           coordinates.\n       right           -   Right position of the client area in PDF page\n                           coordinates.\n       bottom          -   Bottom position of the client area in PDF page\n                           coordinates.\n Return value:\n       None."]
3490    pub FFI_DisplayCaret: ::std::option::Option<
3491        unsafe extern "C" fn(
3492            pThis: *mut _FPDF_FORMFILLINFO,
3493            page: FPDF_PAGE,
3494            bVisible: FPDF_BOOL,
3495            left: f64,
3496            top: f64,
3497            right: f64,
3498            bottom: f64,
3499        ),
3500    >,
3501    #[doc = " Method: FFI_GetCurrentPageIndex\n       This method will get the current page index.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       document        -   Handle to document from FPDF_LoadDocument().\n Return value:\n       The index of current page."]
3502    pub FFI_GetCurrentPageIndex: ::std::option::Option<
3503        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, document: FPDF_DOCUMENT) -> ::std::os::raw::c_int,
3504    >,
3505    #[doc = " Method: FFI_SetCurrentPage\n       This method will set the current page.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       document        -   Handle to document from FPDF_LoadDocument().\n       iCurPage        -   The index of the PDF page.\n Return value:\n       None."]
3506    pub FFI_SetCurrentPage: ::std::option::Option<
3507        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, document: FPDF_DOCUMENT, iCurPage: ::std::os::raw::c_int),
3508    >,
3509    #[doc = " Method: FFI_GotoURL\n       This method will navigate to the specified URL.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis            -   Pointer to the interface structure itself.\n       document         -   Handle to document from FPDF_LoadDocument().\n       wsURL            -   The string value of the URL, in UTF-16LE format.\n Return value:\n       None."]
3510    pub FFI_GotoURL: ::std::option::Option<
3511        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, document: FPDF_DOCUMENT, wsURL: FPDF_WIDESTRING),
3512    >,
3513    #[doc = " Method: FFI_GetPageViewRect\n       This method will get the current page view rectangle.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       page            -   Handle to page. Returned by FPDF_LoadPage().\n       left            -   The pointer to receive left position of the page\n                           view area in PDF page coordinates.\n       top             -   The pointer to receive top position of the page\n                           view area in PDF page coordinates.\n       right           -   The pointer to receive right position of the\n                           page view area in PDF page coordinates.\n       bottom          -   The pointer to receive bottom position of the\n                           page view area in PDF page coordinates.\n Return value:\n     None."]
3514    pub FFI_GetPageViewRect: ::std::option::Option<
3515        unsafe extern "C" fn(
3516            pThis: *mut _FPDF_FORMFILLINFO,
3517            page: FPDF_PAGE,
3518            left: *mut f64,
3519            top: *mut f64,
3520            right: *mut f64,
3521            bottom: *mut f64,
3522        ),
3523    >,
3524    #[doc = " Method: FFI_PageEvent\n       This method fires when pages have been added to or deleted from\n       the XFA document.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       page_count      -   The number of pages to be added or deleted.\n       event_type      -   See FXFA_PAGEVIEWEVENT_* above.\n Return value:\n       None.\n Comments:\n       The pages to be added or deleted always start from the last page\n       of document. This means that if parameter page_count is 2 and\n       event type is FXFA_PAGEVIEWEVENT_POSTADDED, 2 new pages have been\n       appended to the tail of document; If page_count is 2 and\n       event type is FXFA_PAGEVIEWEVENT_POSTREMOVED, the last 2 pages\n       have been deleted."]
3525    pub FFI_PageEvent: ::std::option::Option<
3526        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, page_count: ::std::os::raw::c_int, event_type: FPDF_DWORD),
3527    >,
3528    #[doc = " Method: FFI_PopupMenu\n       This method will track the right context menu for XFA fields.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       page            -   Handle to page. Returned by FPDF_LoadPage().\n       hWidget         -   Always null, exists for compatibility.\n       menuFlag        -   The menu flags. Please refer to macro definition\n                           of FXFA_MENU_XXX and this can be one or a\n                           combination of these macros.\n       x               -   X position of the client area in PDF page\n                           coordinates.\n       y               -   Y position of the client area in PDF page\n                           coordinates.\n Return value:\n       TRUE indicates success; otherwise false."]
3529    pub FFI_PopupMenu: ::std::option::Option<
3530        unsafe extern "C" fn(
3531            pThis: *mut _FPDF_FORMFILLINFO,
3532            page: FPDF_PAGE,
3533            hWidget: FPDF_WIDGET,
3534            menuFlag: ::std::os::raw::c_int,
3535            x: f32,
3536            y: f32,
3537        ) -> FPDF_BOOL,
3538    >,
3539    #[doc = " Method: FFI_OpenFile\n       This method will open the specified file with the specified mode.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       fileFlag        -   The file flag. Please refer to macro definition\n                           of FXFA_SAVEAS_XXX and use one of these macros.\n       wsURL           -   The string value of the file URL, in UTF-16LE\n                           format.\n       mode            -   The mode for open file, e.g. \"rb\" or \"wb\".\n Return value:\n       The handle to FPDF_FILEHANDLER."]
3540    pub FFI_OpenFile: ::std::option::Option<
3541        unsafe extern "C" fn(
3542            pThis: *mut _FPDF_FORMFILLINFO,
3543            fileFlag: ::std::os::raw::c_int,
3544            wsURL: FPDF_WIDESTRING,
3545            mode: *const ::std::os::raw::c_char,
3546        ) -> *mut FPDF_FILEHANDLER,
3547    >,
3548    #[doc = " Method: FFI_EmailTo\n       This method will email the specified file stream to the specified\n       contact.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       pFileHandler    -   Handle to the FPDF_FILEHANDLER.\n       pTo             -   A semicolon-delimited list of recipients for the\n                           message,in UTF-16LE format.\n       pSubject        -   The subject of the message,in UTF-16LE format.\n       pCC             -   A semicolon-delimited list of CC recipients for\n                           the message,in UTF-16LE format.\n       pBcc            -   A semicolon-delimited list of BCC recipients for\n                           the message,in UTF-16LE format.\n       pMsg            -   Pointer to the data buffer to be sent.Can be\n                           NULL,in UTF-16LE format.\n Return value:\n       None."]
3549    pub FFI_EmailTo: ::std::option::Option<
3550        unsafe extern "C" fn(
3551            pThis: *mut _FPDF_FORMFILLINFO,
3552            fileHandler: *mut FPDF_FILEHANDLER,
3553            pTo: FPDF_WIDESTRING,
3554            pSubject: FPDF_WIDESTRING,
3555            pCC: FPDF_WIDESTRING,
3556            pBcc: FPDF_WIDESTRING,
3557            pMsg: FPDF_WIDESTRING,
3558        ),
3559    >,
3560    #[doc = " Method: FFI_UploadTo\n       This method will upload the specified file stream to the\n       specified URL.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       pFileHandler    -   Handle to the FPDF_FILEHANDLER.\n       fileFlag        -   The file flag. Please refer to macro definition\n                           of FXFA_SAVEAS_XXX and use one of these macros.\n       uploadTo        -   Pointer to the URL path, in UTF-16LE format.\n Return value:\n       None."]
3561    pub FFI_UploadTo: ::std::option::Option<
3562        unsafe extern "C" fn(
3563            pThis: *mut _FPDF_FORMFILLINFO,
3564            fileHandler: *mut FPDF_FILEHANDLER,
3565            fileFlag: ::std::os::raw::c_int,
3566            uploadTo: FPDF_WIDESTRING,
3567        ),
3568    >,
3569    #[doc = " Method: FFI_GetPlatform\n       This method will get the current platform.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       platform        -   Pointer to the data buffer to receive the\n                           platform,in UTF-16LE format. Can be NULL.\n       length          -   The length of the buffer in bytes. Can be\n                           0 to query the required size.\n Return value:\n       The length of the buffer, number of bytes."]
3570    pub FFI_GetPlatform: ::std::option::Option<
3571        unsafe extern "C" fn(
3572            pThis: *mut _FPDF_FORMFILLINFO,
3573            platform: *mut ::std::os::raw::c_void,
3574            length: ::std::os::raw::c_int,
3575        ) -> ::std::os::raw::c_int,
3576    >,
3577    #[doc = " Method: FFI_GetLanguage\n       This method will get the current language.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       language        -   Pointer to the data buffer to receive the\n                           current language. Can be NULL.\n       length          -   The length of the buffer in bytes. Can be\n                           0 to query the required size.\n Return value:\n       The length of the buffer, number of bytes."]
3578    pub FFI_GetLanguage: ::std::option::Option<
3579        unsafe extern "C" fn(
3580            pThis: *mut _FPDF_FORMFILLINFO,
3581            language: *mut ::std::os::raw::c_void,
3582            length: ::std::os::raw::c_int,
3583        ) -> ::std::os::raw::c_int,
3584    >,
3585    #[doc = " Method: FFI_DownloadFromURL\n       This method will download the specified file from the URL.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       URL             -   The string value of the file URL, in UTF-16LE\n                           format.\n Return value:\n       The handle to FPDF_FILEHANDLER."]
3586    pub FFI_DownloadFromURL: ::std::option::Option<
3587        unsafe extern "C" fn(pThis: *mut _FPDF_FORMFILLINFO, URL: FPDF_WIDESTRING) -> *mut FPDF_FILEHANDLER,
3588    >,
3589    #[doc = " Method: FFI_PostRequestURL\n       This method will post the request to the server URL.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       wsURL           -   The string value of the server URL, in UTF-16LE\n                           format.\n       wsData          -   The post data,in UTF-16LE format.\n       wsContentType   -   The content type of the request data, in\n                           UTF-16LE format.\n       wsEncode        -   The encode type, in UTF-16LE format.\n       wsHeader        -   The request header,in UTF-16LE format.\n       response        -   Pointer to the FPDF_BSTR to receive the response\n                           data from the server, in UTF-16LE format.\n Return value:\n       TRUE indicates success, otherwise FALSE."]
3590    pub FFI_PostRequestURL: ::std::option::Option<
3591        unsafe extern "C" fn(
3592            pThis: *mut _FPDF_FORMFILLINFO,
3593            wsURL: FPDF_WIDESTRING,
3594            wsData: FPDF_WIDESTRING,
3595            wsContentType: FPDF_WIDESTRING,
3596            wsEncode: FPDF_WIDESTRING,
3597            wsHeader: FPDF_WIDESTRING,
3598            response: *mut FPDF_BSTR,
3599        ) -> FPDF_BOOL,
3600    >,
3601    #[doc = " Method: FFI_PutRequestURL\n       This method will put the request to the server URL.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       Required for XFA, otherwise set to NULL.\n Parameters:\n       pThis           -   Pointer to the interface structure itself.\n       wsURL           -   The string value of the server URL, in UTF-16LE\n                           format.\n       wsData          -   The put data, in UTF-16LE format.\n       wsEncode        -   The encode type, in UTR-16LE format.\n Return value:\n       TRUE indicates success, otherwise FALSE."]
3602    pub FFI_PutRequestURL: ::std::option::Option<
3603        unsafe extern "C" fn(
3604            pThis: *mut _FPDF_FORMFILLINFO,
3605            wsURL: FPDF_WIDESTRING,
3606            wsData: FPDF_WIDESTRING,
3607            wsEncode: FPDF_WIDESTRING,
3608        ) -> FPDF_BOOL,
3609    >,
3610    #[doc = " Method: FFI_OnFocusChange\n     Called when the focused annotation is updated.\n Interface Version:\n     Ignored if |version| < 2.\n Implementation Required:\n     No\n Parameters:\n     param           -   Pointer to the interface structure itself.\n     annot           -   The focused annotation.\n     page_index      -   Index number of the page which contains the\n                         focused annotation. 0 for the first page.\n Return value:\n     None.\n Comments:\n     This callback function is useful for implementing any view based\n     action such as scrolling the annotation rect into view. The\n     embedder should not copy and store the annot as its scope is\n     limited to this call only."]
3611    pub FFI_OnFocusChange: ::std::option::Option<
3612        unsafe extern "C" fn(param: *mut _FPDF_FORMFILLINFO, annot: FPDF_ANNOTATION, page_index: ::std::os::raw::c_int),
3613    >,
3614    #[doc = " Method: FFI_DoURIActionWithKeyboardModifier\n       Ask the implementation to navigate to a uniform resource identifier\n       with the specified modifiers.\n Interface Version:\n       Ignored if |version| < 2.\n Implementation Required:\n       No\n Parameters:\n       param           -   Pointer to the interface structure itself.\n       uri             -   A byte string which indicates the uniform\n                           resource identifier, terminated by 0.\n       modifiers       -   Keyboard modifier that indicates which of\n                           the virtual keys are down, if any.\n Return value:\n       None.\n Comments:\n       If the embedder who is version 2 and does not implement this API,\n       then a call will be redirected to FFI_DoURIAction.\n       See the URI actions description of <<PDF Reference, version 1.7>>\n       for more details."]
3615    pub FFI_DoURIActionWithKeyboardModifier: ::std::option::Option<
3616        unsafe extern "C" fn(param: *mut _FPDF_FORMFILLINFO, uri: FPDF_BYTESTRING, modifiers: ::std::os::raw::c_int),
3617    >,
3618}
3619pub type FPDF_FORMFILLINFO = _FPDF_FORMFILLINFO;
3620unsafe extern "C" {
3621    #[doc = " Function: FPDFDOC_InitFormFillEnvironment\n       Initialize form fill environment.\n Parameters:\n       document        -   Handle to document from FPDF_LoadDocument().\n       formInfo        -   Pointer to a FPDF_FORMFILLINFO structure.\n Return Value:\n       Handle to the form fill module, or NULL on failure.\n Comments:\n       This function should be called before any form fill operation.\n       The FPDF_FORMFILLINFO passed in via |formInfo| must remain valid until\n       the returned FPDF_FORMHANDLE is closed."]
3622    pub fn FPDFDOC_InitFormFillEnvironment(
3623        document: FPDF_DOCUMENT,
3624        formInfo: *mut FPDF_FORMFILLINFO,
3625    ) -> FPDF_FORMHANDLE;
3626}
3627unsafe extern "C" {
3628    #[doc = " Function: FPDFDOC_ExitFormFillEnvironment\n       Take ownership of |hHandle| and exit form fill environment.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       None.\n Comments:\n       This function is a no-op when |hHandle| is null."]
3629    pub fn FPDFDOC_ExitFormFillEnvironment(hHandle: FPDF_FORMHANDLE);
3630}
3631unsafe extern "C" {
3632    #[doc = " Function: FORM_OnAfterLoadPage\n       This method is required for implementing all the form related\n       functions. Should be invoked after user successfully loaded a\n       PDF page, and FPDFDOC_InitFormFillEnvironment() has been invoked.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       None."]
3633    pub fn FORM_OnAfterLoadPage(page: FPDF_PAGE, hHandle: FPDF_FORMHANDLE);
3634}
3635unsafe extern "C" {
3636    #[doc = " Function: FORM_OnBeforeClosePage\n       This method is required for implementing all the form related\n       functions. Should be invoked before user closes the PDF page.\n Parameters:\n        page        -   Handle to the page, as returned by FPDF_LoadPage().\n        hHandle     -   Handle to the form fill module, as returned by\n                        FPDFDOC_InitFormFillEnvironment().\n Return Value:\n        None."]
3637    pub fn FORM_OnBeforeClosePage(page: FPDF_PAGE, hHandle: FPDF_FORMHANDLE);
3638}
3639unsafe extern "C" {
3640    #[doc = " Function: FORM_DoDocumentJSAction\n       This method is required for performing document-level JavaScript\n       actions. It should be invoked after the PDF document has been loaded.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       None.\n Comments:\n       If there is document-level JavaScript action embedded in the\n       document, this method will execute the JavaScript action. Otherwise,\n       the method will do nothing."]
3641    pub fn FORM_DoDocumentJSAction(hHandle: FPDF_FORMHANDLE);
3642}
3643unsafe extern "C" {
3644    #[doc = " Function: FORM_DoDocumentOpenAction\n       This method is required for performing open-action when the document\n       is opened.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       None.\n Comments:\n       This method will do nothing if there are no open-actions embedded\n       in the document."]
3645    pub fn FORM_DoDocumentOpenAction(hHandle: FPDF_FORMHANDLE);
3646}
3647unsafe extern "C" {
3648    #[doc = " Function: FORM_DoDocumentAAction\n       This method is required for performing the document's\n       additional-action.\n Parameters:\n       hHandle     -   Handle to the form fill module. Returned by\n                       FPDFDOC_InitFormFillEnvironment.\n       aaType      -   The type of the additional-actions which defined\n                       above.\n Return Value:\n       None.\n Comments:\n       This method will do nothing if there is no document\n       additional-action corresponding to the specified |aaType|."]
3649    pub fn FORM_DoDocumentAAction(hHandle: FPDF_FORMHANDLE, aaType: ::std::os::raw::c_int);
3650}
3651unsafe extern "C" {
3652    #[doc = " Function: FORM_DoPageAAction\n       This method is required for performing the page object's\n       additional-action when opened or closed.\n Parameters:\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       aaType      -   The type of the page object's additional-actions\n                       which defined above.\n Return Value:\n       None.\n Comments:\n       This method will do nothing if no additional-action corresponding\n       to the specified |aaType| exists."]
3653    pub fn FORM_DoPageAAction(page: FPDF_PAGE, hHandle: FPDF_FORMHANDLE, aaType: ::std::os::raw::c_int);
3654}
3655unsafe extern "C" {
3656    #[doc = " Function: FORM_OnMouseMove\n       Call this member function when the mouse cursor moves.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_x      -   Specifies the x-coordinate of the cursor in PDF user\n                       space.\n       page_y      -   Specifies the y-coordinate of the cursor in PDF user\n                       space.\n Return Value:\n       True indicates success; otherwise false."]
3657    pub fn FORM_OnMouseMove(
3658        hHandle: FPDF_FORMHANDLE,
3659        page: FPDF_PAGE,
3660        modifier: ::std::os::raw::c_int,
3661        page_x: f64,
3662        page_y: f64,
3663    ) -> FPDF_BOOL;
3664}
3665unsafe extern "C" {
3666    #[doc = " Experimental API\n Function: FORM_OnMouseWheel\n       Call this member function when the user scrolls the mouse wheel.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_coord  -   Specifies the coordinates of the cursor in PDF user\n                       space.\n       delta_x     -   Specifies the amount of wheel movement on the x-axis,\n                       in units of platform-agnostic wheel deltas. Negative\n                       values mean left.\n       delta_y     -   Specifies the amount of wheel movement on the y-axis,\n                       in units of platform-agnostic wheel deltas. Negative\n                       values mean down.\n Return Value:\n       True indicates success; otherwise false.\n Comments:\n       For |delta_x| and |delta_y|, the caller must normalize\n       platform-specific wheel deltas. e.g. On Windows, a delta value of 240\n       for a WM_MOUSEWHEEL event normalizes to 2, since Windows defines\n       WHEEL_DELTA as 120."]
3667    pub fn FORM_OnMouseWheel(
3668        hHandle: FPDF_FORMHANDLE,
3669        page: FPDF_PAGE,
3670        modifier: ::std::os::raw::c_int,
3671        page_coord: *const FS_POINTF,
3672        delta_x: ::std::os::raw::c_int,
3673        delta_y: ::std::os::raw::c_int,
3674    ) -> FPDF_BOOL;
3675}
3676unsafe extern "C" {
3677    #[doc = " Function: FORM_OnFocus\n       This function focuses the form annotation at a given point. If the\n       annotation at the point already has focus, nothing happens. If there\n       is no annotation at the point, removes form focus.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_x      -   Specifies the x-coordinate of the cursor in PDF user\n                       space.\n       page_y      -   Specifies the y-coordinate of the cursor in PDF user\n                       space.\n Return Value:\n       True if there is an annotation at the given point and it has focus."]
3678    pub fn FORM_OnFocus(
3679        hHandle: FPDF_FORMHANDLE,
3680        page: FPDF_PAGE,
3681        modifier: ::std::os::raw::c_int,
3682        page_x: f64,
3683        page_y: f64,
3684    ) -> FPDF_BOOL;
3685}
3686unsafe extern "C" {
3687    #[doc = " Function: FORM_OnLButtonDown\n       Call this member function when the user presses the left\n       mouse button.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_x      -   Specifies the x-coordinate of the cursor in PDF user\n                       space.\n       page_y      -   Specifies the y-coordinate of the cursor in PDF user\n                       space.\n Return Value:\n       True indicates success; otherwise false."]
3688    pub fn FORM_OnLButtonDown(
3689        hHandle: FPDF_FORMHANDLE,
3690        page: FPDF_PAGE,
3691        modifier: ::std::os::raw::c_int,
3692        page_x: f64,
3693        page_y: f64,
3694    ) -> FPDF_BOOL;
3695}
3696unsafe extern "C" {
3697    #[doc = " Function: FORM_OnRButtonDown\n       Same as above, execpt for the right mouse button.\n Comments:\n       At the present time, has no effect except in XFA builds, but is\n       included for the sake of symmetry."]
3698    pub fn FORM_OnRButtonDown(
3699        hHandle: FPDF_FORMHANDLE,
3700        page: FPDF_PAGE,
3701        modifier: ::std::os::raw::c_int,
3702        page_x: f64,
3703        page_y: f64,
3704    ) -> FPDF_BOOL;
3705}
3706unsafe extern "C" {
3707    #[doc = " Function: FORM_OnLButtonUp\n       Call this member function when the user releases the left\n       mouse button.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_x      -   Specifies the x-coordinate of the cursor in device.\n       page_y      -   Specifies the y-coordinate of the cursor in device.\n Return Value:\n       True indicates success; otherwise false."]
3708    pub fn FORM_OnLButtonUp(
3709        hHandle: FPDF_FORMHANDLE,
3710        page: FPDF_PAGE,
3711        modifier: ::std::os::raw::c_int,
3712        page_x: f64,
3713        page_y: f64,
3714    ) -> FPDF_BOOL;
3715}
3716unsafe extern "C" {
3717    #[doc = " Function: FORM_OnRButtonUp\n       Same as above, execpt for the right mouse button.\n Comments:\n       At the present time, has no effect except in XFA builds, but is\n       included for the sake of symmetry."]
3718    pub fn FORM_OnRButtonUp(
3719        hHandle: FPDF_FORMHANDLE,
3720        page: FPDF_PAGE,
3721        modifier: ::std::os::raw::c_int,
3722        page_x: f64,
3723        page_y: f64,
3724    ) -> FPDF_BOOL;
3725}
3726unsafe extern "C" {
3727    #[doc = " Function: FORM_OnLButtonDoubleClick\n       Call this member function when the user double clicks the\n       left mouse button.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       modifier    -   Indicates whether various virtual keys are down.\n       page_x      -   Specifies the x-coordinate of the cursor in PDF user\n                       space.\n       page_y      -   Specifies the y-coordinate of the cursor in PDF user\n                       space.\n Return Value:\n       True indicates success; otherwise false."]
3728    pub fn FORM_OnLButtonDoubleClick(
3729        hHandle: FPDF_FORMHANDLE,
3730        page: FPDF_PAGE,
3731        modifier: ::std::os::raw::c_int,
3732        page_x: f64,
3733        page_y: f64,
3734    ) -> FPDF_BOOL;
3735}
3736unsafe extern "C" {
3737    #[doc = " Function: FORM_OnKeyDown\n       Call this member function when a nonsystem key is pressed.\n Parameters:\n       hHandle     -   Handle to the form fill module, aseturned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       nKeyCode    -   The virtual-key code of the given key (see\n                       fpdf_fwlevent.h for virtual key codes).\n       modifier    -   Mask of key flags (see fpdf_fwlevent.h for key\n                       flag values).\n Return Value:\n       True indicates success; otherwise false."]
3738    pub fn FORM_OnKeyDown(
3739        hHandle: FPDF_FORMHANDLE,
3740        page: FPDF_PAGE,
3741        nKeyCode: ::std::os::raw::c_int,
3742        modifier: ::std::os::raw::c_int,
3743    ) -> FPDF_BOOL;
3744}
3745unsafe extern "C" {
3746    #[doc = " Function: FORM_OnKeyUp\n       Call this member function when a nonsystem key is released.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       nKeyCode    -   The virtual-key code of the given key (see\n                       fpdf_fwlevent.h for virtual key codes).\n       modifier    -   Mask of key flags (see fpdf_fwlevent.h for key\n                       flag values).\n Return Value:\n       True indicates success; otherwise false.\n Comments:\n       Currently unimplemented and always returns false. PDFium reserves this\n       API and may implement it in the future on an as-needed basis."]
3747    pub fn FORM_OnKeyUp(
3748        hHandle: FPDF_FORMHANDLE,
3749        page: FPDF_PAGE,
3750        nKeyCode: ::std::os::raw::c_int,
3751        modifier: ::std::os::raw::c_int,
3752    ) -> FPDF_BOOL;
3753}
3754unsafe extern "C" {
3755    #[doc = " Function: FORM_OnChar\n       Call this member function when a keystroke translates to a\n       nonsystem character.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       nChar       -   The character code value itself.\n       modifier    -   Mask of key flags (see fpdf_fwlevent.h for key\n                       flag values).\n Return Value:\n       True indicates success; otherwise false."]
3756    pub fn FORM_OnChar(
3757        hHandle: FPDF_FORMHANDLE,
3758        page: FPDF_PAGE,
3759        nChar: ::std::os::raw::c_int,
3760        modifier: ::std::os::raw::c_int,
3761    ) -> FPDF_BOOL;
3762}
3763unsafe extern "C" {
3764    #[doc = " Experimental API\n Function: FORM_GetFocusedText\n       Call this function to obtain the text within the current focused\n       field, if any.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       buffer      -   Buffer for holding the form text, encoded in\n                       UTF-16LE. If NULL, |buffer| is not modified.\n       buflen      -   Length of |buffer| in bytes. If |buflen| is less\n                       than the length of the form text string, |buffer| is\n                       not modified.\n Return Value:\n       Length in bytes for the text in the focused field."]
3765    pub fn FORM_GetFocusedText(
3766        hHandle: FPDF_FORMHANDLE,
3767        page: FPDF_PAGE,
3768        buffer: *mut ::std::os::raw::c_void,
3769        buflen: ::std::os::raw::c_ulong,
3770    ) -> ::std::os::raw::c_ulong;
3771}
3772unsafe extern "C" {
3773    #[doc = " Function: FORM_GetSelectedText\n       Call this function to obtain selected text within a form text\n       field or form combobox text field.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n       buffer      -   Buffer for holding the selected text, encoded in\n                       UTF-16LE. If NULL, |buffer| is not modified.\n       buflen      -   Length of |buffer| in bytes. If |buflen| is less\n                       than the length of the selected text string,\n                       |buffer| is not modified.\n Return Value:\n       Length in bytes of selected text in form text field or form combobox\n       text field."]
3774    pub fn FORM_GetSelectedText(
3775        hHandle: FPDF_FORMHANDLE,
3776        page: FPDF_PAGE,
3777        buffer: *mut ::std::os::raw::c_void,
3778        buflen: ::std::os::raw::c_ulong,
3779    ) -> ::std::os::raw::c_ulong;
3780}
3781unsafe extern "C" {
3782    #[doc = " Experimental API\n Function: FORM_ReplaceAndKeepSelection\n       Call this function to replace the selected text in a form\n       text field or user-editable form combobox text field with another\n       text string (which can be empty or non-empty). If there is no\n       selected text, this function will append the replacement text after\n       the current caret position. After the insertion, the inserted text\n       will be selected.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as Returned by FPDF_LoadPage().\n       wsText      -   The text to be inserted, in UTF-16LE format.\n Return Value:\n       None."]
3783    pub fn FORM_ReplaceAndKeepSelection(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE, wsText: FPDF_WIDESTRING);
3784}
3785unsafe extern "C" {
3786    #[doc = " Function: FORM_ReplaceSelection\n       Call this function to replace the selected text in a form\n       text field or user-editable form combobox text field with another\n       text string (which can be empty or non-empty). If there is no\n       selected text, this function will append the replacement text after\n       the current caret position. After the insertion, the selection range\n       will be set to empty.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as Returned by FPDF_LoadPage().\n       wsText      -   The text to be inserted, in UTF-16LE format.\n Return Value:\n       None."]
3787    pub fn FORM_ReplaceSelection(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE, wsText: FPDF_WIDESTRING);
3788}
3789unsafe extern "C" {
3790    #[doc = " Experimental API\n Function: FORM_SelectAllText\n       Call this function to select all the text within the currently focused\n       form text field or form combobox text field.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return Value:\n       Whether the operation succeeded or not."]
3791    pub fn FORM_SelectAllText(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE) -> FPDF_BOOL;
3792}
3793unsafe extern "C" {
3794    #[doc = " Function: FORM_CanUndo\n       Find out if it is possible for the current focused widget in a given\n       form to perform an undo operation.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return Value:\n       True if it is possible to undo."]
3795    pub fn FORM_CanUndo(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE) -> FPDF_BOOL;
3796}
3797unsafe extern "C" {
3798    #[doc = " Function: FORM_CanRedo\n       Find out if it is possible for the current focused widget in a given\n       form to perform a redo operation.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return Value:\n       True if it is possible to redo."]
3799    pub fn FORM_CanRedo(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE) -> FPDF_BOOL;
3800}
3801unsafe extern "C" {
3802    #[doc = " Function: FORM_Undo\n       Make the current focused widget perform an undo operation.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return Value:\n       True if the undo operation succeeded."]
3803    pub fn FORM_Undo(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE) -> FPDF_BOOL;
3804}
3805unsafe extern "C" {
3806    #[doc = " Function: FORM_Redo\n       Make the current focused widget perform a redo operation.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return Value:\n       True if the redo operation succeeded."]
3807    pub fn FORM_Redo(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE) -> FPDF_BOOL;
3808}
3809unsafe extern "C" {
3810    #[doc = " Function: FORM_ForceToKillFocus.\n       Call this member function to force to kill the focus of the form\n       field which has focus. If it would kill the focus of a form field,\n       save the value of form field if was changed by theuser.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       True indicates success; otherwise false."]
3811    pub fn FORM_ForceToKillFocus(hHandle: FPDF_FORMHANDLE) -> FPDF_BOOL;
3812}
3813unsafe extern "C" {
3814    #[doc = " Experimental API.\n Function: FORM_GetFocusedAnnot.\n       Call this member function to get the currently focused annotation.\n Parameters:\n       handle      -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       page_index  -   Buffer to hold the index number of the page which\n                       contains the focused annotation. 0 for the first page.\n                       Can't be NULL.\n       annot       -   Buffer to hold the focused annotation. Can't be NULL.\n Return Value:\n       On success, return true and write to the out parameters. Otherwise\n       return false and leave the out parameters unmodified.\n Comments:\n       Not currently supported for XFA forms - will report no focused\n       annotation.\n       Must call FPDFPage_CloseAnnot() when the annotation returned in |annot|\n       by this function is no longer needed.\n       This will return true and set |page_index| to -1 and |annot| to NULL,\n       if there is no focused annotation."]
3815    pub fn FORM_GetFocusedAnnot(
3816        handle: FPDF_FORMHANDLE,
3817        page_index: *mut ::std::os::raw::c_int,
3818        annot: *mut FPDF_ANNOTATION,
3819    ) -> FPDF_BOOL;
3820}
3821unsafe extern "C" {
3822    #[doc = " Experimental API.\n Function: FORM_SetFocusedAnnot.\n       Call this member function to set the currently focused annotation.\n Parameters:\n       handle      -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       annot       -   Handle to an annotation.\n Return Value:\n       True indicates success; otherwise false.\n Comments:\n       |annot| can't be NULL. To kill focus, use FORM_ForceToKillFocus()\n       instead."]
3823    pub fn FORM_SetFocusedAnnot(handle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> FPDF_BOOL;
3824}
3825unsafe extern "C" {
3826    #[doc = " Function: FPDFPage_HasFormFieldAtPoint\n     Get the form field type by point.\n Parameters:\n     hHandle     -   Handle to the form fill module. Returned by\n                     FPDFDOC_InitFormFillEnvironment().\n     page        -   Handle to the page. Returned by FPDF_LoadPage().\n     page_x      -   X position in PDF \"user space\".\n     page_y      -   Y position in PDF \"user space\".\n Return Value:\n     Return the type of the form field; -1 indicates no field.\n     See field types above."]
3827    pub fn FPDFPage_HasFormFieldAtPoint(
3828        hHandle: FPDF_FORMHANDLE,
3829        page: FPDF_PAGE,
3830        page_x: f64,
3831        page_y: f64,
3832    ) -> ::std::os::raw::c_int;
3833}
3834unsafe extern "C" {
3835    #[doc = " Function: FPDFPage_FormFieldZOrderAtPoint\n     Get the form field z-order by point.\n Parameters:\n     hHandle     -   Handle to the form fill module. Returned by\n                     FPDFDOC_InitFormFillEnvironment().\n     page        -   Handle to the page. Returned by FPDF_LoadPage().\n     page_x      -   X position in PDF \"user space\".\n     page_y      -   Y position in PDF \"user space\".\n Return Value:\n     Return the z-order of the form field; -1 indicates no field.\n     Higher numbers are closer to the front."]
3836    pub fn FPDFPage_FormFieldZOrderAtPoint(
3837        hHandle: FPDF_FORMHANDLE,
3838        page: FPDF_PAGE,
3839        page_x: f64,
3840        page_y: f64,
3841    ) -> ::std::os::raw::c_int;
3842}
3843unsafe extern "C" {
3844    #[doc = " Function: FPDF_SetFormFieldHighlightColor\n       Set the highlight color of the specified (or all) form fields\n       in the document.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       doc         -   Handle to the document, as returned by\n                       FPDF_LoadDocument().\n       fieldType   -   A 32-bit integer indicating the type of a form\n                       field (defined above).\n       color       -   The highlight color of the form field. Constructed by\n                       0xxxrrggbb.\n Return Value:\n       None.\n Comments:\n       When the parameter fieldType is set to FPDF_FORMFIELD_UNKNOWN, the\n       highlight color will be applied to all the form fields in the\n       document.\n       Please refresh the client window to show the highlight immediately\n       if necessary."]
3845    pub fn FPDF_SetFormFieldHighlightColor(
3846        hHandle: FPDF_FORMHANDLE,
3847        fieldType: ::std::os::raw::c_int,
3848        color: ::std::os::raw::c_ulong,
3849    );
3850}
3851unsafe extern "C" {
3852    #[doc = " Function: FPDF_SetFormFieldHighlightAlpha\n       Set the transparency of the form field highlight color in the\n       document.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n       doc         -   Handle to the document, as returaned by\n                       FPDF_LoadDocument().\n       alpha       -   The transparency of the form field highlight color,\n                       between 0-255.\n Return Value:\n       None."]
3853    pub fn FPDF_SetFormFieldHighlightAlpha(hHandle: FPDF_FORMHANDLE, alpha: ::std::os::raw::c_uchar);
3854}
3855unsafe extern "C" {
3856    #[doc = " Function: FPDF_RemoveFormFieldHighlight\n       Remove the form field highlight color in the document.\n Parameters:\n       hHandle     -   Handle to the form fill module, as returned by\n                       FPDFDOC_InitFormFillEnvironment().\n Return Value:\n       None.\n Comments:\n       Please refresh the client window to remove the highlight immediately\n       if necessary."]
3857    pub fn FPDF_RemoveFormFieldHighlight(hHandle: FPDF_FORMHANDLE);
3858}
3859unsafe extern "C" {
3860    #[doc = " Function: FPDF_FFLDraw\n       Render FormFields and popup window on a page to a device independent\n       bitmap.\n Parameters:\n       hHandle      -   Handle to the form fill module, as returned by\n                        FPDFDOC_InitFormFillEnvironment().\n       bitmap       -   Handle to the device independent bitmap (as the\n                        output buffer). Bitmap handles can be created by\n                        FPDFBitmap_Create().\n       page         -   Handle to the page, as returned by FPDF_LoadPage().\n       start_x      -   Left pixel position of the display area in the\n                        device coordinates.\n       start_y      -   Top pixel position of the display area in the device\n                        coordinates.\n       size_x       -   Horizontal size (in pixels) for displaying the page.\n       size_y       -   Vertical size (in pixels) for displaying the page.\n       rotate       -   Page orientation: 0 (normal), 1 (rotated 90 degrees\n                        clockwise), 2 (rotated 180 degrees), 3 (rotated 90\n                        degrees counter-clockwise).\n       flags        -   0 for normal display, or combination of flags\n                        defined above.\n Return Value:\n       None.\n Comments:\n       This function is designed to render annotations that are\n       user-interactive, which are widget annotations (for FormFields) and\n       popup annotations.\n       With the FPDF_ANNOT flag, this function will render a popup annotation\n       when users mouse-hover on a non-widget annotation. Regardless of\n       FPDF_ANNOT flag, this function will always render widget annotations\n       for FormFields.\n       In order to implement the FormFill functions, implementation should\n       call this function after rendering functions, such as\n       FPDF_RenderPageBitmap() or FPDF_RenderPageBitmap_Start(), have\n       finished rendering the page contents."]
3861    pub fn FPDF_FFLDraw(
3862        hHandle: FPDF_FORMHANDLE,
3863        bitmap: FPDF_BITMAP,
3864        page: FPDF_PAGE,
3865        start_x: ::std::os::raw::c_int,
3866        start_y: ::std::os::raw::c_int,
3867        size_x: ::std::os::raw::c_int,
3868        size_y: ::std::os::raw::c_int,
3869        rotate: ::std::os::raw::c_int,
3870        flags: ::std::os::raw::c_int,
3871    );
3872}
3873unsafe extern "C" {
3874    pub fn FPDF_FFLDrawSkia(
3875        hHandle: FPDF_FORMHANDLE,
3876        canvas: FPDF_SKIA_CANVAS,
3877        page: FPDF_PAGE,
3878        start_x: ::std::os::raw::c_int,
3879        start_y: ::std::os::raw::c_int,
3880        size_x: ::std::os::raw::c_int,
3881        size_y: ::std::os::raw::c_int,
3882        rotate: ::std::os::raw::c_int,
3883        flags: ::std::os::raw::c_int,
3884    );
3885}
3886unsafe extern "C" {
3887    #[doc = " Experimental API\n Function: FPDF_GetFormType\n           Returns the type of form contained in the PDF document.\n Parameters:\n           document - Handle to document.\n Return Value:\n           Integer value representing one of the FORMTYPE_ values.\n Comments:\n           If |document| is NULL, then the return value is FORMTYPE_NONE."]
3888    pub fn FPDF_GetFormType(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
3889}
3890unsafe extern "C" {
3891    #[doc = " Experimental API\n Function: FORM_SetIndexSelected\n           Selects/deselects the value at the given |index| of the focused\n           annotation.\n Parameters:\n           hHandle     -   Handle to the form fill module. Returned by\n                           FPDFDOC_InitFormFillEnvironment.\n           page        -   Handle to the page. Returned by FPDF_LoadPage\n           index       -   0-based index of value to be set as\n                           selected/unselected\n           selected    -   true to select, false to deselect\n Return Value:\n           TRUE if the operation succeeded.\n           FALSE if the operation failed or widget is not a supported type.\n Comments:\n           Intended for use with listbox/combobox widget types. Comboboxes\n           have at most a single value selected at a time which cannot be\n           deselected. Deselect on a combobox is a no-op that returns false.\n           Default implementation is a no-op that will return false for\n           other types.\n           Not currently supported for XFA forms - will return false."]
3892    pub fn FORM_SetIndexSelected(
3893        hHandle: FPDF_FORMHANDLE,
3894        page: FPDF_PAGE,
3895        index: ::std::os::raw::c_int,
3896        selected: FPDF_BOOL,
3897    ) -> FPDF_BOOL;
3898}
3899unsafe extern "C" {
3900    #[doc = " Experimental API\n Function: FORM_IsIndexSelected\n           Returns whether or not the value at |index| of the focused\n           annotation is currently selected.\n Parameters:\n           hHandle     -   Handle to the form fill module. Returned by\n                           FPDFDOC_InitFormFillEnvironment.\n           page        -   Handle to the page. Returned by FPDF_LoadPage\n           index       -   0-based Index of value to check\n Return Value:\n           TRUE if value at |index| is currently selected.\n           FALSE if value at |index| is not selected or widget is not a\n           supported type.\n Comments:\n           Intended for use with listbox/combobox widget types. Default\n           implementation is a no-op that will return false for other types.\n           Not currently supported for XFA forms - will return false."]
3901    pub fn FORM_IsIndexSelected(hHandle: FPDF_FORMHANDLE, page: FPDF_PAGE, index: ::std::os::raw::c_int) -> FPDF_BOOL;
3902}
3903unsafe extern "C" {
3904    #[doc = " Function: FPDF_LoadXFA\n          If the document consists of XFA fields, call this method to\n          attempt to load XFA fields.\n Parameters:\n          document     -   Handle to document from FPDF_LoadDocument().\n Return Value:\n          TRUE upon success, otherwise FALSE. If XFA support is not built\n          into PDFium, performs no action and always returns FALSE."]
3905    pub fn FPDF_LoadXFA(document: FPDF_DOCUMENT) -> FPDF_BOOL;
3906}
3907pub const FPDFANNOT_COLORTYPE_FPDFANNOT_COLORTYPE_Color: FPDFANNOT_COLORTYPE = 0;
3908pub const FPDFANNOT_COLORTYPE_FPDFANNOT_COLORTYPE_InteriorColor: FPDFANNOT_COLORTYPE = 1;
3909pub type FPDFANNOT_COLORTYPE = ::std::os::raw::c_uint;
3910unsafe extern "C" {
3911    #[doc = " Experimental API.\n Check if an annotation subtype is currently supported for creation.\n Currently supported subtypes:\n    - circle\n    - fileattachment\n    - freetext\n    - highlight\n    - ink\n    - link\n    - popup\n    - square,\n    - squiggly\n    - stamp\n    - strikeout\n    - text\n    - underline\n\n   subtype   - the subtype to be checked.\n\n Returns true if this subtype supported."]
3912    pub fn FPDFAnnot_IsSupportedSubtype(subtype: FPDF_ANNOTATION_SUBTYPE) -> FPDF_BOOL;
3913}
3914unsafe extern "C" {
3915    #[doc = " Experimental API.\n Create an annotation in |page| of the subtype |subtype|. If the specified\n subtype is illegal or unsupported, then a new annotation will not be created.\n Must call FPDFPage_CloseAnnot() when the annotation returned by this\n function is no longer needed.\n\n   page      - handle to a page.\n   subtype   - the subtype of the new annotation.\n\n Returns a handle to the new annotation object, or NULL on failure."]
3916    pub fn FPDFPage_CreateAnnot(page: FPDF_PAGE, subtype: FPDF_ANNOTATION_SUBTYPE) -> FPDF_ANNOTATION;
3917}
3918unsafe extern "C" {
3919    #[doc = " Experimental API.\n Get the number of annotations in |page|.\n\n   page   - handle to a page.\n\n Returns the number of annotations in |page|."]
3920    pub fn FPDFPage_GetAnnotCount(page: FPDF_PAGE) -> ::std::os::raw::c_int;
3921}
3922unsafe extern "C" {
3923    #[doc = " Experimental API.\n Get annotation in |page| at |index|. Must call FPDFPage_CloseAnnot() when the\n annotation returned by this function is no longer needed.\n\n   page  - handle to a page.\n   index - the index of the annotation.\n\n Returns a handle to the annotation object, or NULL on failure."]
3924    pub fn FPDFPage_GetAnnot(page: FPDF_PAGE, index: ::std::os::raw::c_int) -> FPDF_ANNOTATION;
3925}
3926unsafe extern "C" {
3927    #[doc = " Experimental API.\n Get the index of |annot| in |page|. This is the opposite of\n FPDFPage_GetAnnot().\n\n   page  - handle to the page that the annotation is on.\n   annot - handle to an annotation.\n\n Returns the index of |annot|, or -1 on failure."]
3928    pub fn FPDFPage_GetAnnotIndex(page: FPDF_PAGE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
3929}
3930unsafe extern "C" {
3931    #[doc = " Experimental API.\n Close an annotation. Must be called when the annotation returned by\n FPDFPage_CreateAnnot() or FPDFPage_GetAnnot() is no longer needed. This\n function does not remove the annotation from the document.\n\n   annot  - handle to an annotation."]
3932    pub fn FPDFPage_CloseAnnot(annot: FPDF_ANNOTATION);
3933}
3934unsafe extern "C" {
3935    #[doc = " Experimental API.\n Remove the annotation in |page| at |index|.\n\n   page  - handle to a page.\n   index - the index of the annotation.\n\n Returns true if successful."]
3936    pub fn FPDFPage_RemoveAnnot(page: FPDF_PAGE, index: ::std::os::raw::c_int) -> FPDF_BOOL;
3937}
3938unsafe extern "C" {
3939    #[doc = " Experimental API.\n Get the subtype of an annotation.\n\n   annot  - handle to an annotation.\n\n Returns the annotation subtype."]
3940    pub fn FPDFAnnot_GetSubtype(annot: FPDF_ANNOTATION) -> FPDF_ANNOTATION_SUBTYPE;
3941}
3942unsafe extern "C" {
3943    #[doc = " Experimental API.\n Check if an annotation subtype is currently supported for object extraction,\n update, and removal.\n Currently supported subtypes: ink and stamp.\n\n   subtype   - the subtype to be checked.\n\n Returns true if this subtype supported."]
3944    pub fn FPDFAnnot_IsObjectSupportedSubtype(subtype: FPDF_ANNOTATION_SUBTYPE) -> FPDF_BOOL;
3945}
3946unsafe extern "C" {
3947    #[doc = " Experimental API.\n Update |obj| in |annot|. |obj| must be in |annot| already and must have\n been retrieved by FPDFAnnot_GetObject(). Currently, only ink and stamp\n annotations are supported by this API. Also note that only path, image, and\n text objects have APIs for modification; see FPDFPath_*(), FPDFText_*(), and\n FPDFImageObj_*().\n\n   annot  - handle to an annotation.\n   obj    - handle to the object that |annot| needs to update.\n\n Return true if successful."]
3948    pub fn FPDFAnnot_UpdateObject(annot: FPDF_ANNOTATION, obj: FPDF_PAGEOBJECT) -> FPDF_BOOL;
3949}
3950unsafe extern "C" {
3951    #[doc = " Experimental API.\n Add a new InkStroke, represented by an array of points, to the InkList of\n |annot|. The API creates an InkList if one doesn't already exist in |annot|.\n This API works only for ink annotations. Please refer to ISO 32000-1:2008\n spec, section 12.5.6.13.\n\n   annot       - handle to an annotation.\n   points      - pointer to a FS_POINTF array representing input points.\n   point_count - number of elements in |points| array. This should not exceed\n                 the maximum value that can be represented by an int32_t).\n\n Returns the 0-based index at which the new InkStroke is added in the InkList\n of the |annot|. Returns -1 on failure."]
3952    pub fn FPDFAnnot_AddInkStroke(
3953        annot: FPDF_ANNOTATION,
3954        points: *const FS_POINTF,
3955        point_count: usize,
3956    ) -> ::std::os::raw::c_int;
3957}
3958unsafe extern "C" {
3959    #[doc = " Experimental API.\n Removes an InkList in |annot|.\n This API works only for ink annotations.\n\n   annot  - handle to an annotation.\n\n Return true on successful removal of /InkList entry from context of the\n non-null ink |annot|. Returns false on failure."]
3960    pub fn FPDFAnnot_RemoveInkList(annot: FPDF_ANNOTATION) -> FPDF_BOOL;
3961}
3962unsafe extern "C" {
3963    #[doc = " Experimental API.\n Add |obj| to |annot|. |obj| must have been created by\n FPDFPageObj_CreateNew{Path|Rect}() or FPDFPageObj_New{Text|Image}Obj(), and\n will be owned by |annot|. Note that an |obj| cannot belong to more than one\n |annot|. Currently, only ink and stamp annotations are supported by this API.\n Also note that only path, image, and text objects have APIs for creation.\n\n   annot  - handle to an annotation.\n   obj    - handle to the object that is to be added to |annot|.\n\n Return true if successful."]
3964    pub fn FPDFAnnot_AppendObject(annot: FPDF_ANNOTATION, obj: FPDF_PAGEOBJECT) -> FPDF_BOOL;
3965}
3966unsafe extern "C" {
3967    #[doc = " Experimental API.\n Get the total number of objects in |annot|, including path objects, text\n objects, external objects, image objects, and shading objects.\n\n   annot  - handle to an annotation.\n\n Returns the number of objects in |annot|."]
3968    pub fn FPDFAnnot_GetObjectCount(annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
3969}
3970unsafe extern "C" {
3971    #[doc = " Experimental API.\n Get the object in |annot| at |index|.\n\n   annot  - handle to an annotation.\n   index  - the index of the object.\n\n Return a handle to the object, or NULL on failure."]
3972    pub fn FPDFAnnot_GetObject(annot: FPDF_ANNOTATION, index: ::std::os::raw::c_int) -> FPDF_PAGEOBJECT;
3973}
3974unsafe extern "C" {
3975    #[doc = " Experimental API.\n Remove the object in |annot| at |index|.\n\n   annot  - handle to an annotation.\n   index  - the index of the object to be removed.\n\n Return true if successful."]
3976    pub fn FPDFAnnot_RemoveObject(annot: FPDF_ANNOTATION, index: ::std::os::raw::c_int) -> FPDF_BOOL;
3977}
3978unsafe extern "C" {
3979    #[doc = " Experimental API.\n Set the color of an annotation. Fails when called on annotations with\n appearance streams already defined; instead use\n FPDFPageObj_Set{Stroke|Fill}Color().\n\n   annot    - handle to an annotation.\n   type     - type of the color to be set.\n   R, G, B  - buffer to hold the RGB value of the color. Ranges from 0 to 255.\n   A        - buffer to hold the opacity. Ranges from 0 to 255.\n\n Returns true if successful."]
3980    pub fn FPDFAnnot_SetColor(
3981        annot: FPDF_ANNOTATION,
3982        type_: FPDFANNOT_COLORTYPE,
3983        R: ::std::os::raw::c_uint,
3984        G: ::std::os::raw::c_uint,
3985        B: ::std::os::raw::c_uint,
3986        A: ::std::os::raw::c_uint,
3987    ) -> FPDF_BOOL;
3988}
3989unsafe extern "C" {
3990    #[doc = " Experimental API.\n Get the color of an annotation. If no color is specified, default to yellow\n for highlight annotation, black for all else. Fails when called on\n annotations with appearance streams already defined; instead use\n FPDFPageObj_Get{Stroke|Fill}Color().\n\n   annot    - handle to an annotation.\n   type     - type of the color requested.\n   R, G, B  - buffer to hold the RGB value of the color. Ranges from 0 to 255.\n   A        - buffer to hold the opacity. Ranges from 0 to 255.\n\n Returns true if successful."]
3991    pub fn FPDFAnnot_GetColor(
3992        annot: FPDF_ANNOTATION,
3993        type_: FPDFANNOT_COLORTYPE,
3994        R: *mut ::std::os::raw::c_uint,
3995        G: *mut ::std::os::raw::c_uint,
3996        B: *mut ::std::os::raw::c_uint,
3997        A: *mut ::std::os::raw::c_uint,
3998    ) -> FPDF_BOOL;
3999}
4000unsafe extern "C" {
4001    #[doc = " Experimental API.\n Check if the annotation is of a type that has attachment points\n (i.e. quadpoints). Quadpoints are the vertices of the rectangle that\n encompasses the texts affected by the annotation. They provide the\n coordinates in the page where the annotation is attached. Only text markup\n annotations (i.e. highlight, strikeout, squiggly, and underline) and link\n annotations have quadpoints.\n\n   annot  - handle to an annotation.\n\n Returns true if the annotation is of a type that has quadpoints, false\n otherwise."]
4002    pub fn FPDFAnnot_HasAttachmentPoints(annot: FPDF_ANNOTATION) -> FPDF_BOOL;
4003}
4004unsafe extern "C" {
4005    #[doc = " Experimental API.\n Replace the attachment points (i.e. quadpoints) set of an annotation at\n |quad_index|. This index needs to be within the result of\n FPDFAnnot_CountAttachmentPoints().\n If the annotation's appearance stream is defined and this annotation is of a\n type with quadpoints, then update the bounding box too if the new quadpoints\n define a bigger one.\n\n   annot       - handle to an annotation.\n   quad_index  - index of the set of quadpoints.\n   quad_points - the quadpoints to be set.\n\n Returns true if successful."]
4006    pub fn FPDFAnnot_SetAttachmentPoints(
4007        annot: FPDF_ANNOTATION,
4008        quad_index: usize,
4009        quad_points: *const FS_QUADPOINTSF,
4010    ) -> FPDF_BOOL;
4011}
4012unsafe extern "C" {
4013    #[doc = " Experimental API.\n Append to the list of attachment points (i.e. quadpoints) of an annotation.\n If the annotation's appearance stream is defined and this annotation is of a\n type with quadpoints, then update the bounding box too if the new quadpoints\n define a bigger one.\n\n   annot       - handle to an annotation.\n   quad_points - the quadpoints to be set.\n\n Returns true if successful."]
4014    pub fn FPDFAnnot_AppendAttachmentPoints(annot: FPDF_ANNOTATION, quad_points: *const FS_QUADPOINTSF) -> FPDF_BOOL;
4015}
4016unsafe extern "C" {
4017    #[doc = " Experimental API.\n Get the number of sets of quadpoints of an annotation.\n\n   annot  - handle to an annotation.\n\n Returns the number of sets of quadpoints, or 0 on failure."]
4018    pub fn FPDFAnnot_CountAttachmentPoints(annot: FPDF_ANNOTATION) -> usize;
4019}
4020unsafe extern "C" {
4021    #[doc = " Experimental API.\n Get the attachment points (i.e. quadpoints) of an annotation.\n\n   annot       - handle to an annotation.\n   quad_index  - index of the set of quadpoints.\n   quad_points - receives the quadpoints; must not be NULL.\n\n Returns true if successful."]
4022    pub fn FPDFAnnot_GetAttachmentPoints(
4023        annot: FPDF_ANNOTATION,
4024        quad_index: usize,
4025        quad_points: *mut FS_QUADPOINTSF,
4026    ) -> FPDF_BOOL;
4027}
4028unsafe extern "C" {
4029    #[doc = " Experimental API.\n Set the annotation rectangle defining the location of the annotation. If the\n annotation's appearance stream is defined and this annotation is of a type\n without quadpoints, then update the bounding box too if the new rectangle\n defines a bigger one.\n\n   annot  - handle to an annotation.\n   rect   - the annotation rectangle to be set.\n\n Returns true if successful."]
4030    pub fn FPDFAnnot_SetRect(annot: FPDF_ANNOTATION, rect: *const FS_RECTF) -> FPDF_BOOL;
4031}
4032unsafe extern "C" {
4033    #[doc = " Experimental API.\n Get the annotation rectangle defining the location of the annotation.\n\n   annot  - handle to an annotation.\n   rect   - receives the rectangle; must not be NULL.\n\n Returns true if successful."]
4034    pub fn FPDFAnnot_GetRect(annot: FPDF_ANNOTATION, rect: *mut FS_RECTF) -> FPDF_BOOL;
4035}
4036unsafe extern "C" {
4037    #[doc = " Experimental API.\n Get the vertices of a polygon or polyline annotation. |buffer| is an array of\n points of the annotation. If |length| is less than the returned length, or\n |annot| or |buffer| is NULL, |buffer| will not be modified.\n\n   annot  - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot()\n   buffer - buffer for holding the points.\n   length - length of the buffer in points.\n\n Returns the number of points if the annotation is of type polygon or\n polyline, 0 otherwise."]
4038    pub fn FPDFAnnot_GetVertices(
4039        annot: FPDF_ANNOTATION,
4040        buffer: *mut FS_POINTF,
4041        length: ::std::os::raw::c_ulong,
4042    ) -> ::std::os::raw::c_ulong;
4043}
4044unsafe extern "C" {
4045    #[doc = " Experimental API.\n Get the number of paths in the ink list of an ink annotation.\n\n   annot  - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot()\n\n Returns the number of paths in the ink list if the annotation is of type ink,\n 0 otherwise."]
4046    pub fn FPDFAnnot_GetInkListCount(annot: FPDF_ANNOTATION) -> ::std::os::raw::c_ulong;
4047}
4048unsafe extern "C" {
4049    #[doc = " Experimental API.\n Get a path in the ink list of an ink annotation. |buffer| is an array of\n points of the path. If |length| is less than the returned length, or |annot|\n or |buffer| is NULL, |buffer| will not be modified.\n\n   annot  - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot()\n   path_index - index of the path\n   buffer - buffer for holding the points.\n   length - length of the buffer in points.\n\n Returns the number of points of the path if the annotation is of type ink, 0\n otherwise."]
4050    pub fn FPDFAnnot_GetInkListPath(
4051        annot: FPDF_ANNOTATION,
4052        path_index: ::std::os::raw::c_ulong,
4053        buffer: *mut FS_POINTF,
4054        length: ::std::os::raw::c_ulong,
4055    ) -> ::std::os::raw::c_ulong;
4056}
4057unsafe extern "C" {
4058    #[doc = " Experimental API.\n Get the starting and ending coordinates of a line annotation.\n\n   annot  - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot()\n   start - starting point\n   end - ending point\n\n Returns true if the annotation is of type line, |start| and |end| are not\n NULL, false otherwise."]
4059    pub fn FPDFAnnot_GetLine(annot: FPDF_ANNOTATION, start: *mut FS_POINTF, end: *mut FS_POINTF) -> FPDF_BOOL;
4060}
4061unsafe extern "C" {
4062    #[doc = " Experimental API.\n Set the characteristics of the annotation's border (rounded rectangle).\n\n   annot              - handle to an annotation\n   horizontal_radius  - horizontal corner radius, in default user space units\n   vertical_radius    - vertical corner radius, in default user space units\n   border_width       - border width, in default user space units\n\n Returns true if setting the border for |annot| succeeds, false otherwise.\n\n If |annot| contains an appearance stream that overrides the border values,\n then the appearance stream will be removed on success."]
4063    pub fn FPDFAnnot_SetBorder(
4064        annot: FPDF_ANNOTATION,
4065        horizontal_radius: f32,
4066        vertical_radius: f32,
4067        border_width: f32,
4068    ) -> FPDF_BOOL;
4069}
4070unsafe extern "C" {
4071    #[doc = " Experimental API.\n Get the characteristics of the annotation's border (rounded rectangle).\n\n   annot              - handle to an annotation\n   horizontal_radius  - horizontal corner radius, in default user space units\n   vertical_radius    - vertical corner radius, in default user space units\n   border_width       - border width, in default user space units\n\n Returns true if |horizontal_radius|, |vertical_radius| and |border_width| are\n not NULL, false otherwise."]
4072    pub fn FPDFAnnot_GetBorder(
4073        annot: FPDF_ANNOTATION,
4074        horizontal_radius: *mut f32,
4075        vertical_radius: *mut f32,
4076        border_width: *mut f32,
4077    ) -> FPDF_BOOL;
4078}
4079unsafe extern "C" {
4080    #[doc = " Experimental API.\n Get the JavaScript of an event of the annotation's additional actions.\n |buffer| is only modified if |buflen| is large enough to hold the whole\n JavaScript string. If |buflen| is smaller, the total size of the JavaScript\n is still returned, but nothing is copied.  If there is no JavaScript for\n |event| in |annot|, an empty string is written to |buf| and 2 is returned,\n denoting the size of the null terminator in the buffer.  On other errors,\n nothing is written to |buffer| and 0 is returned.\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n    event       -   event type, one of the FPDF_ANNOT_AACTION_* values.\n    buffer      -   buffer for holding the value string, encoded in UTF-16LE.\n    buflen      -   length of the buffer in bytes.\n\n Returns the length of the string value in bytes, including the 2-byte\n null terminator."]
4081    pub fn FPDFAnnot_GetFormAdditionalActionJavaScript(
4082        hHandle: FPDF_FORMHANDLE,
4083        annot: FPDF_ANNOTATION,
4084        event: ::std::os::raw::c_int,
4085        buffer: *mut FPDF_WCHAR,
4086        buflen: ::std::os::raw::c_ulong,
4087    ) -> ::std::os::raw::c_ulong;
4088}
4089unsafe extern "C" {
4090    #[doc = " Experimental API.\n Check if |annot|'s dictionary has |key| as a key.\n\n   annot  - handle to an annotation.\n   key    - the key to look for, encoded in UTF-8.\n\n Returns true if |key| exists."]
4091    pub fn FPDFAnnot_HasKey(annot: FPDF_ANNOTATION, key: FPDF_BYTESTRING) -> FPDF_BOOL;
4092}
4093unsafe extern "C" {
4094    #[doc = " Experimental API.\n Get the type of the value corresponding to |key| in |annot|'s dictionary.\n\n   annot  - handle to an annotation.\n   key    - the key to look for, encoded in UTF-8.\n\n Returns the type of the dictionary value."]
4095    pub fn FPDFAnnot_GetValueType(annot: FPDF_ANNOTATION, key: FPDF_BYTESTRING) -> FPDF_OBJECT_TYPE;
4096}
4097unsafe extern "C" {
4098    #[doc = " Experimental API.\n Set the string value corresponding to |key| in |annot|'s dictionary,\n overwriting the existing value if any. The value type would be\n FPDF_OBJECT_STRING after this function call succeeds.\n\n   annot  - handle to an annotation.\n   key    - the key to the dictionary entry to be set, encoded in UTF-8.\n   value  - the string value to be set, encoded in UTF-16LE.\n\n Returns true if successful."]
4099    pub fn FPDFAnnot_SetStringValue(annot: FPDF_ANNOTATION, key: FPDF_BYTESTRING, value: FPDF_WIDESTRING) -> FPDF_BOOL;
4100}
4101unsafe extern "C" {
4102    #[doc = " Experimental API.\n Get the string value corresponding to |key| in |annot|'s dictionary. |buffer|\n is only modified if |buflen| is longer than the length of contents. Note that\n if |key| does not exist in the dictionary or if |key|'s corresponding value\n in the dictionary is not a string (i.e. the value is not of type\n FPDF_OBJECT_STRING or FPDF_OBJECT_NAME), then an empty string would be copied\n to |buffer| and the return value would be 2. On other errors, nothing would\n be added to |buffer| and the return value would be 0.\n\n   annot  - handle to an annotation.\n   key    - the key to the requested dictionary entry, encoded in UTF-8.\n   buffer - buffer for holding the value string, encoded in UTF-16LE.\n   buflen - length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4103    pub fn FPDFAnnot_GetStringValue(
4104        annot: FPDF_ANNOTATION,
4105        key: FPDF_BYTESTRING,
4106        buffer: *mut FPDF_WCHAR,
4107        buflen: ::std::os::raw::c_ulong,
4108    ) -> ::std::os::raw::c_ulong;
4109}
4110unsafe extern "C" {
4111    #[doc = " Experimental API.\n Get the float value corresponding to |key| in |annot|'s dictionary. Writes\n value to |value| and returns True if |key| exists in the dictionary and\n |key|'s corresponding value is a number (FPDF_OBJECT_NUMBER), False\n otherwise.\n\n   annot  - handle to an annotation.\n   key    - the key to the requested dictionary entry, encoded in UTF-8.\n   value  - receives the value, must not be NULL.\n\n Returns True if value found, False otherwise."]
4112    pub fn FPDFAnnot_GetNumberValue(annot: FPDF_ANNOTATION, key: FPDF_BYTESTRING, value: *mut f32) -> FPDF_BOOL;
4113}
4114unsafe extern "C" {
4115    #[doc = " Experimental API.\n Set the AP (appearance string) in |annot|'s dictionary for a given\n |appearanceMode|.\n\n   annot          - handle to an annotation.\n   appearanceMode - the appearance mode (normal, rollover or down) for which\n                    to get the AP.\n   value          - the string value to be set, encoded in UTF-16LE. If\n                    nullptr is passed, the AP is cleared for that mode. If the\n                    mode is Normal, APs for all modes are cleared.\n\n Returns true if successful."]
4116    pub fn FPDFAnnot_SetAP(
4117        annot: FPDF_ANNOTATION,
4118        appearanceMode: FPDF_ANNOT_APPEARANCEMODE,
4119        value: FPDF_WIDESTRING,
4120    ) -> FPDF_BOOL;
4121}
4122unsafe extern "C" {
4123    #[doc = " Experimental API.\n Get the AP (appearance string) from |annot|'s dictionary for a given\n |appearanceMode|.\n |buffer| is only modified if |buflen| is large enough to hold the whole AP\n string. If |buflen| is smaller, the total size of the AP is still returned,\n but nothing is copied.\n If there is no appearance stream for |annot| in |appearanceMode|, an empty\n string is written to |buf| and 2 is returned.\n On other errors, nothing is written to |buffer| and 0 is returned.\n\n   annot          - handle to an annotation.\n   appearanceMode - the appearance mode (normal, rollover or down) for which\n                    to get the AP.\n   buffer         - buffer for holding the value string, encoded in UTF-16LE.\n   buflen         - length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4124    pub fn FPDFAnnot_GetAP(
4125        annot: FPDF_ANNOTATION,
4126        appearanceMode: FPDF_ANNOT_APPEARANCEMODE,
4127        buffer: *mut FPDF_WCHAR,
4128        buflen: ::std::os::raw::c_ulong,
4129    ) -> ::std::os::raw::c_ulong;
4130}
4131unsafe extern "C" {
4132    #[doc = " Experimental API.\n Get the annotation corresponding to |key| in |annot|'s dictionary. Common\n keys for linking annotations include \"IRT\" and \"Popup\". Must call\n FPDFPage_CloseAnnot() when the annotation returned by this function is no\n longer needed.\n\n   annot  - handle to an annotation.\n   key    - the key to the requested dictionary entry, encoded in UTF-8.\n\n Returns a handle to the linked annotation object, or NULL on failure."]
4133    pub fn FPDFAnnot_GetLinkedAnnot(annot: FPDF_ANNOTATION, key: FPDF_BYTESTRING) -> FPDF_ANNOTATION;
4134}
4135unsafe extern "C" {
4136    #[doc = " Experimental API.\n Get the annotation flags of |annot|.\n\n   annot    - handle to an annotation.\n\n Returns the annotation flags."]
4137    pub fn FPDFAnnot_GetFlags(annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4138}
4139unsafe extern "C" {
4140    #[doc = " Experimental API.\n Set the |annot|'s flags to be of the value |flags|.\n\n   annot      - handle to an annotation.\n   flags      - the flag values to be set.\n\n Returns true if successful."]
4141    pub fn FPDFAnnot_SetFlags(annot: FPDF_ANNOTATION, flags: ::std::os::raw::c_int) -> FPDF_BOOL;
4142}
4143unsafe extern "C" {
4144    #[doc = " Experimental API.\n Get the annotation flags of |annot|.\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n\n Returns the annotation flags specific to interactive forms."]
4145    pub fn FPDFAnnot_GetFormFieldFlags(handle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4146}
4147unsafe extern "C" {
4148    #[doc = " Experimental API.\n Sets the form field flags for an interactive form annotation.\n\n   handle       -   the handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n   annot        -   handle to an interactive form annotation.\n   flags        -   the form field flags to be set.\n\n Returns true if successful."]
4149    pub fn FPDFAnnot_SetFormFieldFlags(
4150        handle: FPDF_FORMHANDLE,
4151        annot: FPDF_ANNOTATION,
4152        flags: ::std::os::raw::c_int,
4153    ) -> FPDF_BOOL;
4154}
4155unsafe extern "C" {
4156    #[doc = " Experimental API.\n Retrieves an interactive form annotation whose rectangle contains a given\n point on a page. Must call FPDFPage_CloseAnnot() when the annotation returned\n is no longer needed.\n\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    page        -   handle to the page, returned by FPDF_LoadPage function.\n    point       -   position in PDF \"user space\".\n\n Returns the interactive form annotation whose rectangle contains the given\n coordinates on the page. If there is no such annotation, return NULL."]
4157    pub fn FPDFAnnot_GetFormFieldAtPoint(
4158        hHandle: FPDF_FORMHANDLE,
4159        page: FPDF_PAGE,
4160        point: *const FS_POINTF,
4161    ) -> FPDF_ANNOTATION;
4162}
4163unsafe extern "C" {
4164    #[doc = " Experimental API.\n Gets the name of |annot|, which is an interactive form annotation.\n |buffer| is only modified if |buflen| is longer than the length of contents.\n In case of error, nothing will be added to |buffer| and the return value will\n be 0. Note that return value of empty string is 2 for \"\\0\\0\".\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n    buffer      -   buffer for holding the name string, encoded in UTF-16LE.\n    buflen      -   length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4165    pub fn FPDFAnnot_GetFormFieldName(
4166        hHandle: FPDF_FORMHANDLE,
4167        annot: FPDF_ANNOTATION,
4168        buffer: *mut FPDF_WCHAR,
4169        buflen: ::std::os::raw::c_ulong,
4170    ) -> ::std::os::raw::c_ulong;
4171}
4172unsafe extern "C" {
4173    #[doc = " Experimental API.\n Gets the alternate name of |annot|, which is an interactive form annotation.\n |buffer| is only modified if |buflen| is longer than the length of contents.\n In case of error, nothing will be added to |buffer| and the return value will\n be 0. Note that return value of empty string is 2 for \"\\0\\0\".\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n    buffer      -   buffer for holding the alternate name string, encoded in\n                    UTF-16LE.\n    buflen      -   length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4174    pub fn FPDFAnnot_GetFormFieldAlternateName(
4175        hHandle: FPDF_FORMHANDLE,
4176        annot: FPDF_ANNOTATION,
4177        buffer: *mut FPDF_WCHAR,
4178        buflen: ::std::os::raw::c_ulong,
4179    ) -> ::std::os::raw::c_ulong;
4180}
4181unsafe extern "C" {
4182    #[doc = " Experimental API.\n Gets the form field type of |annot|, which is an interactive form annotation.\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n\n Returns the type of the form field (one of the FPDF_FORMFIELD_* values) on\n success. Returns -1 on error.\n See field types in fpdf_formfill.h."]
4183    pub fn FPDFAnnot_GetFormFieldType(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4184}
4185unsafe extern "C" {
4186    #[doc = " Experimental API.\n Gets the value of |annot|, which is an interactive form annotation.\n |buffer| is only modified if |buflen| is longer than the length of contents.\n In case of error, nothing will be added to |buffer| and the return value will\n be 0. Note that return value of empty string is 2 for \"\\0\\0\".\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n    buffer      -   buffer for holding the value string, encoded in UTF-16LE.\n    buflen      -   length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4187    pub fn FPDFAnnot_GetFormFieldValue(
4188        hHandle: FPDF_FORMHANDLE,
4189        annot: FPDF_ANNOTATION,
4190        buffer: *mut FPDF_WCHAR,
4191        buflen: ::std::os::raw::c_ulong,
4192    ) -> ::std::os::raw::c_ulong;
4193}
4194unsafe extern "C" {
4195    #[doc = " Experimental API.\n Get the number of options in the |annot|'s \"Opt\" dictionary. Intended for\n use with listbox and combobox widget annotations.\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n\n Returns the number of options in \"Opt\" dictionary on success. Return value\n will be -1 if annotation does not have an \"Opt\" dictionary or other error."]
4196    pub fn FPDFAnnot_GetOptionCount(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4197}
4198unsafe extern "C" {
4199    #[doc = " Experimental API.\n Get the string value for the label of the option at |index| in |annot|'s\n \"Opt\" dictionary. Intended for use with listbox and combobox widget\n annotations. |buffer| is only modified if |buflen| is longer than the length\n of contents. If index is out of range or in case of other error, nothing\n will be added to |buffer| and the return value will be 0. Note that\n return value of empty string is 2 for \"\\0\\0\".\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n   index   - numeric index of the option in the \"Opt\" array\n   buffer  - buffer for holding the value string, encoded in UTF-16LE.\n   buflen  - length of the buffer in bytes.\n\n Returns the length of the string value in bytes.\n If |annot| does not have an \"Opt\" array, |index| is out of range or if any\n other error occurs, returns 0."]
4200    pub fn FPDFAnnot_GetOptionLabel(
4201        hHandle: FPDF_FORMHANDLE,
4202        annot: FPDF_ANNOTATION,
4203        index: ::std::os::raw::c_int,
4204        buffer: *mut FPDF_WCHAR,
4205        buflen: ::std::os::raw::c_ulong,
4206    ) -> ::std::os::raw::c_ulong;
4207}
4208unsafe extern "C" {
4209    #[doc = " Experimental API.\n Determine whether or not the option at |index| in |annot|'s \"Opt\" dictionary\n is selected. Intended for use with listbox and combobox widget annotations.\n\n   handle  - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n   index   - numeric index of the option in the \"Opt\" array.\n\n Returns true if the option at |index| in |annot|'s \"Opt\" dictionary is\n selected, false otherwise."]
4210    pub fn FPDFAnnot_IsOptionSelected(
4211        handle: FPDF_FORMHANDLE,
4212        annot: FPDF_ANNOTATION,
4213        index: ::std::os::raw::c_int,
4214    ) -> FPDF_BOOL;
4215}
4216unsafe extern "C" {
4217    #[doc = " Experimental API.\n Get the float value of the font size for an |annot| with variable text.\n If 0, the font is to be auto-sized: its size is computed as a function of\n the height of the annotation rectangle.\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n   value   - Required. Float which will be set to font size on success.\n\n Returns true if the font size was set in |value|, false on error or if\n |value| not provided."]
4218    pub fn FPDFAnnot_GetFontSize(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION, value: *mut f32) -> FPDF_BOOL;
4219}
4220unsafe extern "C" {
4221    #[doc = " Experimental API.\n Set the text color of an annotation.\n\n   handle   - handle to the form fill module, returned by\n              FPDFDOC_InitFormFillEnvironment.\n   annot    - handle to an annotation.\n   R        - the red component for the text color.\n   G        - the green component for the text color.\n   B        - the blue component for the text color.\n\n Returns true if successful.\n\n Currently supported subtypes: freetext.\n The range for the color components is 0 to 255."]
4222    pub fn FPDFAnnot_SetFontColor(
4223        handle: FPDF_FORMHANDLE,
4224        annot: FPDF_ANNOTATION,
4225        R: ::std::os::raw::c_uint,
4226        G: ::std::os::raw::c_uint,
4227        B: ::std::os::raw::c_uint,
4228    ) -> FPDF_BOOL;
4229}
4230unsafe extern "C" {
4231    #[doc = " Experimental API.\n Get the RGB value of the font color for an |annot| with variable text.\n\n   hHandle  - handle to the form fill module, returned by\n              FPDFDOC_InitFormFillEnvironment.\n   annot    - handle to an annotation.\n   R, G, B  - buffer to hold the RGB value of the color. Ranges from 0 to 255.\n\n Returns true if the font color was set, false on error or if the font\n color was not provided."]
4232    pub fn FPDFAnnot_GetFontColor(
4233        hHandle: FPDF_FORMHANDLE,
4234        annot: FPDF_ANNOTATION,
4235        R: *mut ::std::os::raw::c_uint,
4236        G: *mut ::std::os::raw::c_uint,
4237        B: *mut ::std::os::raw::c_uint,
4238    ) -> FPDF_BOOL;
4239}
4240unsafe extern "C" {
4241    #[doc = " Experimental API.\n Determine if |annot| is a form widget that is checked. Intended for use with\n checkbox and radio button widgets.\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n\n Returns true if |annot| is a form widget and is checked, false otherwise."]
4242    pub fn FPDFAnnot_IsChecked(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> FPDF_BOOL;
4243}
4244unsafe extern "C" {
4245    #[doc = " Experimental API.\n Set the list of focusable annotation subtypes. Annotations of subtype\n FPDF_ANNOT_WIDGET are by default focusable. New subtypes set using this API\n will override the existing subtypes.\n\n   hHandle  - handle to the form fill module, returned by\n              FPDFDOC_InitFormFillEnvironment.\n   subtypes - list of annotation subtype which can be tabbed over.\n   count    - total number of annotation subtype in list.\n Returns true if list of annotation subtype is set successfully, false\n otherwise."]
4246    pub fn FPDFAnnot_SetFocusableSubtypes(
4247        hHandle: FPDF_FORMHANDLE,
4248        subtypes: *const FPDF_ANNOTATION_SUBTYPE,
4249        count: usize,
4250    ) -> FPDF_BOOL;
4251}
4252unsafe extern "C" {
4253    #[doc = " Experimental API.\n Get the count of focusable annotation subtypes as set by host\n for a |hHandle|.\n\n   hHandle  - handle to the form fill module, returned by\n              FPDFDOC_InitFormFillEnvironment.\n Returns the count of focusable annotation subtypes or -1 on error.\n Note : Annotations of type FPDF_ANNOT_WIDGET are by default focusable."]
4254    pub fn FPDFAnnot_GetFocusableSubtypesCount(hHandle: FPDF_FORMHANDLE) -> ::std::os::raw::c_int;
4255}
4256unsafe extern "C" {
4257    #[doc = " Experimental API.\n Get the list of focusable annotation subtype as set by host.\n\n   hHandle  - handle to the form fill module, returned by\n              FPDFDOC_InitFormFillEnvironment.\n   subtypes - receives the list of annotation subtype which can be tabbed\n              over. Caller must have allocated |subtypes| more than or\n              equal to the count obtained from\n              FPDFAnnot_GetFocusableSubtypesCount() API.\n   count    - size of |subtypes|.\n Returns true on success and set list of annotation subtype to |subtypes|,\n false otherwise.\n Note : Annotations of type FPDF_ANNOT_WIDGET are by default focusable."]
4258    pub fn FPDFAnnot_GetFocusableSubtypes(
4259        hHandle: FPDF_FORMHANDLE,
4260        subtypes: *mut FPDF_ANNOTATION_SUBTYPE,
4261        count: usize,
4262    ) -> FPDF_BOOL;
4263}
4264unsafe extern "C" {
4265    #[doc = " Experimental API.\n Gets FPDF_LINK object for |annot|. Intended to use for link annotations.\n\n   annot   - handle to an annotation.\n\n Returns FPDF_LINK from the FPDF_ANNOTATION and NULL on failure,\n if the input annot is NULL or input annot's subtype is not link."]
4266    pub fn FPDFAnnot_GetLink(annot: FPDF_ANNOTATION) -> FPDF_LINK;
4267}
4268unsafe extern "C" {
4269    #[doc = " Experimental API.\n Gets the count of annotations in the |annot|'s control group.\n A group of interactive form annotations is collectively called a form\n control group. Here, |annot|, an interactive form annotation, should be\n either a radio button or a checkbox.\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n\n Returns number of controls in its control group or -1 on error."]
4270    pub fn FPDFAnnot_GetFormControlCount(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4271}
4272unsafe extern "C" {
4273    #[doc = " Experimental API.\n Gets the index of |annot| in |annot|'s control group.\n A group of interactive form annotations is collectively called a form\n control group. Here, |annot|, an interactive form annotation, should be\n either a radio button or a checkbox.\n\n   hHandle - handle to the form fill module, returned by\n             FPDFDOC_InitFormFillEnvironment.\n   annot   - handle to an annotation.\n\n Returns index of a given |annot| in its control group or -1 on error."]
4274    pub fn FPDFAnnot_GetFormControlIndex(hHandle: FPDF_FORMHANDLE, annot: FPDF_ANNOTATION) -> ::std::os::raw::c_int;
4275}
4276unsafe extern "C" {
4277    #[doc = " Experimental API.\n Gets the export value of |annot| which is an interactive form annotation.\n Intended for use with radio button and checkbox widget annotations.\n |buffer| is only modified if |buflen| is longer than the length of contents.\n In case of error, nothing will be added to |buffer| and the return value\n will be 0. Note that return value of empty string is 2 for \"\\0\\0\".\n\n    hHandle     -   handle to the form fill module, returned by\n                    FPDFDOC_InitFormFillEnvironment().\n    annot       -   handle to an interactive form annotation.\n    buffer      -   buffer for holding the value string, encoded in UTF-16LE.\n    buflen      -   length of the buffer in bytes.\n\n Returns the length of the string value in bytes."]
4278    pub fn FPDFAnnot_GetFormFieldExportValue(
4279        hHandle: FPDF_FORMHANDLE,
4280        annot: FPDF_ANNOTATION,
4281        buffer: *mut FPDF_WCHAR,
4282        buflen: ::std::os::raw::c_ulong,
4283    ) -> ::std::os::raw::c_ulong;
4284}
4285unsafe extern "C" {
4286    #[doc = " Experimental API.\n Add a URI action to |annot|, overwriting the existing action, if any.\n\n   annot  - handle to a link annotation.\n   uri    - the URI to be set, encoded in 7-bit ASCII.\n\n Returns true if successful."]
4287    pub fn FPDFAnnot_SetURI(annot: FPDF_ANNOTATION, uri: *const ::std::os::raw::c_char) -> FPDF_BOOL;
4288}
4289unsafe extern "C" {
4290    #[doc = " Experimental API.\n Get the attachment from |annot|.\n\n   annot - handle to a file annotation.\n\n Returns the handle to the attachment object, or NULL on failure."]
4291    pub fn FPDFAnnot_GetFileAttachment(annot: FPDF_ANNOTATION) -> FPDF_ATTACHMENT;
4292}
4293unsafe extern "C" {
4294    #[doc = " Experimental API.\n Add an embedded file with |name| to |annot|.\n\n   annot    - handle to a file annotation.\n   name     - name of the new attachment.\n\n Returns a handle to the new attachment object, or NULL on failure."]
4295    pub fn FPDFAnnot_AddFileAttachment(annot: FPDF_ANNOTATION, name: FPDF_WIDESTRING) -> FPDF_ATTACHMENT;
4296}
4297unsafe extern "C" {
4298    #[doc = " Experimental API.\n Import pages to a FPDF_DOCUMENT.\n\n   dest_doc     - The destination document for the pages.\n   src_doc      - The document to be imported.\n   page_indices - An array of page indices to be imported. The first page is\n                  zero. If |page_indices| is NULL, all pages from |src_doc|\n                  are imported.\n   length       - The length of the |page_indices| array.\n   index        - The page index at which to insert the first imported page\n                  into |dest_doc|. The first page is zero.\n\n Returns TRUE on success. Returns FALSE if any pages in |page_indices| is\n invalid."]
4299    pub fn FPDF_ImportPagesByIndex(
4300        dest_doc: FPDF_DOCUMENT,
4301        src_doc: FPDF_DOCUMENT,
4302        page_indices: *const ::std::os::raw::c_int,
4303        length: ::std::os::raw::c_ulong,
4304        index: ::std::os::raw::c_int,
4305    ) -> FPDF_BOOL;
4306}
4307unsafe extern "C" {
4308    #[doc = " Import pages to a FPDF_DOCUMENT.\n\n   dest_doc  - The destination document for the pages.\n   src_doc   - The document to be imported.\n   pagerange - A page range string, Such as \"1,3,5-7\". The first page is one.\n               If |pagerange| is NULL, all pages from |src_doc| are imported.\n   index     - The page index at which to insert the first imported page into\n               |dest_doc|. The first page is zero.\n\n Returns TRUE on success. Returns FALSE if any pages in |pagerange| is\n invalid or if |pagerange| cannot be read."]
4309    pub fn FPDF_ImportPages(
4310        dest_doc: FPDF_DOCUMENT,
4311        src_doc: FPDF_DOCUMENT,
4312        pagerange: FPDF_BYTESTRING,
4313        index: ::std::os::raw::c_int,
4314    ) -> FPDF_BOOL;
4315}
4316unsafe extern "C" {
4317    #[doc = " Experimental API.\n Create a new document from |src_doc|.  The pages of |src_doc| will be\n combined to provide |num_pages_on_x_axis x num_pages_on_y_axis| pages per\n |output_doc| page.\n\n   src_doc             - The document to be imported.\n   output_width        - The output page width in PDF \"user space\" units.\n   output_height       - The output page height in PDF \"user space\" units.\n   num_pages_on_x_axis - The number of pages on X Axis.\n   num_pages_on_y_axis - The number of pages on Y Axis.\n\n Return value:\n   A handle to the created document, or NULL on failure.\n\n Comments:\n   number of pages per page = num_pages_on_x_axis * num_pages_on_y_axis\n"]
4318    pub fn FPDF_ImportNPagesToOne(
4319        src_doc: FPDF_DOCUMENT,
4320        output_width: f32,
4321        output_height: f32,
4322        num_pages_on_x_axis: usize,
4323        num_pages_on_y_axis: usize,
4324    ) -> FPDF_DOCUMENT;
4325}
4326unsafe extern "C" {
4327    #[doc = " Experimental API.\n Create a template to generate form xobjects from |src_doc|'s page at\n |src_page_index|, for use in |dest_doc|.\n\n Returns a handle on success, or NULL on failure. Caller owns the newly\n created object."]
4328    pub fn FPDF_NewXObjectFromPage(
4329        dest_doc: FPDF_DOCUMENT,
4330        src_doc: FPDF_DOCUMENT,
4331        src_page_index: ::std::os::raw::c_int,
4332    ) -> FPDF_XOBJECT;
4333}
4334unsafe extern "C" {
4335    #[doc = " Experimental API.\n Close an FPDF_XOBJECT handle created by FPDF_NewXObjectFromPage().\n FPDF_PAGEOBJECTs created from the FPDF_XOBJECT handle are not affected."]
4336    pub fn FPDF_CloseXObject(xobject: FPDF_XOBJECT);
4337}
4338unsafe extern "C" {
4339    #[doc = " Experimental API.\n Create a new form object from an FPDF_XOBJECT object.\n\n Returns a new form object on success, or NULL on failure. Caller owns the\n newly created object."]
4340    pub fn FPDF_NewFormObjectFromXObject(xobject: FPDF_XOBJECT) -> FPDF_PAGEOBJECT;
4341}
4342unsafe extern "C" {
4343    #[doc = " Copy the viewer preferences from |src_doc| into |dest_doc|.\n\n   dest_doc - Document to write the viewer preferences into.\n   src_doc  - Document to read the viewer preferences from.\n\n Returns TRUE on success."]
4344    pub fn FPDF_CopyViewerPreferences(dest_doc: FPDF_DOCUMENT, src_doc: FPDF_DOCUMENT) -> FPDF_BOOL;
4345}
4346unsafe extern "C" {
4347    #[doc = " Experimental API.\n Get the number of JavaScript actions in |document|.\n\n   document - handle to a document.\n\n Returns the number of JavaScript actions in |document| or -1 on error."]
4348    pub fn FPDFDoc_GetJavaScriptActionCount(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
4349}
4350unsafe extern "C" {
4351    #[doc = " Experimental API.\n Get the JavaScript action at |index| in |document|.\n\n   document - handle to a document.\n   index    - the index of the requested JavaScript action.\n\n Returns the handle to the JavaScript action, or NULL on failure.\n Caller owns the returned handle and must close it with\n FPDFDoc_CloseJavaScriptAction()."]
4352    pub fn FPDFDoc_GetJavaScriptAction(document: FPDF_DOCUMENT, index: ::std::os::raw::c_int)
4353    -> FPDF_JAVASCRIPT_ACTION;
4354}
4355unsafe extern "C" {
4356    #[doc = "   javascript - Handle to a JavaScript action."]
4357    pub fn FPDFDoc_CloseJavaScriptAction(javascript: FPDF_JAVASCRIPT_ACTION);
4358}
4359unsafe extern "C" {
4360    #[doc = " Experimental API.\n Get the name from the |javascript| handle. |buffer| is only modified if\n |buflen| is longer than the length of the name. On errors, |buffer| is\n unmodified and the returned length is 0.\n\n   javascript - handle to an JavaScript action.\n   buffer     - buffer for holding the name, encoded in UTF-16LE.\n   buflen     - length of the buffer in bytes.\n\n Returns the length of the JavaScript action name in bytes."]
4361    pub fn FPDFJavaScriptAction_GetName(
4362        javascript: FPDF_JAVASCRIPT_ACTION,
4363        buffer: *mut FPDF_WCHAR,
4364        buflen: ::std::os::raw::c_ulong,
4365    ) -> ::std::os::raw::c_ulong;
4366}
4367unsafe extern "C" {
4368    #[doc = " Experimental API.\n Get the script from the |javascript| handle. |buffer| is only modified if\n |buflen| is longer than the length of the script. On errors, |buffer| is\n unmodified and the returned length is 0.\n\n   javascript - handle to an JavaScript action.\n   buffer     - buffer for holding the name, encoded in UTF-16LE.\n   buflen     - length of the buffer in bytes.\n\n Returns the length of the JavaScript action name in bytes."]
4369    pub fn FPDFJavaScriptAction_GetScript(
4370        javascript: FPDF_JAVASCRIPT_ACTION,
4371        buffer: *mut FPDF_WCHAR,
4372        buflen: ::std::os::raw::c_ulong,
4373    ) -> ::std::os::raw::c_ulong;
4374}
4375unsafe extern "C" {
4376    #[doc = " Flatten annotations and form fields into the page contents.\n\n   page  - handle to the page.\n   nFlag - One of the |FLAT_*| values denoting the page usage.\n\n Returns one of the |FLATTEN_*| values.\n\n Currently, all failures return |FLATTEN_FAIL| with no indication of the\n cause."]
4377    pub fn FPDFPage_Flatten(page: FPDF_PAGE, nFlag: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
4378}
4379#[doc = " Structure for custom file write"]
4380#[repr(C)]
4381#[derive(Debug, Copy, Clone)]
4382pub struct FPDF_FILEWRITE_ {
4383    #[doc = "\n Version number of the interface. Currently must be 1.\n"]
4384    pub version: ::std::os::raw::c_int,
4385    #[doc = " Method: WriteBlock\n          Output a block of data in your custom way.\n Interface Version:\n          1\n Implementation Required:\n          Yes\n Comments:\n          Called by function FPDF_SaveDocument\n Parameters:\n          pThis       -   Pointer to the structure itself\n          pData       -   Pointer to a buffer to output\n          size        -   The size of the buffer.\n Return value:\n          Should be non-zero if successful, zero for error."]
4386    pub WriteBlock: ::std::option::Option<
4387        unsafe extern "C" fn(
4388            pThis: *mut FPDF_FILEWRITE_,
4389            pData: *const ::std::os::raw::c_void,
4390            size: ::std::os::raw::c_ulong,
4391        ) -> ::std::os::raw::c_int,
4392    >,
4393}
4394#[doc = " Structure for custom file write"]
4395pub type FPDF_FILEWRITE = FPDF_FILEWRITE_;
4396unsafe extern "C" {
4397    #[doc = " Function: FPDF_SaveAsCopy\n          Saves the copy of specified document in custom way.\n Parameters:\n          document        -   Handle to document, as returned by\n                              FPDF_LoadDocument() or FPDF_CreateNewDocument().\n          pFileWrite      -   A pointer to a custom file write structure.\n          flags           -   Flags above that affect how the PDF gets saved.\n                              Pass in 0 when there are no flags.\n Return value:\n          TRUE for succeed, FALSE for failed.\n"]
4398    pub fn FPDF_SaveAsCopy(document: FPDF_DOCUMENT, pFileWrite: *mut FPDF_FILEWRITE, flags: FPDF_DWORD) -> FPDF_BOOL;
4399}
4400unsafe extern "C" {
4401    #[doc = " Function: FPDF_SaveWithVersion\n          Same as FPDF_SaveAsCopy(), except the file version of the\n          saved document can be specified by the caller.\n Parameters:\n          document        -   Handle to document.\n          pFileWrite      -   A pointer to a custom file write structure.\n          flags           -   The creating flags.\n          fileVersion     -   The PDF file version. File version: 14 for 1.4,\n                              15 for 1.5, ...\n Return value:\n          TRUE if succeed, FALSE if failed.\n"]
4402    pub fn FPDF_SaveWithVersion(
4403        document: FPDF_DOCUMENT,
4404        pFileWrite: *mut FPDF_FILEWRITE,
4405        flags: FPDF_DWORD,
4406        fileVersion: ::std::os::raw::c_int,
4407    ) -> FPDF_BOOL;
4408}
4409#[doc = " Interface: FPDF_SYSFONTINFO\n          Interface for getting system font information and font mapping"]
4410#[repr(C)]
4411#[derive(Debug, Copy, Clone)]
4412pub struct _FPDF_SYSFONTINFO {
4413    #[doc = " Version number of the interface. Currently must be 1 or 2.\n Version 1: Traditional behavior - calls EnumFonts during initialization.\n Version 2: Per-request behavior - skips EnumFonts, relies on MapFont.\n            Experimental: Subject to change based on feedback."]
4414    pub version: ::std::os::raw::c_int,
4415    #[doc = " Method: Release\n          Give implementation a chance to release any data after the\n          interface is no longer used.\n Interface Version:\n          1 and 2\n Implementation Required:\n          No\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n Return Value:\n          None\n Comments:\n          Called by PDFium during the final cleanup process."]
4416    pub Release: ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_SYSFONTINFO)>,
4417    #[doc = " Method: EnumFonts\n          Enumerate all fonts installed on the system\n Interface Version:\n          1\n Implementation Required:\n          No\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          pMapper     -   An opaque pointer to internal font mapper, used\n                          when calling FPDF_AddInstalledFont().\n Return Value:\n          None\n Comments:\n          Implementations should call FPDF_AddInstalledFont() function for\n          each font found. Only TrueType/OpenType and Type1 fonts are\n          accepted by PDFium.\n          NOTE: This method will not be called when version is set to 2.\n          Version 2 relies entirely on MapFont() for per-request matching."]
4418    pub EnumFonts: ::std::option::Option<
4419        unsafe extern "C" fn(pThis: *mut _FPDF_SYSFONTINFO, pMapper: *mut ::std::os::raw::c_void),
4420    >,
4421    #[doc = " Method: MapFont\n          Use the system font mapper to get a font handle from requested\n          parameters.\n Interface Version:\n          1 and 2\n Implementation Required:\n          Required if GetFont method is not implemented.\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          weight      -   Weight of the requested font. 400 is normal and\n                          700 is bold.\n          bItalic     -   Italic option of the requested font, TRUE or\n                          FALSE.\n          charset     -   Character set identifier for the requested font.\n                          See above defined constants.\n          pitch_family -  A combination of flags. See above defined\n                          constants.\n          face        -   Typeface name. Currently use system local encoding\n                          only.\n          bExact      -   Obsolete: this parameter is now ignored.\n Return Value:\n          An opaque pointer for font handle, or NULL if system mapping is\n          not supported.\n Comments:\n          If the system supports native font mapper (like Windows),\n          implementation can implement this method to get a font handle.\n          Otherwise, PDFium will do the mapping and then call GetFont\n          method. Only TrueType/OpenType and Type1 fonts are accepted\n          by PDFium."]
4422    pub MapFont: ::std::option::Option<
4423        unsafe extern "C" fn(
4424            pThis: *mut _FPDF_SYSFONTINFO,
4425            weight: ::std::os::raw::c_int,
4426            bItalic: FPDF_BOOL,
4427            charset: ::std::os::raw::c_int,
4428            pitch_family: ::std::os::raw::c_int,
4429            face: *const ::std::os::raw::c_char,
4430            bExact: *mut FPDF_BOOL,
4431        ) -> *mut ::std::os::raw::c_void,
4432    >,
4433    #[doc = " Method: GetFont\n          Get a handle to a particular font by its internal ID\n Interface Version:\n          1 and 2\n Implementation Required:\n          Required if MapFont method is not implemented.\n Return Value:\n          An opaque pointer for font handle.\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          face        -   Typeface name in system local encoding.\n Comments:\n          If the system mapping not supported, PDFium will do the font\n          mapping and use this method to get a font handle."]
4434    pub GetFont: ::std::option::Option<
4435        unsafe extern "C" fn(
4436            pThis: *mut _FPDF_SYSFONTINFO,
4437            face: *const ::std::os::raw::c_char,
4438        ) -> *mut ::std::os::raw::c_void,
4439    >,
4440    #[doc = " Method: GetFontData\n          Get font data from a font\n Interface Version:\n          1 and 2\n Implementation Required:\n          Yes\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          hFont       -   Font handle returned by MapFont or GetFont method\n          table       -   TrueType/OpenType table identifier (refer to\n                          TrueType specification), or 0 for the whole file.\n          buffer      -   The buffer receiving the font data. Can be NULL if\n                          not provided.\n          buf_size    -   Buffer size, can be zero if not provided.\n Return Value:\n          Number of bytes needed, if buffer not provided or not large\n          enough, or number of bytes written into buffer otherwise.\n Comments:\n          Can read either the full font file, or a particular\n          TrueType/OpenType table."]
4441    pub GetFontData: ::std::option::Option<
4442        unsafe extern "C" fn(
4443            pThis: *mut _FPDF_SYSFONTINFO,
4444            hFont: *mut ::std::os::raw::c_void,
4445            table: ::std::os::raw::c_uint,
4446            buffer: *mut ::std::os::raw::c_uchar,
4447            buf_size: ::std::os::raw::c_ulong,
4448        ) -> ::std::os::raw::c_ulong,
4449    >,
4450    #[doc = " Method: GetFaceName\n          Get face name from a font handle\n Interface Version:\n          1 and 2\n Implementation Required:\n          No\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          hFont       -   Font handle returned by MapFont or GetFont method\n          buffer      -   The buffer receiving the face name. Can be NULL if\n                          not provided\n          buf_size    -   Buffer size, can be zero if not provided\n Return Value:\n          Number of bytes needed, if buffer not provided or not large\n          enough, or number of bytes written into buffer otherwise."]
4451    pub GetFaceName: ::std::option::Option<
4452        unsafe extern "C" fn(
4453            pThis: *mut _FPDF_SYSFONTINFO,
4454            hFont: *mut ::std::os::raw::c_void,
4455            buffer: *mut ::std::os::raw::c_char,
4456            buf_size: ::std::os::raw::c_ulong,
4457        ) -> ::std::os::raw::c_ulong,
4458    >,
4459    #[doc = " Method: GetFontCharset\n          Get character set information for a font handle\n Interface Version:\n          1 and 2\n Implementation Required:\n          No\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          hFont       -   Font handle returned by MapFont or GetFont method\n Return Value:\n          Character set identifier. See defined constants above."]
4460    pub GetFontCharset: ::std::option::Option<
4461        unsafe extern "C" fn(
4462            pThis: *mut _FPDF_SYSFONTINFO,
4463            hFont: *mut ::std::os::raw::c_void,
4464        ) -> ::std::os::raw::c_int,
4465    >,
4466    #[doc = " Method: DeleteFont\n          Delete a font handle\n Interface Version:\n          1 and 2\n Implementation Required:\n          Yes\n Parameters:\n          pThis       -   Pointer to the interface structure itself\n          hFont       -   Font handle returned by MapFont or GetFont method\n Return Value:\n          None"]
4467    pub DeleteFont:
4468        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FPDF_SYSFONTINFO, hFont: *mut ::std::os::raw::c_void)>,
4469}
4470#[doc = " Interface: FPDF_SYSFONTINFO\n          Interface for getting system font information and font mapping"]
4471pub type FPDF_SYSFONTINFO = _FPDF_SYSFONTINFO;
4472#[doc = " Struct: FPDF_CharsetFontMap\n    Provides the name of a font to use for a given charset value."]
4473#[repr(C)]
4474#[derive(Debug, Copy, Clone)]
4475pub struct FPDF_CharsetFontMap_ {
4476    #[doc = " Character Set Enum value, see FXFONT_*_CHARSET above."]
4477    pub charset: ::std::os::raw::c_int,
4478    #[doc = " Name of default font to use with that charset."]
4479    pub fontname: *const ::std::os::raw::c_char,
4480}
4481#[doc = " Struct: FPDF_CharsetFontMap\n    Provides the name of a font to use for a given charset value."]
4482pub type FPDF_CharsetFontMap = FPDF_CharsetFontMap_;
4483unsafe extern "C" {
4484    #[doc = " Function: FPDF_GetDefaultTTFMap\n    Returns a pointer to the default character set to TT Font name map. The\n    map is an array of FPDF_CharsetFontMap structs, with its end indicated\n    by a { -1, NULL } entry.\n Parameters:\n     None.\n Return Value:\n     Pointer to the Charset Font Map.\n Note:\n     Once FPDF_GetDefaultTTFMapCount() and FPDF_GetDefaultTTFMapEntry() are no\n     longer experimental, this API will be marked as deprecated.\n     See https://crbug.com/348468114"]
4485    pub fn FPDF_GetDefaultTTFMap() -> *const FPDF_CharsetFontMap;
4486}
4487unsafe extern "C" {
4488    #[doc = " Experimental API.\n\n Function: FPDF_GetDefaultTTFMapCount\n    Returns the number of entries in the default character set to TT Font name\n    map.\n Parameters:\n    None.\n Return Value:\n    The number of entries in the map."]
4489    pub fn FPDF_GetDefaultTTFMapCount() -> usize;
4490}
4491unsafe extern "C" {
4492    #[doc = " Experimental API.\n\n Function: FPDF_GetDefaultTTFMapEntry\n    Returns an entry in the default character set to TT Font name map.\n Parameters:\n    index    -   The index to the entry in the map to retrieve.\n Return Value:\n     A pointer to the entry, if it is in the map, or NULL if the index is out\n     of bounds."]
4493    pub fn FPDF_GetDefaultTTFMapEntry(index: usize) -> *const FPDF_CharsetFontMap;
4494}
4495unsafe extern "C" {
4496    #[doc = " Function: FPDF_AddInstalledFont\n          Add a system font to the list in PDFium.\n Comments:\n          This function is only called during the system font list building\n          process.\n Parameters:\n          mapper          -   Opaque pointer to Foxit font mapper\n          face            -   The font face name\n          charset         -   Font character set. See above defined constants.\n Return Value:\n          None."]
4497    pub fn FPDF_AddInstalledFont(
4498        mapper: *mut ::std::os::raw::c_void,
4499        face: *const ::std::os::raw::c_char,
4500        charset: ::std::os::raw::c_int,
4501    );
4502}
4503unsafe extern "C" {
4504    #[doc = " Function: FPDF_SetSystemFontInfo\n          Set the system font info interface into PDFium\n Parameters:\n          font_info       -   Pointer to a FPDF_SYSFONTINFO structure\n Return Value:\n          None\n Comments:\n          Platform support implementation should implement required methods of\n          FFDF_SYSFONTINFO interface, then call this function during PDFium\n          initialization process.\n\n          Call this with NULL to tell PDFium to stop using a previously set\n          |FPDF_SYSFONTINFO|."]
4505    pub fn FPDF_SetSystemFontInfo(font_info: *mut FPDF_SYSFONTINFO);
4506}
4507unsafe extern "C" {
4508    #[doc = " Function: FPDF_GetDefaultSystemFontInfo\n          Get default system font info interface for current platform\n Parameters:\n          None\n Return Value:\n          Pointer to a FPDF_SYSFONTINFO structure describing the default\n          interface, or NULL if the platform doesn't have a default interface.\n          Application should call FPDF_FreeDefaultSystemFontInfo to free the\n          returned pointer.\n Comments:\n          For some platforms, PDFium implements a default version of system\n          font info interface. The default implementation can be passed to\n          FPDF_SetSystemFontInfo()."]
4509    pub fn FPDF_GetDefaultSystemFontInfo() -> *mut FPDF_SYSFONTINFO;
4510}
4511unsafe extern "C" {
4512    #[doc = " Function: FPDF_FreeDefaultSystemFontInfo\n           Free a default system font info interface\n Parameters:\n           font_info       -   Pointer to a FPDF_SYSFONTINFO structure\n Return Value:\n           None\n Comments:\n           This function should be called on the output from\n           FPDF_GetDefaultSystemFontInfo() once it is no longer needed."]
4513    pub fn FPDF_FreeDefaultSystemFontInfo(font_info: *mut FPDF_SYSFONTINFO);
4514}
4515unsafe extern "C" {
4516    #[doc = " Experimental API.\n Get the number of embedded files in |document|.\n\n   document - handle to a document.\n\n Returns the number of embedded files in |document|."]
4517    pub fn FPDFDoc_GetAttachmentCount(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
4518}
4519unsafe extern "C" {
4520    #[doc = " Experimental API.\n Add an embedded file with |name| in |document|. If |name| is empty, or if\n |name| is the name of a existing embedded file in |document|, or if\n |document|'s embedded file name tree is too deep (i.e. |document| has too\n many embedded files already), then a new attachment will not be added.\n\n   document - handle to a document.\n   name     - name of the new attachment.\n\n Returns a handle to the new attachment object, or NULL on failure."]
4521    pub fn FPDFDoc_AddAttachment(document: FPDF_DOCUMENT, name: FPDF_WIDESTRING) -> FPDF_ATTACHMENT;
4522}
4523unsafe extern "C" {
4524    #[doc = " Experimental API.\n Get the embedded attachment at |index| in |document|. Note that the returned\n attachment handle is only valid while |document| is open.\n\n   document - handle to a document.\n   index    - the index of the requested embedded file.\n\n Returns the handle to the attachment object, or NULL on failure."]
4525    pub fn FPDFDoc_GetAttachment(document: FPDF_DOCUMENT, index: ::std::os::raw::c_int) -> FPDF_ATTACHMENT;
4526}
4527unsafe extern "C" {
4528    #[doc = " Experimental API.\n Delete the embedded attachment at |index| in |document|. Note that this does\n not remove the attachment data from the PDF file; it simply removes the\n file's entry in the embedded files name tree so that it does not appear in\n the attachment list. This behavior may change in the future.\n\n   document - handle to a document.\n   index    - the index of the embedded file to be deleted.\n\n Returns true if successful."]
4529    pub fn FPDFDoc_DeleteAttachment(document: FPDF_DOCUMENT, index: ::std::os::raw::c_int) -> FPDF_BOOL;
4530}
4531unsafe extern "C" {
4532    #[doc = " Experimental API.\n Get the name of the |attachment| file. |buffer| is only modified if |buflen|\n is longer than the length of the file name. On errors, |buffer| is unmodified\n and the returned length is 0.\n\n   attachment - handle to an attachment.\n   buffer     - buffer for holding the file name, encoded in UTF-16LE.\n   buflen     - length of the buffer in bytes.\n\n Returns the length of the file name in bytes."]
4533    pub fn FPDFAttachment_GetName(
4534        attachment: FPDF_ATTACHMENT,
4535        buffer: *mut FPDF_WCHAR,
4536        buflen: ::std::os::raw::c_ulong,
4537    ) -> ::std::os::raw::c_ulong;
4538}
4539unsafe extern "C" {
4540    #[doc = " Experimental API.\n Check if the params dictionary of |attachment| has |key| as a key.\n\n   attachment - handle to an attachment.\n   key        - the key to look for, encoded in UTF-8.\n\n Returns true if |key| exists."]
4541    pub fn FPDFAttachment_HasKey(attachment: FPDF_ATTACHMENT, key: FPDF_BYTESTRING) -> FPDF_BOOL;
4542}
4543unsafe extern "C" {
4544    #[doc = " Experimental API.\n Get the type of the value corresponding to |key| in the params dictionary of\n the embedded |attachment|.\n\n   attachment - handle to an attachment.\n   key        - the key to look for, encoded in UTF-8.\n\n Returns the type of the dictionary value."]
4545    pub fn FPDFAttachment_GetValueType(attachment: FPDF_ATTACHMENT, key: FPDF_BYTESTRING) -> FPDF_OBJECT_TYPE;
4546}
4547unsafe extern "C" {
4548    #[doc = " Experimental API.\n Set the string value corresponding to |key| in the params dictionary of the\n embedded file |attachment|, overwriting the existing value if any. The value\n type should be FPDF_OBJECT_STRING after this function call succeeds.\n\n   attachment - handle to an attachment.\n   key        - the key to the dictionary entry, encoded in UTF-8.\n   value      - the string value to be set, encoded in UTF-16LE.\n\n Returns true if successful."]
4549    pub fn FPDFAttachment_SetStringValue(
4550        attachment: FPDF_ATTACHMENT,
4551        key: FPDF_BYTESTRING,
4552        value: FPDF_WIDESTRING,
4553    ) -> FPDF_BOOL;
4554}
4555unsafe extern "C" {
4556    #[doc = " Experimental API.\n Get the string value corresponding to |key| in the params dictionary of the\n embedded file |attachment|. |buffer| is only modified if |buflen| is longer\n than the length of the string value. Note that if |key| does not exist in the\n dictionary or if |key|'s corresponding value in the dictionary is not a\n string (i.e. the value is not of type FPDF_OBJECT_STRING or\n FPDF_OBJECT_NAME), then an empty string would be copied to |buffer| and the\n return value would be 2. On other errors, nothing would be added to |buffer|\n and the return value would be 0.\n\n   attachment - handle to an attachment.\n   key        - the key to the requested string value, encoded in UTF-8.\n   buffer     - buffer for holding the string value encoded in UTF-16LE.\n   buflen     - length of the buffer in bytes.\n\n Returns the length of the dictionary value string in bytes."]
4557    pub fn FPDFAttachment_GetStringValue(
4558        attachment: FPDF_ATTACHMENT,
4559        key: FPDF_BYTESTRING,
4560        buffer: *mut FPDF_WCHAR,
4561        buflen: ::std::os::raw::c_ulong,
4562    ) -> ::std::os::raw::c_ulong;
4563}
4564unsafe extern "C" {
4565    #[doc = " Experimental API.\n Set the file data of |attachment|, overwriting the existing file data if any.\n The creation date and checksum will be updated, while all other dictionary\n entries will be deleted. Note that only contents with |len| smaller than\n INT_MAX is supported.\n\n   attachment - handle to an attachment.\n   contents   - buffer holding the file data to write to |attachment|.\n   len        - length of file data in bytes.\n\n Returns true if successful."]
4566    pub fn FPDFAttachment_SetFile(
4567        attachment: FPDF_ATTACHMENT,
4568        document: FPDF_DOCUMENT,
4569        contents: *const ::std::os::raw::c_void,
4570        len: ::std::os::raw::c_ulong,
4571    ) -> FPDF_BOOL;
4572}
4573unsafe extern "C" {
4574    #[doc = " Experimental API.\n Get the file data of |attachment|.\n When the attachment file data is readable, true is returned, and |out_buflen|\n is updated to indicate the file data size. |buffer| is only modified if\n |buflen| is non-null and long enough to contain the entire file data. Callers\n must check both the return value and the input |buflen| is no less than the\n returned |out_buflen| before using the data.\n\n Otherwise, when the attachment file data is unreadable or when |out_buflen|\n is null, false is returned and |buffer| and |out_buflen| remain unmodified.\n\n   attachment - handle to an attachment.\n   buffer     - buffer for holding the file data from |attachment|.\n   buflen     - length of the buffer in bytes.\n   out_buflen - pointer to the variable that will receive the minimum buffer\n                size to contain the file data of |attachment|.\n\n Returns true on success, false otherwise."]
4575    pub fn FPDFAttachment_GetFile(
4576        attachment: FPDF_ATTACHMENT,
4577        buffer: *mut ::std::os::raw::c_void,
4578        buflen: ::std::os::raw::c_ulong,
4579        out_buflen: *mut ::std::os::raw::c_ulong,
4580    ) -> FPDF_BOOL;
4581}
4582unsafe extern "C" {
4583    #[doc = " Experimental API.\n Get the MIME type (Subtype) of the embedded file |attachment|. |buffer| is\n only modified if |buflen| is longer than the length of the MIME type string.\n If the Subtype is not found or if there is no file stream, an empty string\n would be copied to |buffer| and the return value would be 2. On other errors,\n nothing would be added to |buffer| and the return value would be 0.\n\n   attachment - handle to an attachment.\n   buffer     - buffer for holding the MIME type string encoded in UTF-16LE.\n   buflen     - length of the buffer in bytes.\n\n Returns the length of the MIME type string in bytes."]
4584    pub fn FPDFAttachment_GetSubtype(
4585        attachment: FPDF_ATTACHMENT,
4586        buffer: *mut FPDF_WCHAR,
4587        buflen: ::std::os::raw::c_ulong,
4588    ) -> ::std::os::raw::c_ulong;
4589}
4590unsafe extern "C" {
4591    #[doc = " Get the character index in |text_page| internal character list.\n\n   text_page  - a text page information structure.\n   nTextIndex - index of the text returned from FPDFText_GetText().\n\n Returns the index of the character in internal character list. -1 for error."]
4592    pub fn FPDFText_GetCharIndexFromTextIndex(
4593        text_page: FPDF_TEXTPAGE,
4594        nTextIndex: ::std::os::raw::c_int,
4595    ) -> ::std::os::raw::c_int;
4596}
4597unsafe extern "C" {
4598    #[doc = " Get the text index in |text_page| internal character list.\n\n   text_page  - a text page information structure.\n   nCharIndex - index of the character in internal character list.\n\n Returns the index of the text returned from FPDFText_GetText(). -1 for error."]
4599    pub fn FPDFText_GetTextIndexFromCharIndex(
4600        text_page: FPDF_TEXTPAGE,
4601        nCharIndex: ::std::os::raw::c_int,
4602    ) -> ::std::os::raw::c_int;
4603}
4604pub type __darwin_nl_item = ::std::os::raw::c_int;
4605pub type __darwin_wctrans_t = ::std::os::raw::c_int;
4606pub type __darwin_wctype_t = __uint32_t;
4607pub type u_int8_t = ::std::os::raw::c_uchar;
4608pub type u_int16_t = ::std::os::raw::c_ushort;
4609pub type u_int32_t = ::std::os::raw::c_uint;
4610pub type u_int64_t = ::std::os::raw::c_ulonglong;
4611pub type register_t = i64;
4612pub type user_addr_t = u_int64_t;
4613pub type user_size_t = u_int64_t;
4614pub type user_ssize_t = i64;
4615pub type user_long_t = i64;
4616pub type user_ulong_t = u_int64_t;
4617pub type user_time_t = i64;
4618pub type user_off_t = i64;
4619pub type syscall_arg_t = u_int64_t;
4620pub type clock_t = __darwin_clock_t;
4621pub type time_t = __darwin_time_t;
4622#[repr(C)]
4623#[derive(Debug, Copy, Clone)]
4624pub struct timespec {
4625    pub tv_sec: __darwin_time_t,
4626    pub tv_nsec: ::std::os::raw::c_long,
4627}
4628#[repr(C)]
4629#[derive(Debug, Copy, Clone)]
4630pub struct tm {
4631    #[doc = " seconds after the minute [0-60]"]
4632    pub tm_sec: ::std::os::raw::c_int,
4633    #[doc = " minutes after the hour [0-59]"]
4634    pub tm_min: ::std::os::raw::c_int,
4635    #[doc = " hours since midnight [0-23]"]
4636    pub tm_hour: ::std::os::raw::c_int,
4637    #[doc = " day of the month [1-31]"]
4638    pub tm_mday: ::std::os::raw::c_int,
4639    #[doc = " months since January [0-11]"]
4640    pub tm_mon: ::std::os::raw::c_int,
4641    #[doc = " years since 1900"]
4642    pub tm_year: ::std::os::raw::c_int,
4643    #[doc = " days since Sunday [0-6]"]
4644    pub tm_wday: ::std::os::raw::c_int,
4645    #[doc = " days since January 1 [0-365]"]
4646    pub tm_yday: ::std::os::raw::c_int,
4647    #[doc = " Daylight Savings Time flag"]
4648    pub tm_isdst: ::std::os::raw::c_int,
4649    #[doc = " offset from UTC in seconds"]
4650    pub tm_gmtoff: ::std::os::raw::c_long,
4651    #[doc = " timezone abbreviation"]
4652    pub tm_zone: *mut ::std::os::raw::c_char,
4653}
4654unsafe extern "C" {
4655    pub static mut tzname: [*mut ::std::os::raw::c_char; 0usize];
4656}
4657unsafe extern "C" {
4658    pub static mut getdate_err: ::std::os::raw::c_int;
4659}
4660unsafe extern "C" {
4661    pub static mut timezone: ::std::os::raw::c_long;
4662}
4663unsafe extern "C" {
4664    pub static mut daylight: ::std::os::raw::c_int;
4665}
4666unsafe extern "C" {
4667    pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char;
4668}
4669unsafe extern "C" {
4670    pub fn clock() -> clock_t;
4671}
4672unsafe extern "C" {
4673    pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char;
4674}
4675unsafe extern "C" {
4676    pub fn difftime(arg1: time_t, arg2: time_t) -> f64;
4677}
4678unsafe extern "C" {
4679    pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm;
4680}
4681unsafe extern "C" {
4682    pub fn gmtime(arg1: *const time_t) -> *mut tm;
4683}
4684unsafe extern "C" {
4685    pub fn localtime(arg1: *const time_t) -> *mut tm;
4686}
4687unsafe extern "C" {
4688    pub fn mktime(arg1: *mut tm) -> time_t;
4689}
4690unsafe extern "C" {
4691    pub fn strftime(
4692        arg1: *mut ::std::os::raw::c_char,
4693        __maxsize: usize,
4694        arg2: *const ::std::os::raw::c_char,
4695        arg3: *const tm,
4696    ) -> usize;
4697}
4698unsafe extern "C" {
4699    pub fn strptime(
4700        arg1: *const ::std::os::raw::c_char,
4701        arg2: *const ::std::os::raw::c_char,
4702        arg3: *mut tm,
4703    ) -> *mut ::std::os::raw::c_char;
4704}
4705unsafe extern "C" {
4706    pub fn time(arg1: *mut time_t) -> time_t;
4707}
4708unsafe extern "C" {
4709    pub fn tzset();
4710}
4711unsafe extern "C" {
4712    #[doc = " [TSF] Thread safe functions"]
4713    pub fn asctime_r(arg1: *const tm, arg2: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
4714}
4715unsafe extern "C" {
4716    pub fn ctime_r(arg1: *const time_t, arg2: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
4717}
4718unsafe extern "C" {
4719    pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
4720}
4721unsafe extern "C" {
4722    pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
4723}
4724unsafe extern "C" {
4725    pub fn posix2time(arg1: time_t) -> time_t;
4726}
4727unsafe extern "C" {
4728    pub fn tzsetwall();
4729}
4730unsafe extern "C" {
4731    pub fn time2posix(arg1: time_t) -> time_t;
4732}
4733unsafe extern "C" {
4734    pub fn timelocal(arg1: *mut tm) -> time_t;
4735}
4736unsafe extern "C" {
4737    pub fn timegm(arg1: *mut tm) -> time_t;
4738}
4739unsafe extern "C" {
4740    pub fn nanosleep(__rqtp: *const timespec, __rmtp: *mut timespec) -> ::std::os::raw::c_int;
4741}
4742pub const clockid_t__CLOCK_REALTIME: clockid_t = 0;
4743pub const clockid_t__CLOCK_MONOTONIC: clockid_t = 6;
4744pub const clockid_t__CLOCK_MONOTONIC_RAW: clockid_t = 4;
4745pub const clockid_t__CLOCK_MONOTONIC_RAW_APPROX: clockid_t = 5;
4746pub const clockid_t__CLOCK_UPTIME_RAW: clockid_t = 8;
4747pub const clockid_t__CLOCK_UPTIME_RAW_APPROX: clockid_t = 9;
4748pub const clockid_t__CLOCK_PROCESS_CPUTIME_ID: clockid_t = 12;
4749pub const clockid_t__CLOCK_THREAD_CPUTIME_ID: clockid_t = 16;
4750pub type clockid_t = ::std::os::raw::c_uint;
4751unsafe extern "C" {
4752    pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
4753}
4754unsafe extern "C" {
4755    pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
4756}
4757unsafe extern "C" {
4758    pub fn clock_gettime_nsec_np(__clock_id: clockid_t) -> __uint64_t;
4759}
4760unsafe extern "C" {
4761    pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
4762}
4763unsafe extern "C" {
4764    pub fn timespec_get(ts: *mut timespec, base: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
4765}
4766#[doc = " Interface for unsupported feature notifications."]
4767#[repr(C)]
4768#[derive(Debug, Copy, Clone)]
4769pub struct _UNSUPPORT_INFO {
4770    #[doc = " Version number of the interface. Must be 1."]
4771    pub version: ::std::os::raw::c_int,
4772    #[doc = " Unsupported object notification function.\n Interface Version: 1\n Implementation Required: Yes\n\n   pThis - pointer to the interface structure.\n   nType - the type of unsupported object. One of the |FPDF_UNSP_*| entries."]
4773    pub FSDK_UnSupport_Handler:
4774        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _UNSUPPORT_INFO, nType: ::std::os::raw::c_int)>,
4775}
4776#[doc = " Interface for unsupported feature notifications."]
4777pub type UNSUPPORT_INFO = _UNSUPPORT_INFO;
4778unsafe extern "C" {
4779    #[doc = " Setup an unsupported object handler.\n\n   unsp_info - Pointer to an UNSUPPORT_INFO structure.\n\n Returns TRUE on success."]
4780    pub fn FSDK_SetUnSpObjProcessHandler(unsp_info: *mut UNSUPPORT_INFO) -> FPDF_BOOL;
4781}
4782unsafe extern "C" {
4783    #[doc = " Set replacement function for calls to time().\n\n This API is intended to be used only for testing, thus may cause PDFium to\n behave poorly in production environments.\n\n   func - Function pointer to alternate implementation of time(), or\n          NULL to restore to actual time() call itself."]
4784    pub fn FSDK_SetTimeFunction(func: ::std::option::Option<unsafe extern "C" fn() -> time_t>);
4785}
4786unsafe extern "C" {
4787    #[doc = " Set replacement function for calls to localtime().\n\n This API is intended to be used only for testing, thus may cause PDFium to\n behave poorly in production environments.\n\n   func - Function pointer to alternate implementation of localtime(), or\n          NULL to restore to actual localtime() call itself."]
4788    pub fn FSDK_SetLocaltimeFunction(func: ::std::option::Option<unsafe extern "C" fn(arg1: *const time_t) -> *mut tm>);
4789}
4790unsafe extern "C" {
4791    #[doc = " Get the document's PageMode.\n\n   doc - Handle to document.\n\n Returns one of the |PAGEMODE_*| flags defined above.\n\n The page mode defines how the document should be initially displayed."]
4792    pub fn FPDFDoc_GetPageMode(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
4793}
4794unsafe extern "C" {
4795    #[doc = " Experimental API.\n Function: FPDF_GetSignatureCount\n          Get total number of signatures in the document.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument().\n Return value:\n          Total number of signatures in the document on success, -1 on error."]
4796    pub fn FPDF_GetSignatureCount(document: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
4797}
4798unsafe extern "C" {
4799    #[doc = " Experimental API.\n Function: FPDF_GetSignatureObject\n          Get the Nth signature of the document.\n Parameters:\n          document    -   Handle to document. Returned by FPDF_LoadDocument().\n          index       -   Index into the array of signatures of the document.\n Return value:\n          Returns the handle to the signature, or NULL on failure. The caller\n          does not take ownership of the returned FPDF_SIGNATURE. Instead, it\n          remains valid until FPDF_CloseDocument() is called for the document."]
4800    pub fn FPDF_GetSignatureObject(document: FPDF_DOCUMENT, index: ::std::os::raw::c_int) -> FPDF_SIGNATURE;
4801}
4802unsafe extern "C" {
4803    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetContents\n          Get the contents of a signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n          buffer      -   The address of a buffer that receives the contents.\n          length      -   The size, in bytes, of |buffer|.\n Return value:\n          Returns the number of bytes in the contents on success, 0 on error.\n\n For public-key signatures, |buffer| is either a DER-encoded PKCS#1 binary or\n a DER-encoded PKCS#7 binary. If |length| is less than the returned length, or\n |buffer| is NULL, |buffer| will not be modified."]
4804    pub fn FPDFSignatureObj_GetContents(
4805        signature: FPDF_SIGNATURE,
4806        buffer: *mut ::std::os::raw::c_void,
4807        length: ::std::os::raw::c_ulong,
4808    ) -> ::std::os::raw::c_ulong;
4809}
4810unsafe extern "C" {
4811    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetByteRange\n          Get the byte range of a signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n          buffer      -   The address of a buffer that receives the\n                          byte range.\n          length      -   The size, in ints, of |buffer|.\n Return value:\n          Returns the number of ints in the byte range on\n          success, 0 on error.\n\n |buffer| is an array of pairs of integers (starting byte offset,\n length in bytes) that describes the exact byte range for the digest\n calculation. If |length| is less than the returned length, or\n |buffer| is NULL, |buffer| will not be modified."]
4812    pub fn FPDFSignatureObj_GetByteRange(
4813        signature: FPDF_SIGNATURE,
4814        buffer: *mut ::std::os::raw::c_int,
4815        length: ::std::os::raw::c_ulong,
4816    ) -> ::std::os::raw::c_ulong;
4817}
4818unsafe extern "C" {
4819    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetSubFilter\n          Get the encoding of the value of a signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n          buffer      -   The address of a buffer that receives the encoding.\n          length      -   The size, in bytes, of |buffer|.\n Return value:\n          Returns the number of bytes in the encoding name (including the\n          trailing NUL character) on success, 0 on error.\n\n The |buffer| is always encoded in 7-bit ASCII. If |length| is less than the\n returned length, or |buffer| is NULL, |buffer| will not be modified."]
4820    pub fn FPDFSignatureObj_GetSubFilter(
4821        signature: FPDF_SIGNATURE,
4822        buffer: *mut ::std::os::raw::c_char,
4823        length: ::std::os::raw::c_ulong,
4824    ) -> ::std::os::raw::c_ulong;
4825}
4826unsafe extern "C" {
4827    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetReason\n          Get the reason (comment) of the signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n          buffer      -   The address of a buffer that receives the reason.\n          length      -   The size, in bytes, of |buffer|.\n Return value:\n          Returns the number of bytes in the reason on success, 0 on error.\n\n Regardless of the platform, the |buffer| is always in UTF-16LE encoding. The\n string is terminated by a UTF16 NUL character. If |length| is less than the\n returned length, or |buffer| is NULL, |buffer| will not be modified."]
4828    pub fn FPDFSignatureObj_GetReason(
4829        signature: FPDF_SIGNATURE,
4830        buffer: *mut ::std::os::raw::c_void,
4831        length: ::std::os::raw::c_ulong,
4832    ) -> ::std::os::raw::c_ulong;
4833}
4834unsafe extern "C" {
4835    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetTime\n          Get the time of signing of a signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n          buffer      -   The address of a buffer that receives the time.\n          length      -   The size, in bytes, of |buffer|.\n Return value:\n          Returns the number of bytes in the encoding name (including the\n          trailing NUL character) on success, 0 on error.\n\n The |buffer| is always encoded in 7-bit ASCII. If |length| is less than the\n returned length, or |buffer| is NULL, |buffer| will not be modified.\n\n The format of time is expected to be D:YYYYMMDDHHMMSS+XX'YY', i.e. it's\n percision is seconds, with timezone information. This value should be used\n only when the time of signing is not available in the (PKCS#7 binary)\n signature."]
4836    pub fn FPDFSignatureObj_GetTime(
4837        signature: FPDF_SIGNATURE,
4838        buffer: *mut ::std::os::raw::c_char,
4839        length: ::std::os::raw::c_ulong,
4840    ) -> ::std::os::raw::c_ulong;
4841}
4842unsafe extern "C" {
4843    #[doc = " Experimental API.\n Function: FPDFSignatureObj_GetDocMDPPermission\n          Get the DocMDP permission of a signature object.\n Parameters:\n          signature   -   Handle to the signature object. Returned by\n                          FPDF_GetSignatureObject().\n Return value:\n          Returns the permission (1, 2 or 3) on success, 0 on error."]
4844    pub fn FPDFSignatureObj_GetDocMDPPermission(signature: FPDF_SIGNATURE) -> ::std::os::raw::c_uint;
4845}
4846#[doc = " IFPDF_RENDERINFO interface."]
4847#[repr(C)]
4848#[derive(Debug, Copy, Clone)]
4849pub struct _IFSDK_PAUSE {
4850    #[doc = " Version number of the interface. Currently must be 1."]
4851    pub version: ::std::os::raw::c_int,
4852    #[doc = " Method: NeedToPauseNow\n           Check if we need to pause a progressive process now.\n Interface Version:\n           1\n Implementation Required:\n           yes\n Parameters:\n           pThis       -   Pointer to the interface structure itself\n Return Value:\n           Non-zero for pause now, 0 for continue."]
4853    pub NeedToPauseNow: ::std::option::Option<unsafe extern "C" fn(pThis: *mut _IFSDK_PAUSE) -> FPDF_BOOL>,
4854    #[doc = " A user defined data pointer, used by user's application. Can be NULL."]
4855    pub user: *mut ::std::os::raw::c_void,
4856}
4857#[doc = " IFPDF_RENDERINFO interface."]
4858pub type IFSDK_PAUSE = _IFSDK_PAUSE;
4859unsafe extern "C" {
4860    #[doc = " Experimental API.\n Function: FPDF_RenderPageBitmapWithColorScheme_Start\n          Start to render page contents to a device independent bitmap\n          progressively with a specified color scheme for the content.\n Parameters:\n          bitmap       -   Handle to the device independent bitmap (as the\n                           output buffer). Bitmap handle can be created by\n                           FPDFBitmap_Create function.\n          page         -   Handle to the page as returned by FPDF_LoadPage\n                           function.\n          start_x      -   Left pixel position of the display area in the\n                           bitmap coordinate.\n          start_y      -   Top pixel position of the display area in the\n                           bitmap coordinate.\n          size_x       -   Horizontal size (in pixels) for displaying the\n                           page.\n          size_y       -   Vertical size (in pixels) for displaying the page.\n          rotate       -   Page orientation: 0 (normal), 1 (rotated 90\n                           degrees clockwise), 2 (rotated 180 degrees),\n                           3 (rotated 90 degrees counter-clockwise).\n          flags        -   0 for normal display, or combination of flags\n                           defined in fpdfview.h. With FPDF_ANNOT flag, it\n                           renders all annotations that does not require\n                           user-interaction, which are all annotations except\n                           widget and popup annotations.\n          color_scheme -   Color scheme to be used in rendering the |page|.\n                           If null, this function will work similar to\n                           FPDF_RenderPageBitmap_Start().\n          pause        -   The IFSDK_PAUSE interface. A callback mechanism\n                           allowing the page rendering process.\n Return value:\n          Rendering Status. See flags for progressive process status for the\n          details."]
4861    pub fn FPDF_RenderPageBitmapWithColorScheme_Start(
4862        bitmap: FPDF_BITMAP,
4863        page: FPDF_PAGE,
4864        start_x: ::std::os::raw::c_int,
4865        start_y: ::std::os::raw::c_int,
4866        size_x: ::std::os::raw::c_int,
4867        size_y: ::std::os::raw::c_int,
4868        rotate: ::std::os::raw::c_int,
4869        flags: ::std::os::raw::c_int,
4870        color_scheme: *const FPDF_COLORSCHEME,
4871        pause: *mut IFSDK_PAUSE,
4872    ) -> ::std::os::raw::c_int;
4873}
4874unsafe extern "C" {
4875    #[doc = " Function: FPDF_RenderPageBitmap_Start\n          Start to render page contents to a device independent bitmap\n          progressively.\n Parameters:\n          bitmap      -   Handle to the device independent bitmap (as the\n                          output buffer). Bitmap handle can be created by\n                          FPDFBitmap_Create().\n          page        -   Handle to the page, as returned by FPDF_LoadPage().\n          start_x     -   Left pixel position of the display area in the\n                          bitmap coordinates.\n          start_y     -   Top pixel position of the display area in the bitmap\n                          coordinates.\n          size_x      -   Horizontal size (in pixels) for displaying the page.\n          size_y      -   Vertical size (in pixels) for displaying the page.\n          rotate      -   Page orientation: 0 (normal), 1 (rotated 90 degrees\n                          clockwise), 2 (rotated 180 degrees), 3 (rotated 90\n                          degrees counter-clockwise).\n          flags       -   0 for normal display, or combination of flags\n                          defined in fpdfview.h. With FPDF_ANNOT flag, it\n                          renders all annotations that does not require\n                          user-interaction, which are all annotations except\n                          widget and popup annotations.\n          pause       -   The IFSDK_PAUSE interface.A callback mechanism\n                          allowing the page rendering process\n Return value:\n          Rendering Status. See flags for progressive process status for the\n          details."]
4876    pub fn FPDF_RenderPageBitmap_Start(
4877        bitmap: FPDF_BITMAP,
4878        page: FPDF_PAGE,
4879        start_x: ::std::os::raw::c_int,
4880        start_y: ::std::os::raw::c_int,
4881        size_x: ::std::os::raw::c_int,
4882        size_y: ::std::os::raw::c_int,
4883        rotate: ::std::os::raw::c_int,
4884        flags: ::std::os::raw::c_int,
4885        pause: *mut IFSDK_PAUSE,
4886    ) -> ::std::os::raw::c_int;
4887}
4888unsafe extern "C" {
4889    #[doc = " Function: FPDF_RenderPage_Continue\n          Continue rendering a PDF page.\n Parameters:\n          page        -   Handle to the page, as returned by FPDF_LoadPage().\n          pause       -   The IFSDK_PAUSE interface (a callback mechanism\n                          allowing the page rendering process to be paused\n                          before it's finished). This can be NULL if you\n                          don't want to pause.\n Return value:\n          The rendering status. See flags for progressive process status for\n          the details."]
4890    pub fn FPDF_RenderPage_Continue(page: FPDF_PAGE, pause: *mut IFSDK_PAUSE) -> ::std::os::raw::c_int;
4891}
4892unsafe extern "C" {
4893    #[doc = " Function: FPDF_RenderPage_Close\n          Release the resource allocate during page rendering. Need to be\n          called after finishing rendering or\n          cancel the rendering.\n Parameters:\n          page        -   Handle to the page, as returned by FPDF_LoadPage().\n Return value:\n          None."]
4894    pub fn FPDF_RenderPage_Close(page: FPDF_PAGE);
4895}
4896#[doc = " Interface for checking whether sections of the file are available."]
4897#[repr(C)]
4898#[derive(Debug, Copy, Clone)]
4899pub struct _FX_FILEAVAIL {
4900    #[doc = " Version number of the interface. Must be 1."]
4901    pub version: ::std::os::raw::c_int,
4902    #[doc = " Reports if the specified data section is currently available. A section is\n available if all bytes in the section are available.\n\n Interface Version: 1\n Implementation Required: Yes\n\n   pThis  - pointer to the interface structure.\n   offset - the offset of the data section in the file.\n   size   - the size of the data section.\n\n Returns true if the specified data section at |offset| of |size|\n is available."]
4903    pub IsDataAvail:
4904        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FX_FILEAVAIL, offset: usize, size: usize) -> FPDF_BOOL>,
4905}
4906#[doc = " Interface for checking whether sections of the file are available."]
4907pub type FX_FILEAVAIL = _FX_FILEAVAIL;
4908unsafe extern "C" {
4909    #[doc = " Create a document availability provider.\n\n   file_avail - pointer to file availability interface.\n   file       - pointer to a file access interface.\n\n Returns a handle to the document availability provider, or NULL on error.\n\n FPDFAvail_Destroy() must be called when done with the availability provider."]
4910    pub fn FPDFAvail_Create(file_avail: *mut FX_FILEAVAIL, file: *mut FPDF_FILEACCESS) -> FPDF_AVAIL;
4911}
4912unsafe extern "C" {
4913    #[doc = " Destroy the |avail| document availability provider.\n\n   avail - handle to document availability provider to be destroyed."]
4914    pub fn FPDFAvail_Destroy(avail: FPDF_AVAIL);
4915}
4916#[doc = " Download hints interface. Used to receive hints for further downloading."]
4917#[repr(C)]
4918#[derive(Debug, Copy, Clone)]
4919pub struct _FX_DOWNLOADHINTS {
4920    #[doc = " Version number of the interface. Must be 1."]
4921    pub version: ::std::os::raw::c_int,
4922    #[doc = " Add a section to be downloaded.\n\n Interface Version: 1\n Implementation Required: Yes\n\n   pThis  - pointer to the interface structure.\n   offset - the offset of the hint reported to be downloaded.\n   size   - the size of the hint reported to be downloaded.\n\n The |offset| and |size| of the section may not be unique. Part of the\n section might be already available. The download manager must deal with\n overlapping sections."]
4923    pub AddSegment:
4924        ::std::option::Option<unsafe extern "C" fn(pThis: *mut _FX_DOWNLOADHINTS, offset: usize, size: usize)>,
4925}
4926#[doc = " Download hints interface. Used to receive hints for further downloading."]
4927pub type FX_DOWNLOADHINTS = _FX_DOWNLOADHINTS;
4928unsafe extern "C" {
4929    #[doc = " Checks if the document is ready for loading, if not, gets download hints.\n\n   avail - handle to document availability provider.\n   hints - pointer to a download hints interface.\n\n Returns one of:\n   PDF_DATA_ERROR: A common error is returned. Data availability unknown.\n   PDF_DATA_NOTAVAIL: Data not yet available.\n   PDF_DATA_AVAIL: Data available.\n\n Applications should call this function whenever new data arrives, and process\n all the generated download hints, if any, until the function returns\n |PDF_DATA_ERROR| or |PDF_DATA_AVAIL|.\n if hints is nullptr, the function just check current document availability.\n\n Once all data is available, call FPDFAvail_GetDocument() to get a document\n handle."]
4930    pub fn FPDFAvail_IsDocAvail(avail: FPDF_AVAIL, hints: *mut FX_DOWNLOADHINTS) -> ::std::os::raw::c_int;
4931}
4932unsafe extern "C" {
4933    #[doc = " Get document from the availability provider.\n\n   avail    - handle to document availability provider.\n   password - password for decrypting the PDF file. Optional.\n\n Returns a handle to the document.\n\n When FPDFAvail_IsDocAvail() returns TRUE, call FPDFAvail_GetDocument() to\n retrieve the document handle.\n See the comments for FPDF_LoadDocument() regarding the encoding for\n |password|."]
4934    pub fn FPDFAvail_GetDocument(avail: FPDF_AVAIL, password: FPDF_BYTESTRING) -> FPDF_DOCUMENT;
4935}
4936unsafe extern "C" {
4937    #[doc = " Get the page number for the first available page in a linearized PDF.\n\n   doc - document handle.\n\n Returns the zero-based index for the first available page.\n\n For most linearized PDFs, the first available page will be the first page,\n however, some PDFs might make another page the first available page.\n For non-linearized PDFs, this function will always return zero."]
4938    pub fn FPDFAvail_GetFirstPageNum(doc: FPDF_DOCUMENT) -> ::std::os::raw::c_int;
4939}
4940unsafe extern "C" {
4941    #[doc = " Check if |page_index| is ready for loading, if not, get the\n |FX_DOWNLOADHINTS|.\n\n   avail      - handle to document availability provider.\n   page_index - index number of the page. Zero for the first page.\n   hints      - pointer to a download hints interface. Populated if\n                |page_index| is not available.\n\n Returns one of:\n   PDF_DATA_ERROR: A common error is returned. Data availability unknown.\n   PDF_DATA_NOTAVAIL: Data not yet available.\n   PDF_DATA_AVAIL: Data available.\n\n This function can be called only after FPDFAvail_GetDocument() is called.\n Applications should call this function whenever new data arrives and process\n all the generated download |hints|, if any, until this function returns\n |PDF_DATA_ERROR| or |PDF_DATA_AVAIL|. Applications can then perform page\n loading.\n if hints is nullptr, the function just check current availability of\n specified page."]
4942    pub fn FPDFAvail_IsPageAvail(
4943        avail: FPDF_AVAIL,
4944        page_index: ::std::os::raw::c_int,
4945        hints: *mut FX_DOWNLOADHINTS,
4946    ) -> ::std::os::raw::c_int;
4947}
4948unsafe extern "C" {
4949    #[doc = " Check if form data is ready for initialization, if not, get the\n |FX_DOWNLOADHINTS|.\n\n   avail - handle to document availability provider.\n   hints - pointer to a download hints interface. Populated if form is not\n           ready for initialization.\n\n Returns one of:\n   PDF_FORM_ERROR: A common eror, in general incorrect parameters.\n   PDF_FORM_NOTAVAIL: Data not available.\n   PDF_FORM_AVAIL: Data available.\n   PDF_FORM_NOTEXIST: No form data.\n\n This function can be called only after FPDFAvail_GetDocument() is called.\n The application should call this function whenever new data arrives and\n process all the generated download |hints|, if any, until the function\n |PDF_FORM_ERROR|, |PDF_FORM_AVAIL| or |PDF_FORM_NOTEXIST|.\n if hints is nullptr, the function just check current form availability.\n\n Applications can then perform page loading. It is recommend to call\n FPDFDOC_InitFormFillEnvironment() when |PDF_FORM_AVAIL| is returned."]
4950    pub fn FPDFAvail_IsFormAvail(avail: FPDF_AVAIL, hints: *mut FX_DOWNLOADHINTS) -> ::std::os::raw::c_int;
4951}
4952unsafe extern "C" {
4953    #[doc = " Check whether a document is a linearized PDF.\n\n   avail - handle to document availability provider.\n\n Returns one of:\n   PDF_LINEARIZED\n   PDF_NOT_LINEARIZED\n   PDF_LINEARIZATION_UNKNOWN\n\n FPDFAvail_IsLinearized() will return |PDF_LINEARIZED| or |PDF_NOT_LINEARIZED|\n when we have 1k  of data. If the files size less than 1k, it returns\n |PDF_LINEARIZATION_UNKNOWN| as there is insufficient information to determine\n if the PDF is linearlized."]
4954    pub fn FPDFAvail_IsLinearized(avail: FPDF_AVAIL) -> ::std::os::raw::c_int;
4955}
4956unsafe extern "C" {
4957    #[doc = " Experimental API.\n Gets the decoded data from the thumbnail of |page| if it exists.\n This only modifies |buffer| if |buflen| less than or equal to the\n size of the decoded data. Returns the size of the decoded\n data or 0 if thumbnail DNE. Optional, pass null to just retrieve\n the size of the buffer needed.\n\n   page    - handle to a page.\n   buffer  - buffer for holding the decoded image data.\n   buflen  - length of the buffer in bytes."]
4958    pub fn FPDFPage_GetDecodedThumbnailData(
4959        page: FPDF_PAGE,
4960        buffer: *mut ::std::os::raw::c_void,
4961        buflen: ::std::os::raw::c_ulong,
4962    ) -> ::std::os::raw::c_ulong;
4963}
4964unsafe extern "C" {
4965    #[doc = " Experimental API.\n Gets the raw data from the thumbnail of |page| if it exists.\n This only modifies |buffer| if |buflen| is less than or equal to\n the size of the raw data. Returns the size of the raw data or 0\n if thumbnail DNE. Optional, pass null to just retrieve the size\n of the buffer needed.\n\n   page    - handle to a page.\n   buffer  - buffer for holding the raw image data.\n   buflen  - length of the buffer in bytes."]
4966    pub fn FPDFPage_GetRawThumbnailData(
4967        page: FPDF_PAGE,
4968        buffer: *mut ::std::os::raw::c_void,
4969        buflen: ::std::os::raw::c_ulong,
4970    ) -> ::std::os::raw::c_ulong;
4971}
4972unsafe extern "C" {
4973    #[doc = " Experimental API.\n Returns the thumbnail of |page| as a FPDF_BITMAP. Returns a nullptr\n if unable to access the thumbnail's stream.\n\n   page - handle to a page."]
4974    pub fn FPDFPage_GetThumbnailAsBitmap(page: FPDF_PAGE) -> FPDF_BITMAP;
4975}
4976pub type __builtin_va_list = *mut ::std::os::raw::c_char;