1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
// Generated by gir (https://github.com/gtk-rs/gir @ c88b69265102)
// from
// from gir-files (https://github.com/gtk-rs/gir-files @ c23f21f51d54)
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(
    clippy::approx_constant,
    clippy::type_complexity,
    clippy::unreadable_literal,
    clippy::upper_case_acronyms
)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[allow(unused_imports)]
use libc::{
    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
    intptr_t, size_t, ssize_t, uintptr_t, FILE,
};

#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};

// Enums
pub type PopplerActionLayerAction = c_int;
pub const POPPLER_ACTION_LAYER_ON: PopplerActionLayerAction = 0;
pub const POPPLER_ACTION_LAYER_OFF: PopplerActionLayerAction = 1;
pub const POPPLER_ACTION_LAYER_TOGGLE: PopplerActionLayerAction = 2;

pub type PopplerActionMovieOperation = c_int;
pub const POPPLER_ACTION_MOVIE_PLAY: PopplerActionMovieOperation = 0;
pub const POPPLER_ACTION_MOVIE_PAUSE: PopplerActionMovieOperation = 1;
pub const POPPLER_ACTION_MOVIE_RESUME: PopplerActionMovieOperation = 2;
pub const POPPLER_ACTION_MOVIE_STOP: PopplerActionMovieOperation = 3;

pub type PopplerActionType = c_int;
pub const POPPLER_ACTION_UNKNOWN: PopplerActionType = 0;
pub const POPPLER_ACTION_NONE: PopplerActionType = 1;
pub const POPPLER_ACTION_GOTO_DEST: PopplerActionType = 2;
pub const POPPLER_ACTION_GOTO_REMOTE: PopplerActionType = 3;
pub const POPPLER_ACTION_LAUNCH: PopplerActionType = 4;
pub const POPPLER_ACTION_URI: PopplerActionType = 5;
pub const POPPLER_ACTION_NAMED: PopplerActionType = 6;
pub const POPPLER_ACTION_MOVIE: PopplerActionType = 7;
pub const POPPLER_ACTION_RENDITION: PopplerActionType = 8;
pub const POPPLER_ACTION_OCG_STATE: PopplerActionType = 9;
pub const POPPLER_ACTION_JAVASCRIPT: PopplerActionType = 10;
pub const POPPLER_ACTION_RESET_FORM: PopplerActionType = 11;

pub type PopplerAdditionalActionType = c_int;
pub const POPPLER_ADDITIONAL_ACTION_FIELD_MODIFIED: PopplerAdditionalActionType = 0;
pub const POPPLER_ADDITIONAL_ACTION_FORMAT_FIELD: PopplerAdditionalActionType = 1;
pub const POPPLER_ADDITIONAL_ACTION_VALIDATE_FIELD: PopplerAdditionalActionType = 2;
pub const POPPLER_ADDITIONAL_ACTION_CALCULATE_FIELD: PopplerAdditionalActionType = 3;

pub type PopplerAnnotExternalDataType = c_int;
pub const POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D: PopplerAnnotExternalDataType = 0;
pub const POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN: PopplerAnnotExternalDataType = 1;

pub type PopplerAnnotFreeTextQuadding = c_int;
pub const POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED: PopplerAnnotFreeTextQuadding = 0;
pub const POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED: PopplerAnnotFreeTextQuadding = 1;
pub const POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED: PopplerAnnotFreeTextQuadding = 2;

pub type PopplerAnnotMarkupReplyType = c_int;
pub const POPPLER_ANNOT_MARKUP_REPLY_TYPE_R: PopplerAnnotMarkupReplyType = 0;
pub const POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP: PopplerAnnotMarkupReplyType = 1;

pub type PopplerAnnotStampIcon = c_int;
pub const POPPLER_ANNOT_STAMP_ICON_UNKNOWN: PopplerAnnotStampIcon = 0;
pub const POPPLER_ANNOT_STAMP_ICON_APPROVED: PopplerAnnotStampIcon = 1;
pub const POPPLER_ANNOT_STAMP_ICON_AS_IS: PopplerAnnotStampIcon = 2;
pub const POPPLER_ANNOT_STAMP_ICON_CONFIDENTIAL: PopplerAnnotStampIcon = 3;
pub const POPPLER_ANNOT_STAMP_ICON_FINAL: PopplerAnnotStampIcon = 4;
pub const POPPLER_ANNOT_STAMP_ICON_EXPERIMENTAL: PopplerAnnotStampIcon = 5;
pub const POPPLER_ANNOT_STAMP_ICON_EXPIRED: PopplerAnnotStampIcon = 6;
pub const POPPLER_ANNOT_STAMP_ICON_NOT_APPROVED: PopplerAnnotStampIcon = 7;
pub const POPPLER_ANNOT_STAMP_ICON_NOT_FOR_PUBLIC_RELEASE: PopplerAnnotStampIcon = 8;
pub const POPPLER_ANNOT_STAMP_ICON_SOLD: PopplerAnnotStampIcon = 9;
pub const POPPLER_ANNOT_STAMP_ICON_DEPARTMENTAL: PopplerAnnotStampIcon = 10;
pub const POPPLER_ANNOT_STAMP_ICON_FOR_COMMENT: PopplerAnnotStampIcon = 11;
pub const POPPLER_ANNOT_STAMP_ICON_FOR_PUBLIC_RELEASE: PopplerAnnotStampIcon = 12;
pub const POPPLER_ANNOT_STAMP_ICON_TOP_SECRET: PopplerAnnotStampIcon = 13;
pub const POPPLER_ANNOT_STAMP_ICON_NONE: PopplerAnnotStampIcon = 14;

pub type PopplerAnnotTextState = c_int;
pub const POPPLER_ANNOT_TEXT_STATE_MARKED: PopplerAnnotTextState = 0;
pub const POPPLER_ANNOT_TEXT_STATE_UNMARKED: PopplerAnnotTextState = 1;
pub const POPPLER_ANNOT_TEXT_STATE_ACCEPTED: PopplerAnnotTextState = 2;
pub const POPPLER_ANNOT_TEXT_STATE_REJECTED: PopplerAnnotTextState = 3;
pub const POPPLER_ANNOT_TEXT_STATE_CANCELLED: PopplerAnnotTextState = 4;
pub const POPPLER_ANNOT_TEXT_STATE_COMPLETED: PopplerAnnotTextState = 5;
pub const POPPLER_ANNOT_TEXT_STATE_NONE: PopplerAnnotTextState = 6;
pub const POPPLER_ANNOT_TEXT_STATE_UNKNOWN: PopplerAnnotTextState = 7;

pub type PopplerAnnotType = c_int;
pub const POPPLER_ANNOT_UNKNOWN: PopplerAnnotType = 0;
pub const POPPLER_ANNOT_TEXT: PopplerAnnotType = 1;
pub const POPPLER_ANNOT_LINK: PopplerAnnotType = 2;
pub const POPPLER_ANNOT_FREE_TEXT: PopplerAnnotType = 3;
pub const POPPLER_ANNOT_LINE: PopplerAnnotType = 4;
pub const POPPLER_ANNOT_SQUARE: PopplerAnnotType = 5;
pub const POPPLER_ANNOT_CIRCLE: PopplerAnnotType = 6;
pub const POPPLER_ANNOT_POLYGON: PopplerAnnotType = 7;
pub const POPPLER_ANNOT_POLY_LINE: PopplerAnnotType = 8;
pub const POPPLER_ANNOT_HIGHLIGHT: PopplerAnnotType = 9;
pub const POPPLER_ANNOT_UNDERLINE: PopplerAnnotType = 10;
pub const POPPLER_ANNOT_SQUIGGLY: PopplerAnnotType = 11;
pub const POPPLER_ANNOT_STRIKE_OUT: PopplerAnnotType = 12;
pub const POPPLER_ANNOT_STAMP: PopplerAnnotType = 13;
pub const POPPLER_ANNOT_CARET: PopplerAnnotType = 14;
pub const POPPLER_ANNOT_INK: PopplerAnnotType = 15;
pub const POPPLER_ANNOT_POPUP: PopplerAnnotType = 16;
pub const POPPLER_ANNOT_FILE_ATTACHMENT: PopplerAnnotType = 17;
pub const POPPLER_ANNOT_SOUND: PopplerAnnotType = 18;
pub const POPPLER_ANNOT_MOVIE: PopplerAnnotType = 19;
pub const POPPLER_ANNOT_WIDGET: PopplerAnnotType = 20;
pub const POPPLER_ANNOT_SCREEN: PopplerAnnotType = 21;
pub const POPPLER_ANNOT_PRINTER_MARK: PopplerAnnotType = 22;
pub const POPPLER_ANNOT_TRAP_NET: PopplerAnnotType = 23;
pub const POPPLER_ANNOT_WATERMARK: PopplerAnnotType = 24;
pub const POPPLER_ANNOT_3D: PopplerAnnotType = 25;

pub type PopplerBackend = c_int;
pub const POPPLER_BACKEND_UNKNOWN: PopplerBackend = 0;
pub const POPPLER_BACKEND_SPLASH: PopplerBackend = 1;
pub const POPPLER_BACKEND_CAIRO: PopplerBackend = 2;

pub type PopplerCertificateStatus = c_int;
pub const POPPLER_CERTIFICATE_TRUSTED: PopplerCertificateStatus = 0;
pub const POPPLER_CERTIFICATE_UNTRUSTED_ISSUER: PopplerCertificateStatus = 1;
pub const POPPLER_CERTIFICATE_UNKNOWN_ISSUER: PopplerCertificateStatus = 2;
pub const POPPLER_CERTIFICATE_REVOKED: PopplerCertificateStatus = 3;
pub const POPPLER_CERTIFICATE_EXPIRED: PopplerCertificateStatus = 4;
pub const POPPLER_CERTIFICATE_GENERIC_ERROR: PopplerCertificateStatus = 5;
pub const POPPLER_CERTIFICATE_NOT_VERIFIED: PopplerCertificateStatus = 6;

pub type PopplerDestType = c_int;
pub const POPPLER_DEST_UNKNOWN: PopplerDestType = 0;
pub const POPPLER_DEST_XYZ: PopplerDestType = 1;
pub const POPPLER_DEST_FIT: PopplerDestType = 2;
pub const POPPLER_DEST_FITH: PopplerDestType = 3;
pub const POPPLER_DEST_FITV: PopplerDestType = 4;
pub const POPPLER_DEST_FITR: PopplerDestType = 5;
pub const POPPLER_DEST_FITB: PopplerDestType = 6;
pub const POPPLER_DEST_FITBH: PopplerDestType = 7;
pub const POPPLER_DEST_FITBV: PopplerDestType = 8;
pub const POPPLER_DEST_NAMED: PopplerDestType = 9;

pub type PopplerError = c_int;
pub const POPPLER_ERROR_INVALID: PopplerError = 0;
pub const POPPLER_ERROR_ENCRYPTED: PopplerError = 1;
pub const POPPLER_ERROR_OPEN_FILE: PopplerError = 2;
pub const POPPLER_ERROR_BAD_CATALOG: PopplerError = 3;
pub const POPPLER_ERROR_DAMAGED: PopplerError = 4;

pub type PopplerFontType = c_int;
pub const POPPLER_FONT_TYPE_UNKNOWN: PopplerFontType = 0;
pub const POPPLER_FONT_TYPE_TYPE1: PopplerFontType = 1;
pub const POPPLER_FONT_TYPE_TYPE1C: PopplerFontType = 2;
pub const POPPLER_FONT_TYPE_TYPE1COT: PopplerFontType = 3;
pub const POPPLER_FONT_TYPE_TYPE3: PopplerFontType = 4;
pub const POPPLER_FONT_TYPE_TRUETYPE: PopplerFontType = 5;
pub const POPPLER_FONT_TYPE_TRUETYPEOT: PopplerFontType = 6;
pub const POPPLER_FONT_TYPE_CID_TYPE0: PopplerFontType = 7;
pub const POPPLER_FONT_TYPE_CID_TYPE0C: PopplerFontType = 8;
pub const POPPLER_FONT_TYPE_CID_TYPE0COT: PopplerFontType = 9;
pub const POPPLER_FONT_TYPE_CID_TYPE2: PopplerFontType = 10;
pub const POPPLER_FONT_TYPE_CID_TYPE2OT: PopplerFontType = 11;

pub type PopplerFormButtonType = c_int;
pub const POPPLER_FORM_BUTTON_PUSH: PopplerFormButtonType = 0;
pub const POPPLER_FORM_BUTTON_CHECK: PopplerFormButtonType = 1;
pub const POPPLER_FORM_BUTTON_RADIO: PopplerFormButtonType = 2;

pub type PopplerFormChoiceType = c_int;
pub const POPPLER_FORM_CHOICE_COMBO: PopplerFormChoiceType = 0;
pub const POPPLER_FORM_CHOICE_LIST: PopplerFormChoiceType = 1;

pub type PopplerFormFieldType = c_int;
pub const POPPLER_FORM_FIELD_UNKNOWN: PopplerFormFieldType = 0;
pub const POPPLER_FORM_FIELD_BUTTON: PopplerFormFieldType = 1;
pub const POPPLER_FORM_FIELD_TEXT: PopplerFormFieldType = 2;
pub const POPPLER_FORM_FIELD_CHOICE: PopplerFormFieldType = 3;
pub const POPPLER_FORM_FIELD_SIGNATURE: PopplerFormFieldType = 4;

pub type PopplerFormTextType = c_int;
pub const POPPLER_FORM_TEXT_NORMAL: PopplerFormTextType = 0;
pub const POPPLER_FORM_TEXT_MULTILINE: PopplerFormTextType = 1;
pub const POPPLER_FORM_TEXT_FILE_SELECT: PopplerFormTextType = 2;

pub type PopplerMoviePlayMode = c_int;
pub const POPPLER_MOVIE_PLAY_MODE_ONCE: PopplerMoviePlayMode = 0;
pub const POPPLER_MOVIE_PLAY_MODE_OPEN: PopplerMoviePlayMode = 1;
pub const POPPLER_MOVIE_PLAY_MODE_REPEAT: PopplerMoviePlayMode = 2;
pub const POPPLER_MOVIE_PLAY_MODE_PALINDROME: PopplerMoviePlayMode = 3;

pub type PopplerPDFConformance = c_int;
pub const POPPLER_PDF_SUBTYPE_CONF_UNSET: PopplerPDFConformance = 0;
pub const POPPLER_PDF_SUBTYPE_CONF_A: PopplerPDFConformance = 1;
pub const POPPLER_PDF_SUBTYPE_CONF_B: PopplerPDFConformance = 2;
pub const POPPLER_PDF_SUBTYPE_CONF_G: PopplerPDFConformance = 3;
pub const POPPLER_PDF_SUBTYPE_CONF_N: PopplerPDFConformance = 4;
pub const POPPLER_PDF_SUBTYPE_CONF_P: PopplerPDFConformance = 5;
pub const POPPLER_PDF_SUBTYPE_CONF_PG: PopplerPDFConformance = 6;
pub const POPPLER_PDF_SUBTYPE_CONF_U: PopplerPDFConformance = 7;
pub const POPPLER_PDF_SUBTYPE_CONF_NONE: PopplerPDFConformance = 8;

pub type PopplerPDFPart = c_int;
pub const POPPLER_PDF_SUBTYPE_PART_UNSET: PopplerPDFPart = 0;
pub const POPPLER_PDF_SUBTYPE_PART_1: PopplerPDFPart = 1;
pub const POPPLER_PDF_SUBTYPE_PART_2: PopplerPDFPart = 2;
pub const POPPLER_PDF_SUBTYPE_PART_3: PopplerPDFPart = 3;
pub const POPPLER_PDF_SUBTYPE_PART_4: PopplerPDFPart = 4;
pub const POPPLER_PDF_SUBTYPE_PART_5: PopplerPDFPart = 5;
pub const POPPLER_PDF_SUBTYPE_PART_6: PopplerPDFPart = 6;
pub const POPPLER_PDF_SUBTYPE_PART_7: PopplerPDFPart = 7;
pub const POPPLER_PDF_SUBTYPE_PART_8: PopplerPDFPart = 8;
pub const POPPLER_PDF_SUBTYPE_PART_NONE: PopplerPDFPart = 9;

pub type PopplerPDFSubtype = c_int;
pub const POPPLER_PDF_SUBTYPE_UNSET: PopplerPDFSubtype = 0;
pub const POPPLER_PDF_SUBTYPE_PDF_A: PopplerPDFSubtype = 1;
pub const POPPLER_PDF_SUBTYPE_PDF_E: PopplerPDFSubtype = 2;
pub const POPPLER_PDF_SUBTYPE_PDF_UA: PopplerPDFSubtype = 3;
pub const POPPLER_PDF_SUBTYPE_PDF_VT: PopplerPDFSubtype = 4;
pub const POPPLER_PDF_SUBTYPE_PDF_X: PopplerPDFSubtype = 5;
pub const POPPLER_PDF_SUBTYPE_NONE: PopplerPDFSubtype = 6;

pub type PopplerPageLayout = c_int;
pub const POPPLER_PAGE_LAYOUT_UNSET: PopplerPageLayout = 0;
pub const POPPLER_PAGE_LAYOUT_SINGLE_PAGE: PopplerPageLayout = 1;
pub const POPPLER_PAGE_LAYOUT_ONE_COLUMN: PopplerPageLayout = 2;
pub const POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT: PopplerPageLayout = 3;
pub const POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT: PopplerPageLayout = 4;
pub const POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT: PopplerPageLayout = 5;
pub const POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT: PopplerPageLayout = 6;

pub type PopplerPageMode = c_int;
pub const POPPLER_PAGE_MODE_UNSET: PopplerPageMode = 0;
pub const POPPLER_PAGE_MODE_NONE: PopplerPageMode = 1;
pub const POPPLER_PAGE_MODE_USE_OUTLINES: PopplerPageMode = 2;
pub const POPPLER_PAGE_MODE_USE_THUMBS: PopplerPageMode = 3;
pub const POPPLER_PAGE_MODE_FULL_SCREEN: PopplerPageMode = 4;
pub const POPPLER_PAGE_MODE_USE_OC: PopplerPageMode = 5;
pub const POPPLER_PAGE_MODE_USE_ATTACHMENTS: PopplerPageMode = 6;

pub type PopplerPageTransitionAlignment = c_int;
pub const POPPLER_PAGE_TRANSITION_HORIZONTAL: PopplerPageTransitionAlignment = 0;
pub const POPPLER_PAGE_TRANSITION_VERTICAL: PopplerPageTransitionAlignment = 1;

pub type PopplerPageTransitionDirection = c_int;
pub const POPPLER_PAGE_TRANSITION_INWARD: PopplerPageTransitionDirection = 0;
pub const POPPLER_PAGE_TRANSITION_OUTWARD: PopplerPageTransitionDirection = 1;

pub type PopplerPageTransitionType = c_int;
pub const POPPLER_PAGE_TRANSITION_REPLACE: PopplerPageTransitionType = 0;
pub const POPPLER_PAGE_TRANSITION_SPLIT: PopplerPageTransitionType = 1;
pub const POPPLER_PAGE_TRANSITION_BLINDS: PopplerPageTransitionType = 2;
pub const POPPLER_PAGE_TRANSITION_BOX: PopplerPageTransitionType = 3;
pub const POPPLER_PAGE_TRANSITION_WIPE: PopplerPageTransitionType = 4;
pub const POPPLER_PAGE_TRANSITION_DISSOLVE: PopplerPageTransitionType = 5;
pub const POPPLER_PAGE_TRANSITION_GLITTER: PopplerPageTransitionType = 6;
pub const POPPLER_PAGE_TRANSITION_FLY: PopplerPageTransitionType = 7;
pub const POPPLER_PAGE_TRANSITION_PUSH: PopplerPageTransitionType = 8;
pub const POPPLER_PAGE_TRANSITION_COVER: PopplerPageTransitionType = 9;
pub const POPPLER_PAGE_TRANSITION_UNCOVER: PopplerPageTransitionType = 10;
pub const POPPLER_PAGE_TRANSITION_FADE: PopplerPageTransitionType = 11;

pub type PopplerPrintDuplex = c_int;
pub const POPPLER_PRINT_DUPLEX_NONE: PopplerPrintDuplex = 0;
pub const POPPLER_PRINT_DUPLEX_SIMPLEX: PopplerPrintDuplex = 1;
pub const POPPLER_PRINT_DUPLEX_DUPLEX_FLIP_SHORT_EDGE: PopplerPrintDuplex = 2;
pub const POPPLER_PRINT_DUPLEX_DUPLEX_FLIP_LONG_EDGE: PopplerPrintDuplex = 3;

pub type PopplerPrintScaling = c_int;
pub const POPPLER_PRINT_SCALING_APP_DEFAULT: PopplerPrintScaling = 0;
pub const POPPLER_PRINT_SCALING_NONE: PopplerPrintScaling = 1;

pub type PopplerSelectionStyle = c_int;
pub const POPPLER_SELECTION_GLYPH: PopplerSelectionStyle = 0;
pub const POPPLER_SELECTION_WORD: PopplerSelectionStyle = 1;
pub const POPPLER_SELECTION_LINE: PopplerSelectionStyle = 2;

pub type PopplerSignatureStatus = c_int;
pub const POPPLER_SIGNATURE_VALID: PopplerSignatureStatus = 0;
pub const POPPLER_SIGNATURE_INVALID: PopplerSignatureStatus = 1;
pub const POPPLER_SIGNATURE_DIGEST_MISMATCH: PopplerSignatureStatus = 2;
pub const POPPLER_SIGNATURE_DECODING_ERROR: PopplerSignatureStatus = 3;
pub const POPPLER_SIGNATURE_GENERIC_ERROR: PopplerSignatureStatus = 4;
pub const POPPLER_SIGNATURE_NOT_FOUND: PopplerSignatureStatus = 5;
pub const POPPLER_SIGNATURE_NOT_VERIFIED: PopplerSignatureStatus = 6;

pub type PopplerStructureBlockAlign = c_int;
pub const POPPLER_STRUCTURE_BLOCK_ALIGN_BEFORE: PopplerStructureBlockAlign = 0;
pub const POPPLER_STRUCTURE_BLOCK_ALIGN_MIDDLE: PopplerStructureBlockAlign = 1;
pub const POPPLER_STRUCTURE_BLOCK_ALIGN_AFTER: PopplerStructureBlockAlign = 2;
pub const POPPLER_STRUCTURE_BLOCK_ALIGN_JUSTIFY: PopplerStructureBlockAlign = 3;

pub type PopplerStructureBorderStyle = c_int;
pub const POPPLER_STRUCTURE_BORDER_STYLE_NONE: PopplerStructureBorderStyle = 0;
pub const POPPLER_STRUCTURE_BORDER_STYLE_HIDDEN: PopplerStructureBorderStyle = 1;
pub const POPPLER_STRUCTURE_BORDER_STYLE_DOTTED: PopplerStructureBorderStyle = 2;
pub const POPPLER_STRUCTURE_BORDER_STYLE_DASHED: PopplerStructureBorderStyle = 3;
pub const POPPLER_STRUCTURE_BORDER_STYLE_SOLID: PopplerStructureBorderStyle = 4;
pub const POPPLER_STRUCTURE_BORDER_STYLE_DOUBLE: PopplerStructureBorderStyle = 5;
pub const POPPLER_STRUCTURE_BORDER_STYLE_GROOVE: PopplerStructureBorderStyle = 6;
pub const POPPLER_STRUCTURE_BORDER_STYLE_INSET: PopplerStructureBorderStyle = 7;
pub const POPPLER_STRUCTURE_BORDER_STYLE_OUTSET: PopplerStructureBorderStyle = 8;

pub type PopplerStructureElementKind = c_int;
pub const POPPLER_STRUCTURE_ELEMENT_CONTENT: PopplerStructureElementKind = 0;
pub const POPPLER_STRUCTURE_ELEMENT_OBJECT_REFERENCE: PopplerStructureElementKind = 1;
pub const POPPLER_STRUCTURE_ELEMENT_DOCUMENT: PopplerStructureElementKind = 2;
pub const POPPLER_STRUCTURE_ELEMENT_PART: PopplerStructureElementKind = 3;
pub const POPPLER_STRUCTURE_ELEMENT_ARTICLE: PopplerStructureElementKind = 4;
pub const POPPLER_STRUCTURE_ELEMENT_SECTION: PopplerStructureElementKind = 5;
pub const POPPLER_STRUCTURE_ELEMENT_DIV: PopplerStructureElementKind = 6;
pub const POPPLER_STRUCTURE_ELEMENT_SPAN: PopplerStructureElementKind = 7;
pub const POPPLER_STRUCTURE_ELEMENT_QUOTE: PopplerStructureElementKind = 8;
pub const POPPLER_STRUCTURE_ELEMENT_NOTE: PopplerStructureElementKind = 9;
pub const POPPLER_STRUCTURE_ELEMENT_REFERENCE: PopplerStructureElementKind = 10;
pub const POPPLER_STRUCTURE_ELEMENT_BIBENTRY: PopplerStructureElementKind = 11;
pub const POPPLER_STRUCTURE_ELEMENT_CODE: PopplerStructureElementKind = 12;
pub const POPPLER_STRUCTURE_ELEMENT_LINK: PopplerStructureElementKind = 13;
pub const POPPLER_STRUCTURE_ELEMENT_ANNOT: PopplerStructureElementKind = 14;
pub const POPPLER_STRUCTURE_ELEMENT_BLOCKQUOTE: PopplerStructureElementKind = 15;
pub const POPPLER_STRUCTURE_ELEMENT_CAPTION: PopplerStructureElementKind = 16;
pub const POPPLER_STRUCTURE_ELEMENT_NONSTRUCT: PopplerStructureElementKind = 17;
pub const POPPLER_STRUCTURE_ELEMENT_TOC: PopplerStructureElementKind = 18;
pub const POPPLER_STRUCTURE_ELEMENT_TOC_ITEM: PopplerStructureElementKind = 19;
pub const POPPLER_STRUCTURE_ELEMENT_INDEX: PopplerStructureElementKind = 20;
pub const POPPLER_STRUCTURE_ELEMENT_PRIVATE: PopplerStructureElementKind = 21;
pub const POPPLER_STRUCTURE_ELEMENT_PARAGRAPH: PopplerStructureElementKind = 22;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING: PopplerStructureElementKind = 23;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_1: PopplerStructureElementKind = 24;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_2: PopplerStructureElementKind = 25;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_3: PopplerStructureElementKind = 26;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_4: PopplerStructureElementKind = 27;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_5: PopplerStructureElementKind = 28;
pub const POPPLER_STRUCTURE_ELEMENT_HEADING_6: PopplerStructureElementKind = 29;
pub const POPPLER_STRUCTURE_ELEMENT_LIST: PopplerStructureElementKind = 30;
pub const POPPLER_STRUCTURE_ELEMENT_LIST_ITEM: PopplerStructureElementKind = 31;
pub const POPPLER_STRUCTURE_ELEMENT_LIST_LABEL: PopplerStructureElementKind = 32;
pub const POPPLER_STRUCTURE_ELEMENT_LIST_BODY: PopplerStructureElementKind = 33;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE: PopplerStructureElementKind = 34;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_ROW: PopplerStructureElementKind = 35;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_HEADING: PopplerStructureElementKind = 36;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_DATA: PopplerStructureElementKind = 37;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_HEADER: PopplerStructureElementKind = 38;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_FOOTER: PopplerStructureElementKind = 39;
pub const POPPLER_STRUCTURE_ELEMENT_TABLE_BODY: PopplerStructureElementKind = 40;
pub const POPPLER_STRUCTURE_ELEMENT_RUBY: PopplerStructureElementKind = 41;
pub const POPPLER_STRUCTURE_ELEMENT_RUBY_BASE_TEXT: PopplerStructureElementKind = 42;
pub const POPPLER_STRUCTURE_ELEMENT_RUBY_ANNOT_TEXT: PopplerStructureElementKind = 43;
pub const POPPLER_STRUCTURE_ELEMENT_RUBY_PUNCTUATION: PopplerStructureElementKind = 44;
pub const POPPLER_STRUCTURE_ELEMENT_WARICHU: PopplerStructureElementKind = 45;
pub const POPPLER_STRUCTURE_ELEMENT_WARICHU_TEXT: PopplerStructureElementKind = 46;
pub const POPPLER_STRUCTURE_ELEMENT_WARICHU_PUNCTUATION: PopplerStructureElementKind = 47;
pub const POPPLER_STRUCTURE_ELEMENT_FIGURE: PopplerStructureElementKind = 48;
pub const POPPLER_STRUCTURE_ELEMENT_FORMULA: PopplerStructureElementKind = 49;
pub const POPPLER_STRUCTURE_ELEMENT_FORM: PopplerStructureElementKind = 50;

pub type PopplerStructureFormRole = c_int;
pub const POPPLER_STRUCTURE_FORM_ROLE_UNDEFINED: PopplerStructureFormRole = 0;
pub const POPPLER_STRUCTURE_FORM_ROLE_RADIO_BUTTON: PopplerStructureFormRole = 1;
pub const POPPLER_STRUCTURE_FORM_ROLE_PUSH_BUTTON: PopplerStructureFormRole = 2;
pub const POPPLER_STRUCTURE_FORM_ROLE_TEXT_VALUE: PopplerStructureFormRole = 3;
pub const POPPLER_STRUCTURE_FORM_ROLE_CHECKBOX: PopplerStructureFormRole = 4;

pub type PopplerStructureFormState = c_int;
pub const POPPLER_STRUCTURE_FORM_STATE_ON: PopplerStructureFormState = 0;
pub const POPPLER_STRUCTURE_FORM_STATE_OFF: PopplerStructureFormState = 1;
pub const POPPLER_STRUCTURE_FORM_STATE_NEUTRAL: PopplerStructureFormState = 2;

pub type PopplerStructureGlyphOrientation = c_int;
pub const POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO: PopplerStructureGlyphOrientation = 0;
pub const POPPLER_STRUCTURE_GLYPH_ORIENTATION_0: PopplerStructureGlyphOrientation = 0;
pub const POPPLER_STRUCTURE_GLYPH_ORIENTATION_90: PopplerStructureGlyphOrientation = 1;
pub const POPPLER_STRUCTURE_GLYPH_ORIENTATION_180: PopplerStructureGlyphOrientation = 2;
pub const POPPLER_STRUCTURE_GLYPH_ORIENTATION_270: PopplerStructureGlyphOrientation = 3;

pub type PopplerStructureInlineAlign = c_int;
pub const POPPLER_STRUCTURE_INLINE_ALIGN_START: PopplerStructureInlineAlign = 0;
pub const POPPLER_STRUCTURE_INLINE_ALIGN_CENTER: PopplerStructureInlineAlign = 1;
pub const POPPLER_STRUCTURE_INLINE_ALIGN_END: PopplerStructureInlineAlign = 2;

pub type PopplerStructureListNumbering = c_int;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_NONE: PopplerStructureListNumbering = 0;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_DISC: PopplerStructureListNumbering = 1;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_CIRCLE: PopplerStructureListNumbering = 2;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_SQUARE: PopplerStructureListNumbering = 3;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_DECIMAL: PopplerStructureListNumbering = 4;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ROMAN: PopplerStructureListNumbering = 5;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ROMAN: PopplerStructureListNumbering = 6;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ALPHA: PopplerStructureListNumbering = 7;
pub const POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ALPHA: PopplerStructureListNumbering = 8;

pub type PopplerStructurePlacement = c_int;
pub const POPPLER_STRUCTURE_PLACEMENT_BLOCK: PopplerStructurePlacement = 0;
pub const POPPLER_STRUCTURE_PLACEMENT_INLINE: PopplerStructurePlacement = 1;
pub const POPPLER_STRUCTURE_PLACEMENT_BEFORE: PopplerStructurePlacement = 2;
pub const POPPLER_STRUCTURE_PLACEMENT_START: PopplerStructurePlacement = 3;
pub const POPPLER_STRUCTURE_PLACEMENT_END: PopplerStructurePlacement = 4;

pub type PopplerStructureRubyAlign = c_int;
pub const POPPLER_STRUCTURE_RUBY_ALIGN_START: PopplerStructureRubyAlign = 0;
pub const POPPLER_STRUCTURE_RUBY_ALIGN_CENTER: PopplerStructureRubyAlign = 1;
pub const POPPLER_STRUCTURE_RUBY_ALIGN_END: PopplerStructureRubyAlign = 2;
pub const POPPLER_STRUCTURE_RUBY_ALIGN_JUSTIFY: PopplerStructureRubyAlign = 3;
pub const POPPLER_STRUCTURE_RUBY_ALIGN_DISTRIBUTE: PopplerStructureRubyAlign = 4;

pub type PopplerStructureRubyPosition = c_int;
pub const POPPLER_STRUCTURE_RUBY_POSITION_BEFORE: PopplerStructureRubyPosition = 0;
pub const POPPLER_STRUCTURE_RUBY_POSITION_AFTER: PopplerStructureRubyPosition = 1;
pub const POPPLER_STRUCTURE_RUBY_POSITION_WARICHU: PopplerStructureRubyPosition = 2;
pub const POPPLER_STRUCTURE_RUBY_POSITION_INLINE: PopplerStructureRubyPosition = 3;

pub type PopplerStructureTableScope = c_int;
pub const POPPLER_STRUCTURE_TABLE_SCOPE_ROW: PopplerStructureTableScope = 0;
pub const POPPLER_STRUCTURE_TABLE_SCOPE_COLUMN: PopplerStructureTableScope = 1;
pub const POPPLER_STRUCTURE_TABLE_SCOPE_BOTH: PopplerStructureTableScope = 2;

pub type PopplerStructureTextAlign = c_int;
pub const POPPLER_STRUCTURE_TEXT_ALIGN_START: PopplerStructureTextAlign = 0;
pub const POPPLER_STRUCTURE_TEXT_ALIGN_CENTER: PopplerStructureTextAlign = 1;
pub const POPPLER_STRUCTURE_TEXT_ALIGN_END: PopplerStructureTextAlign = 2;
pub const POPPLER_STRUCTURE_TEXT_ALIGN_JUSTIFY: PopplerStructureTextAlign = 3;

pub type PopplerStructureTextDecoration = c_int;
pub const POPPLER_STRUCTURE_TEXT_DECORATION_NONE: PopplerStructureTextDecoration = 0;
pub const POPPLER_STRUCTURE_TEXT_DECORATION_UNDERLINE: PopplerStructureTextDecoration = 1;
pub const POPPLER_STRUCTURE_TEXT_DECORATION_OVERLINE: PopplerStructureTextDecoration = 2;
pub const POPPLER_STRUCTURE_TEXT_DECORATION_LINETHROUGH: PopplerStructureTextDecoration = 3;

pub type PopplerStructureWritingMode = c_int;
pub const POPPLER_STRUCTURE_WRITING_MODE_LR_TB: PopplerStructureWritingMode = 0;
pub const POPPLER_STRUCTURE_WRITING_MODE_RL_TB: PopplerStructureWritingMode = 1;
pub const POPPLER_STRUCTURE_WRITING_MODE_TB_RL: PopplerStructureWritingMode = 2;

// Constants
pub const POPPLER_ANNOT_TEXT_ICON_CIRCLE: &[u8] = b"Circle\0";
pub const POPPLER_ANNOT_TEXT_ICON_COMMENT: &[u8] = b"Comment\0";
pub const POPPLER_ANNOT_TEXT_ICON_CROSS: &[u8] = b"Cross\0";
pub const POPPLER_ANNOT_TEXT_ICON_HELP: &[u8] = b"Help\0";
pub const POPPLER_ANNOT_TEXT_ICON_INSERT: &[u8] = b"Insert\0";
pub const POPPLER_ANNOT_TEXT_ICON_KEY: &[u8] = b"Key\0";
pub const POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH: &[u8] = b"NewParagraph\0";
pub const POPPLER_ANNOT_TEXT_ICON_NOTE: &[u8] = b"Note\0";
pub const POPPLER_ANNOT_TEXT_ICON_PARAGRAPH: &[u8] = b"Paragraph\0";
pub const POPPLER_HAS_CAIRO: c_int = 1;

// Flags
pub type PopplerAnnotFlag = c_uint;
pub const POPPLER_ANNOT_FLAG_UNKNOWN: PopplerAnnotFlag = 0;
pub const POPPLER_ANNOT_FLAG_INVISIBLE: PopplerAnnotFlag = 1;
pub const POPPLER_ANNOT_FLAG_HIDDEN: PopplerAnnotFlag = 2;
pub const POPPLER_ANNOT_FLAG_PRINT: PopplerAnnotFlag = 4;
pub const POPPLER_ANNOT_FLAG_NO_ZOOM: PopplerAnnotFlag = 8;
pub const POPPLER_ANNOT_FLAG_NO_ROTATE: PopplerAnnotFlag = 16;
pub const POPPLER_ANNOT_FLAG_NO_VIEW: PopplerAnnotFlag = 32;
pub const POPPLER_ANNOT_FLAG_READ_ONLY: PopplerAnnotFlag = 64;
pub const POPPLER_ANNOT_FLAG_LOCKED: PopplerAnnotFlag = 128;
pub const POPPLER_ANNOT_FLAG_TOGGLE_NO_VIEW: PopplerAnnotFlag = 256;
pub const POPPLER_ANNOT_FLAG_LOCKED_CONTENTS: PopplerAnnotFlag = 512;

pub type PopplerFindFlags = c_uint;
pub const POPPLER_FIND_DEFAULT: PopplerFindFlags = 0;
pub const POPPLER_FIND_CASE_SENSITIVE: PopplerFindFlags = 1;
pub const POPPLER_FIND_BACKWARDS: PopplerFindFlags = 2;
pub const POPPLER_FIND_WHOLE_WORDS_ONLY: PopplerFindFlags = 4;
pub const POPPLER_FIND_IGNORE_DIACRITICS: PopplerFindFlags = 8;
pub const POPPLER_FIND_MULTILINE: PopplerFindFlags = 16;

pub type PopplerPermissions = c_uint;
pub const POPPLER_PERMISSIONS_OK_TO_PRINT: PopplerPermissions = 1;
pub const POPPLER_PERMISSIONS_OK_TO_MODIFY: PopplerPermissions = 2;
pub const POPPLER_PERMISSIONS_OK_TO_COPY: PopplerPermissions = 4;
pub const POPPLER_PERMISSIONS_OK_TO_ADD_NOTES: PopplerPermissions = 8;
pub const POPPLER_PERMISSIONS_OK_TO_FILL_FORM: PopplerPermissions = 16;
pub const POPPLER_PERMISSIONS_OK_TO_EXTRACT_CONTENTS: PopplerPermissions = 32;
pub const POPPLER_PERMISSIONS_OK_TO_ASSEMBLE: PopplerPermissions = 64;
pub const POPPLER_PERMISSIONS_OK_TO_PRINT_HIGH_RESOLUTION: PopplerPermissions = 128;
pub const POPPLER_PERMISSIONS_FULL: PopplerPermissions = 255;

pub type PopplerPrintFlags = c_uint;
pub const POPPLER_PRINT_DOCUMENT: PopplerPrintFlags = 0;
pub const POPPLER_PRINT_MARKUP_ANNOTS: PopplerPrintFlags = 1;
pub const POPPLER_PRINT_STAMP_ANNOTS_ONLY: PopplerPrintFlags = 2;
pub const POPPLER_PRINT_ALL: PopplerPrintFlags = 1;

pub type PopplerSignatureValidationFlags = c_uint;
pub const POPPLER_SIGNATURE_VALIDATION_FLAG_VALIDATE_CERTIFICATE: PopplerSignatureValidationFlags =
    1;
pub const POPPLER_SIGNATURE_VALIDATION_FLAG_WITHOUT_OCSP_REVOCATION_CHECK:
    PopplerSignatureValidationFlags = 2;
pub const POPPLER_SIGNATURE_VALIDATION_FLAG_USE_AIA_CERTIFICATE_FETCH:
    PopplerSignatureValidationFlags = 4;

pub type PopplerStructureGetTextFlags = c_uint;
pub const POPPLER_STRUCTURE_GET_TEXT_NONE: PopplerStructureGetTextFlags = 0;
pub const POPPLER_STRUCTURE_GET_TEXT_RECURSIVE: PopplerStructureGetTextFlags = 1;

pub type PopplerViewerPreferences = c_uint;
pub const POPPLER_VIEWER_PREFERENCES_UNSET: PopplerViewerPreferences = 0;
pub const POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR: PopplerViewerPreferences = 1;
pub const POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR: PopplerViewerPreferences = 2;
pub const POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI: PopplerViewerPreferences = 4;
pub const POPPLER_VIEWER_PREFERENCES_FIT_WINDOW: PopplerViewerPreferences = 8;
pub const POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW: PopplerViewerPreferences = 16;
pub const POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE: PopplerViewerPreferences = 32;
pub const POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL: PopplerViewerPreferences = 64;

// Unions
#[derive(Copy, Clone)]
#[repr(C)]
pub union PopplerAction {
    pub type_: PopplerActionType,
    pub any: PopplerActionAny,
    pub goto_dest: PopplerActionGotoDest,
    pub goto_remote: PopplerActionGotoRemote,
    pub launch: PopplerActionLaunch,
    pub uri: PopplerActionUri,
    pub named: PopplerActionNamed,
    pub movie: PopplerActionMovie,
    pub rendition: PopplerActionRendition,
    pub ocg_state: PopplerActionOCGState,
    pub javascript: PopplerActionJavascript,
    pub reset_form: PopplerActionResetForm,
}

impl ::std::fmt::Debug for PopplerAction {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAction @ {self:p}"))
            .field("type_", unsafe { &self.type_ })
            .field("any", unsafe { &self.any })
            .field("goto_dest", unsafe { &self.goto_dest })
            .field("goto_remote", unsafe { &self.goto_remote })
            .field("launch", unsafe { &self.launch })
            .field("uri", unsafe { &self.uri })
            .field("named", unsafe { &self.named })
            .field("movie", unsafe { &self.movie })
            .field("rendition", unsafe { &self.rendition })
            .field("ocg_state", unsafe { &self.ocg_state })
            .field("javascript", unsafe { &self.javascript })
            .field("reset_form", unsafe { &self.reset_form })
            .finish()
    }
}

// Callbacks
pub type PopplerAttachmentSaveFunc =
    Option<unsafe extern "C" fn(*const u8, size_t, gpointer, *mut *mut glib::GError) -> gboolean>;
pub type PopplerMediaSaveFunc =
    Option<unsafe extern "C" fn(*const u8, size_t, gpointer, *mut *mut glib::GError) -> gboolean>;

// Records
#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionAny {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
}

impl ::std::fmt::Debug for PopplerActionAny {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionAny @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionGotoDest {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub dest: *mut PopplerDest,
}

impl ::std::fmt::Debug for PopplerActionGotoDest {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionGotoDest @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("dest", &self.dest)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionGotoRemote {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub file_name: *mut c_char,
    pub dest: *mut PopplerDest,
}

impl ::std::fmt::Debug for PopplerActionGotoRemote {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionGotoRemote @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("file_name", &self.file_name)
            .field("dest", &self.dest)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionJavascript {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub script: *mut c_char,
}

impl ::std::fmt::Debug for PopplerActionJavascript {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionJavascript @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("script", &self.script)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionLaunch {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub file_name: *mut c_char,
    pub params: *mut c_char,
}

impl ::std::fmt::Debug for PopplerActionLaunch {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionLaunch @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("file_name", &self.file_name)
            .field("params", &self.params)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionLayer {
    pub action: PopplerActionLayerAction,
    pub layers: *mut glib::GList,
}

impl ::std::fmt::Debug for PopplerActionLayer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionLayer @ {self:p}"))
            .field("action", &self.action)
            .field("layers", &self.layers)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionMovie {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub operation: PopplerActionMovieOperation,
    pub movie: *mut PopplerMovie,
}

impl ::std::fmt::Debug for PopplerActionMovie {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionMovie @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("operation", &self.operation)
            .field("movie", &self.movie)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionNamed {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub named_dest: *mut c_char,
}

impl ::std::fmt::Debug for PopplerActionNamed {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionNamed @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("named_dest", &self.named_dest)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionOCGState {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub state_list: *mut glib::GList,
}

impl ::std::fmt::Debug for PopplerActionOCGState {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionOCGState @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("state_list", &self.state_list)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionRendition {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub op: c_int,
    pub media: *mut PopplerMedia,
}

impl ::std::fmt::Debug for PopplerActionRendition {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionRendition @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("op", &self.op)
            .field("media", &self.media)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionResetForm {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub fields: *mut glib::GList,
    pub exclude: gboolean,
}

impl ::std::fmt::Debug for PopplerActionResetForm {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionResetForm @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("fields", &self.fields)
            .field("exclude", &self.exclude)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerActionUri {
    pub type_: PopplerActionType,
    pub title: *mut c_char,
    pub uri: *mut c_char,
}

impl ::std::fmt::Debug for PopplerActionUri {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerActionUri @ {self:p}"))
            .field("type_", &self.type_)
            .field("title", &self.title)
            .field("uri", &self.uri)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerAnnotCalloutLine {
    pub multiline: gboolean,
    pub x1: c_double,
    pub y1: c_double,
    pub x2: c_double,
    pub y2: c_double,
    pub x3: c_double,
    pub y3: c_double,
}

impl ::std::fmt::Debug for PopplerAnnotCalloutLine {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotCalloutLine @ {self:p}"))
            .field("multiline", &self.multiline)
            .field("x1", &self.x1)
            .field("y1", &self.y1)
            .field("x2", &self.x2)
            .field("y2", &self.y2)
            .field("x3", &self.x3)
            .field("y3", &self.y3)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerAnnotMapping {
    pub area: PopplerRectangle,
    pub annot: *mut PopplerAnnot,
}

impl ::std::fmt::Debug for PopplerAnnotMapping {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotMapping @ {self:p}"))
            .field("area", &self.area)
            .field("annot", &self.annot)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerAttachmentClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PopplerAttachmentClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAttachmentClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerColor {
    pub red: u16,
    pub green: u16,
    pub blue: u16,
}

impl ::std::fmt::Debug for PopplerColor {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerColor @ {self:p}"))
            .field("red", &self.red)
            .field("green", &self.green)
            .field("blue", &self.blue)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerDest {
    pub type_: PopplerDestType,
    pub page_num: c_int,
    pub left: c_double,
    pub bottom: c_double,
    pub right: c_double,
    pub top: c_double,
    pub zoom: c_double,
    pub named_dest: *mut c_char,
    pub change_left: c_uint,
    _truncated_record_marker: c_void,
    // field change_top has incomplete type
}

impl ::std::fmt::Debug for PopplerDest {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerDest @ {self:p}"))
            .field("type_", &self.type_)
            .field("page_num", &self.page_num)
            .field("left", &self.left)
            .field("bottom", &self.bottom)
            .field("right", &self.right)
            .field("top", &self.top)
            .field("zoom", &self.zoom)
            .field("named_dest", &self.named_dest)
            .field("change_left", &self.change_left)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerFontsIter {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerFontsIter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerFontsIter @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerFormFieldMapping {
    pub area: PopplerRectangle,
    pub field: *mut PopplerFormField,
}

impl ::std::fmt::Debug for PopplerFormFieldMapping {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerFormFieldMapping @ {self:p}"))
            .field("area", &self.area)
            .field("field", &self.field)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerImageMapping {
    pub area: PopplerRectangle,
    pub image_id: c_int,
}

impl ::std::fmt::Debug for PopplerImageMapping {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerImageMapping @ {self:p}"))
            .field("area", &self.area)
            .field("image_id", &self.image_id)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerIndexIter {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerIndexIter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerIndexIter @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerLayersIter {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerLayersIter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerLayersIter @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerLinkMapping {
    pub area: PopplerRectangle,
    pub action: *mut PopplerAction,
}

impl ::std::fmt::Debug for PopplerLinkMapping {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerLinkMapping @ {self:p}"))
            .field("area", &self.area)
            .field("action", &self.action)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerPageRange {
    pub start_page: c_int,
    pub end_page: c_int,
}

impl ::std::fmt::Debug for PopplerPageRange {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerPageRange @ {self:p}"))
            .field("start_page", &self.start_page)
            .field("end_page", &self.end_page)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerPageTransition {
    pub type_: PopplerPageTransitionType,
    pub alignment: PopplerPageTransitionAlignment,
    pub direction: PopplerPageTransitionDirection,
    pub duration: c_int,
    pub angle: c_int,
    pub scale: c_double,
    pub rectangular: gboolean,
    pub duration_real: c_double,
}

impl ::std::fmt::Debug for PopplerPageTransition {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerPageTransition @ {self:p}"))
            .field("type_", &self.type_)
            .field("alignment", &self.alignment)
            .field("direction", &self.direction)
            .field("duration", &self.duration)
            .field("angle", &self.angle)
            .field("scale", &self.scale)
            .field("rectangular", &self.rectangular)
            .field("duration_real", &self.duration_real)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerPoint {
    pub x: c_double,
    pub y: c_double,
}

impl ::std::fmt::Debug for PopplerPoint {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerPoint @ {self:p}"))
            .field("x", &self.x)
            .field("y", &self.y)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerQuadrilateral {
    pub p1: PopplerPoint,
    pub p2: PopplerPoint,
    pub p3: PopplerPoint,
    pub p4: PopplerPoint,
}

impl ::std::fmt::Debug for PopplerQuadrilateral {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerQuadrilateral @ {self:p}"))
            .field("p1", &self.p1)
            .field("p2", &self.p2)
            .field("p3", &self.p3)
            .field("p4", &self.p4)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerRectangle {
    pub x1: c_double,
    pub y1: c_double,
    pub x2: c_double,
    pub y2: c_double,
}

impl ::std::fmt::Debug for PopplerRectangle {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerRectangle @ {self:p}"))
            .field("x1", &self.x1)
            .field("y1", &self.y1)
            .field("x2", &self.x2)
            .field("y2", &self.y2)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerSignatureInfo {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerSignatureInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerSignatureInfo @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerStructureElementIter {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerStructureElementIter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerStructureElementIter @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerTextAttributes {
    pub font_name: *mut c_char,
    pub font_size: c_double,
    pub is_underlined: gboolean,
    pub color: PopplerColor,
    pub start_index: c_int,
    pub end_index: c_int,
}

impl ::std::fmt::Debug for PopplerTextAttributes {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerTextAttributes @ {self:p}"))
            .field("font_name", &self.font_name)
            .field("font_size", &self.font_size)
            .field("is_underlined", &self.is_underlined)
            .field("color", &self.color)
            .field("start_index", &self.start_index)
            .field("end_index", &self.end_index)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerTextSpan {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerTextSpan {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerTextSpan @ {self:p}"))
            .finish()
    }
}

// Classes
#[repr(C)]
pub struct PopplerAnnot {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnot {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnot @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotCircle {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotCircle {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotCircle @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotFileAttachment {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotFileAttachment {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotFileAttachment @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotFreeText {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotFreeText {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotFreeText @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotLine {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotLine {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotLine @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotMarkup {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotMarkup {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotMarkup @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotMovie {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotMovie {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotMovie @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotScreen {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotScreen {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotScreen @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotSquare {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotSquare {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotSquare @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotStamp {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotStamp {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotStamp @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotText {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotText {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotText @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerAnnotTextMarkup {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerAnnotTextMarkup {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAnnotTextMarkup @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PopplerAttachment {
    pub parent: gobject::GObject,
    pub name: *mut c_char,
    pub description: *mut c_char,
    pub size: size_t,
    pub mtime: glib::GTime,
    pub ctime: glib::GTime,
    pub checksum: *mut glib::GString,
}

impl ::std::fmt::Debug for PopplerAttachment {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerAttachment @ {self:p}"))
            .field("parent", &self.parent)
            .field("name", &self.name)
            .field("description", &self.description)
            .field("size", &self.size)
            .field("mtime", &self.mtime)
            .field("ctime", &self.ctime)
            .field("checksum", &self.checksum)
            .finish()
    }
}

#[repr(C)]
pub struct PopplerDocument {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerDocument {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerDocument @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerFontInfo {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerFontInfo {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerFontInfo @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerFormField {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerFormField {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerFormField @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerLayer {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerLayer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerLayer @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PopplerMedia {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerMedia {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerMedia @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PopplerMovie {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerMovie {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerMovie @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PopplerPSFile {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerPSFile {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerPSFile @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PopplerPage {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerPage {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerPage @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PopplerStructureElement {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PopplerStructureElement {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PopplerStructureElement @ {self:p}"))
            .finish()
    }
}

#[link(name = "poppler-glib")]
#[link(name = "poppler")]
extern "C" {

    //=========================================================================
    // PopplerActionLayerAction
    //=========================================================================
    pub fn poppler_action_layer_action_get_type() -> GType;

    //=========================================================================
    // PopplerActionMovieOperation
    //=========================================================================
    pub fn poppler_action_movie_operation_get_type() -> GType;

    //=========================================================================
    // PopplerActionType
    //=========================================================================
    pub fn poppler_action_type_get_type() -> GType;

    //=========================================================================
    // PopplerAdditionalActionType
    //=========================================================================
    #[cfg(feature = "v0_72")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_72")))]
    pub fn poppler_additional_action_type_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotExternalDataType
    //=========================================================================
    pub fn poppler_annot_external_data_type_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotFreeTextQuadding
    //=========================================================================
    pub fn poppler_annot_free_text_quadding_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotMarkupReplyType
    //=========================================================================
    pub fn poppler_annot_markup_reply_type_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotStampIcon
    //=========================================================================
    pub fn poppler_annot_stamp_icon_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotTextState
    //=========================================================================
    pub fn poppler_annot_text_state_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotType
    //=========================================================================
    pub fn poppler_annot_type_get_type() -> GType;

    //=========================================================================
    // PopplerBackend
    //=========================================================================
    pub fn poppler_backend_get_type() -> GType;

    //=========================================================================
    // PopplerCertificateStatus
    //=========================================================================
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_certificate_status_get_type() -> GType;

    //=========================================================================
    // PopplerDestType
    //=========================================================================
    pub fn poppler_dest_type_get_type() -> GType;

    //=========================================================================
    // PopplerError
    //=========================================================================
    pub fn poppler_error_get_type() -> GType;
    pub fn poppler_error_quark() -> glib::GQuark;

    //=========================================================================
    // PopplerFontType
    //=========================================================================
    pub fn poppler_font_type_get_type() -> GType;

    //=========================================================================
    // PopplerFormButtonType
    //=========================================================================
    pub fn poppler_form_button_type_get_type() -> GType;

    //=========================================================================
    // PopplerFormChoiceType
    //=========================================================================
    pub fn poppler_form_choice_type_get_type() -> GType;

    //=========================================================================
    // PopplerFormFieldType
    //=========================================================================
    pub fn poppler_form_field_type_get_type() -> GType;

    //=========================================================================
    // PopplerFormTextType
    //=========================================================================
    pub fn poppler_form_text_type_get_type() -> GType;

    //=========================================================================
    // PopplerMoviePlayMode
    //=========================================================================
    pub fn poppler_movie_play_mode_get_type() -> GType;

    //=========================================================================
    // PopplerPDFConformance
    //=========================================================================
    pub fn poppler_pdf_conformance_get_type() -> GType;

    //=========================================================================
    // PopplerPDFPart
    //=========================================================================
    pub fn poppler_pdf_part_get_type() -> GType;

    //=========================================================================
    // PopplerPDFSubtype
    //=========================================================================
    pub fn poppler_pdf_subtype_get_type() -> GType;

    //=========================================================================
    // PopplerPageLayout
    //=========================================================================
    pub fn poppler_page_layout_get_type() -> GType;

    //=========================================================================
    // PopplerPageMode
    //=========================================================================
    pub fn poppler_page_mode_get_type() -> GType;

    //=========================================================================
    // PopplerPageTransitionAlignment
    //=========================================================================
    pub fn poppler_page_transition_alignment_get_type() -> GType;

    //=========================================================================
    // PopplerPageTransitionDirection
    //=========================================================================
    pub fn poppler_page_transition_direction_get_type() -> GType;

    //=========================================================================
    // PopplerPageTransitionType
    //=========================================================================
    pub fn poppler_page_transition_type_get_type() -> GType;

    //=========================================================================
    // PopplerPrintDuplex
    //=========================================================================
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_print_duplex_get_type() -> GType;

    //=========================================================================
    // PopplerPrintScaling
    //=========================================================================
    #[cfg(feature = "v0_73")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_73")))]
    pub fn poppler_print_scaling_get_type() -> GType;

    //=========================================================================
    // PopplerSelectionStyle
    //=========================================================================
    pub fn poppler_selection_style_get_type() -> GType;

    //=========================================================================
    // PopplerSignatureStatus
    //=========================================================================
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_status_get_type() -> GType;

    //=========================================================================
    // PopplerStructureBlockAlign
    //=========================================================================
    pub fn poppler_structure_block_align_get_type() -> GType;

    //=========================================================================
    // PopplerStructureBorderStyle
    //=========================================================================
    pub fn poppler_structure_border_style_get_type() -> GType;

    //=========================================================================
    // PopplerStructureElementKind
    //=========================================================================
    pub fn poppler_structure_element_kind_get_type() -> GType;

    //=========================================================================
    // PopplerStructureFormRole
    //=========================================================================
    pub fn poppler_structure_form_role_get_type() -> GType;

    //=========================================================================
    // PopplerStructureFormState
    //=========================================================================
    pub fn poppler_structure_form_state_get_type() -> GType;

    //=========================================================================
    // PopplerStructureGlyphOrientation
    //=========================================================================
    pub fn poppler_structure_glyph_orientation_get_type() -> GType;

    //=========================================================================
    // PopplerStructureInlineAlign
    //=========================================================================
    pub fn poppler_structure_inline_align_get_type() -> GType;

    //=========================================================================
    // PopplerStructureListNumbering
    //=========================================================================
    pub fn poppler_structure_list_numbering_get_type() -> GType;

    //=========================================================================
    // PopplerStructurePlacement
    //=========================================================================
    pub fn poppler_structure_placement_get_type() -> GType;

    //=========================================================================
    // PopplerStructureRubyAlign
    //=========================================================================
    pub fn poppler_structure_ruby_align_get_type() -> GType;

    //=========================================================================
    // PopplerStructureRubyPosition
    //=========================================================================
    pub fn poppler_structure_ruby_position_get_type() -> GType;

    //=========================================================================
    // PopplerStructureTableScope
    //=========================================================================
    pub fn poppler_structure_table_scope_get_type() -> GType;

    //=========================================================================
    // PopplerStructureTextAlign
    //=========================================================================
    pub fn poppler_structure_text_align_get_type() -> GType;

    //=========================================================================
    // PopplerStructureTextDecoration
    //=========================================================================
    pub fn poppler_structure_text_decoration_get_type() -> GType;

    //=========================================================================
    // PopplerStructureWritingMode
    //=========================================================================
    pub fn poppler_structure_writing_mode_get_type() -> GType;

    //=========================================================================
    // PopplerAnnotFlag
    //=========================================================================
    pub fn poppler_annot_flag_get_type() -> GType;

    //=========================================================================
    // PopplerFindFlags
    //=========================================================================
    pub fn poppler_find_flags_get_type() -> GType;

    //=========================================================================
    // PopplerPermissions
    //=========================================================================
    pub fn poppler_permissions_get_type() -> GType;

    //=========================================================================
    // PopplerPrintFlags
    //=========================================================================
    pub fn poppler_print_flags_get_type() -> GType;

    //=========================================================================
    // PopplerSignatureValidationFlags
    //=========================================================================
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_validation_flags_get_type() -> GType;

    //=========================================================================
    // PopplerStructureGetTextFlags
    //=========================================================================
    pub fn poppler_structure_get_text_flags_get_type() -> GType;

    //=========================================================================
    // PopplerViewerPreferences
    //=========================================================================
    pub fn poppler_viewer_preferences_get_type() -> GType;

    //=========================================================================
    // PopplerAction
    //=========================================================================
    pub fn poppler_action_get_type() -> GType;
    pub fn poppler_action_copy(action: *mut PopplerAction) -> *mut PopplerAction;
    pub fn poppler_action_free(action: *mut PopplerAction);

    //=========================================================================
    // PopplerAnnotCalloutLine
    //=========================================================================
    pub fn poppler_annot_callout_line_get_type() -> GType;
    pub fn poppler_annot_callout_line_new() -> *mut PopplerAnnotCalloutLine;
    pub fn poppler_annot_callout_line_copy(
        callout: *mut PopplerAnnotCalloutLine,
    ) -> *mut PopplerAnnotCalloutLine;
    pub fn poppler_annot_callout_line_free(callout: *mut PopplerAnnotCalloutLine);

    //=========================================================================
    // PopplerAnnotMapping
    //=========================================================================
    pub fn poppler_annot_mapping_get_type() -> GType;
    pub fn poppler_annot_mapping_new() -> *mut PopplerAnnotMapping;
    pub fn poppler_annot_mapping_copy(
        mapping: *mut PopplerAnnotMapping,
    ) -> *mut PopplerAnnotMapping;
    pub fn poppler_annot_mapping_free(mapping: *mut PopplerAnnotMapping);

    //=========================================================================
    // PopplerColor
    //=========================================================================
    pub fn poppler_color_get_type() -> GType;
    pub fn poppler_color_new() -> *mut PopplerColor;
    pub fn poppler_color_copy(color: *mut PopplerColor) -> *mut PopplerColor;
    pub fn poppler_color_free(color: *mut PopplerColor);

    //=========================================================================
    // PopplerDest
    //=========================================================================
    pub fn poppler_dest_get_type() -> GType;
    pub fn poppler_dest_copy(dest: *mut PopplerDest) -> *mut PopplerDest;
    pub fn poppler_dest_free(dest: *mut PopplerDest);

    //=========================================================================
    // PopplerFontsIter
    //=========================================================================
    pub fn poppler_fonts_iter_get_type() -> GType;
    pub fn poppler_fonts_iter_copy(iter: *mut PopplerFontsIter) -> *mut PopplerFontsIter;
    pub fn poppler_fonts_iter_free(iter: *mut PopplerFontsIter);
    pub fn poppler_fonts_iter_get_encoding(iter: *mut PopplerFontsIter) -> *const c_char;
    pub fn poppler_fonts_iter_get_file_name(iter: *mut PopplerFontsIter) -> *const c_char;
    pub fn poppler_fonts_iter_get_font_type(iter: *mut PopplerFontsIter) -> PopplerFontType;
    pub fn poppler_fonts_iter_get_full_name(iter: *mut PopplerFontsIter) -> *const c_char;
    pub fn poppler_fonts_iter_get_name(iter: *mut PopplerFontsIter) -> *const c_char;
    pub fn poppler_fonts_iter_get_substitute_name(iter: *mut PopplerFontsIter) -> *const c_char;
    pub fn poppler_fonts_iter_is_embedded(iter: *mut PopplerFontsIter) -> gboolean;
    pub fn poppler_fonts_iter_is_subset(iter: *mut PopplerFontsIter) -> gboolean;
    pub fn poppler_fonts_iter_next(iter: *mut PopplerFontsIter) -> gboolean;

    //=========================================================================
    // PopplerFormFieldMapping
    //=========================================================================
    pub fn poppler_form_field_mapping_get_type() -> GType;
    pub fn poppler_form_field_mapping_new() -> *mut PopplerFormFieldMapping;
    pub fn poppler_form_field_mapping_copy(
        mapping: *mut PopplerFormFieldMapping,
    ) -> *mut PopplerFormFieldMapping;
    pub fn poppler_form_field_mapping_free(mapping: *mut PopplerFormFieldMapping);

    //=========================================================================
    // PopplerImageMapping
    //=========================================================================
    pub fn poppler_image_mapping_get_type() -> GType;
    pub fn poppler_image_mapping_new() -> *mut PopplerImageMapping;
    pub fn poppler_image_mapping_copy(
        mapping: *mut PopplerImageMapping,
    ) -> *mut PopplerImageMapping;
    pub fn poppler_image_mapping_free(mapping: *mut PopplerImageMapping);

    //=========================================================================
    // PopplerIndexIter
    //=========================================================================
    pub fn poppler_index_iter_get_type() -> GType;
    pub fn poppler_index_iter_new(document: *mut PopplerDocument) -> *mut PopplerIndexIter;
    pub fn poppler_index_iter_copy(iter: *mut PopplerIndexIter) -> *mut PopplerIndexIter;
    pub fn poppler_index_iter_free(iter: *mut PopplerIndexIter);
    pub fn poppler_index_iter_get_action(iter: *mut PopplerIndexIter) -> *mut PopplerAction;
    pub fn poppler_index_iter_get_child(parent: *mut PopplerIndexIter) -> *mut PopplerIndexIter;
    pub fn poppler_index_iter_is_open(iter: *mut PopplerIndexIter) -> gboolean;
    pub fn poppler_index_iter_next(iter: *mut PopplerIndexIter) -> gboolean;

    //=========================================================================
    // PopplerLayersIter
    //=========================================================================
    pub fn poppler_layers_iter_get_type() -> GType;
    pub fn poppler_layers_iter_new(document: *mut PopplerDocument) -> *mut PopplerLayersIter;
    pub fn poppler_layers_iter_copy(iter: *mut PopplerLayersIter) -> *mut PopplerLayersIter;
    pub fn poppler_layers_iter_free(iter: *mut PopplerLayersIter);
    pub fn poppler_layers_iter_get_child(parent: *mut PopplerLayersIter) -> *mut PopplerLayersIter;
    pub fn poppler_layers_iter_get_layer(iter: *mut PopplerLayersIter) -> *mut PopplerLayer;
    pub fn poppler_layers_iter_get_title(iter: *mut PopplerLayersIter) -> *mut c_char;
    pub fn poppler_layers_iter_next(iter: *mut PopplerLayersIter) -> gboolean;

    //=========================================================================
    // PopplerLinkMapping
    //=========================================================================
    pub fn poppler_link_mapping_get_type() -> GType;
    pub fn poppler_link_mapping_new() -> *mut PopplerLinkMapping;
    pub fn poppler_link_mapping_copy(mapping: *mut PopplerLinkMapping) -> *mut PopplerLinkMapping;
    pub fn poppler_link_mapping_free(mapping: *mut PopplerLinkMapping);

    //=========================================================================
    // PopplerPageTransition
    //=========================================================================
    pub fn poppler_page_transition_get_type() -> GType;
    pub fn poppler_page_transition_new() -> *mut PopplerPageTransition;
    pub fn poppler_page_transition_copy(
        transition: *mut PopplerPageTransition,
    ) -> *mut PopplerPageTransition;
    pub fn poppler_page_transition_free(transition: *mut PopplerPageTransition);

    //=========================================================================
    // PopplerPoint
    //=========================================================================
    pub fn poppler_point_get_type() -> GType;
    pub fn poppler_point_new() -> *mut PopplerPoint;
    pub fn poppler_point_copy(point: *mut PopplerPoint) -> *mut PopplerPoint;
    pub fn poppler_point_free(point: *mut PopplerPoint);

    //=========================================================================
    // PopplerQuadrilateral
    //=========================================================================
    pub fn poppler_quadrilateral_get_type() -> GType;
    pub fn poppler_quadrilateral_new() -> *mut PopplerQuadrilateral;
    pub fn poppler_quadrilateral_copy(quad: *mut PopplerQuadrilateral)
        -> *mut PopplerQuadrilateral;
    pub fn poppler_quadrilateral_free(quad: *mut PopplerQuadrilateral);

    //=========================================================================
    // PopplerRectangle
    //=========================================================================
    pub fn poppler_rectangle_get_type() -> GType;
    pub fn poppler_rectangle_new() -> *mut PopplerRectangle;
    pub fn poppler_rectangle_copy(rectangle: *mut PopplerRectangle) -> *mut PopplerRectangle;
    #[cfg(feature = "v21_5")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_5")))]
    pub fn poppler_rectangle_find_get_ignored_hyphen(
        rectangle: *const PopplerRectangle,
    ) -> gboolean;
    #[cfg(feature = "v21_5")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_5")))]
    pub fn poppler_rectangle_find_get_match_continued(
        rectangle: *const PopplerRectangle,
    ) -> gboolean;
    pub fn poppler_rectangle_free(rectangle: *mut PopplerRectangle);

    //=========================================================================
    // PopplerSignatureInfo
    //=========================================================================
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_get_type() -> GType;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_copy(
        siginfo: *const PopplerSignatureInfo,
    ) -> *mut PopplerSignatureInfo;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_free(siginfo: *mut PopplerSignatureInfo);
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_get_certificate_status(
        siginfo: *const PopplerSignatureInfo,
    ) -> PopplerCertificateStatus;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_get_local_signing_time(
        siginfo: *const PopplerSignatureInfo,
    ) -> *mut glib::GDateTime;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_get_signature_status(
        siginfo: *const PopplerSignatureInfo,
    ) -> PopplerSignatureStatus;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_signature_info_get_signer_name(
        siginfo: *const PopplerSignatureInfo,
    ) -> *const c_char;

    //=========================================================================
    // PopplerStructureElementIter
    //=========================================================================
    pub fn poppler_structure_element_iter_get_type() -> GType;
    pub fn poppler_structure_element_iter_new(
        poppler_document: *mut PopplerDocument,
    ) -> *mut PopplerStructureElementIter;
    pub fn poppler_structure_element_iter_copy(
        iter: *mut PopplerStructureElementIter,
    ) -> *mut PopplerStructureElementIter;
    pub fn poppler_structure_element_iter_free(iter: *mut PopplerStructureElementIter);
    pub fn poppler_structure_element_iter_get_child(
        parent: *mut PopplerStructureElementIter,
    ) -> *mut PopplerStructureElementIter;
    pub fn poppler_structure_element_iter_get_element(
        iter: *mut PopplerStructureElementIter,
    ) -> *mut PopplerStructureElement;
    pub fn poppler_structure_element_iter_next(iter: *mut PopplerStructureElementIter) -> gboolean;

    //=========================================================================
    // PopplerTextAttributes
    //=========================================================================
    pub fn poppler_text_attributes_get_type() -> GType;
    pub fn poppler_text_attributes_new() -> *mut PopplerTextAttributes;
    pub fn poppler_text_attributes_copy(
        text_attrs: *mut PopplerTextAttributes,
    ) -> *mut PopplerTextAttributes;
    pub fn poppler_text_attributes_free(text_attrs: *mut PopplerTextAttributes);

    //=========================================================================
    // PopplerTextSpan
    //=========================================================================
    pub fn poppler_text_span_get_type() -> GType;
    pub fn poppler_text_span_copy(poppler_text_span: *mut PopplerTextSpan) -> *mut PopplerTextSpan;
    pub fn poppler_text_span_free(poppler_text_span: *mut PopplerTextSpan);
    pub fn poppler_text_span_get_color(
        poppler_text_span: *mut PopplerTextSpan,
        color: *mut PopplerColor,
    );
    pub fn poppler_text_span_get_font_name(
        poppler_text_span: *mut PopplerTextSpan,
    ) -> *const c_char;
    pub fn poppler_text_span_get_text(poppler_text_span: *mut PopplerTextSpan) -> *const c_char;
    pub fn poppler_text_span_is_bold_font(poppler_text_span: *mut PopplerTextSpan) -> gboolean;
    pub fn poppler_text_span_is_fixed_width_font(
        poppler_text_span: *mut PopplerTextSpan,
    ) -> gboolean;
    pub fn poppler_text_span_is_serif_font(poppler_text_span: *mut PopplerTextSpan) -> gboolean;

    //=========================================================================
    // PopplerAnnot
    //=========================================================================
    pub fn poppler_annot_get_type() -> GType;
    pub fn poppler_annot_get_annot_type(poppler_annot: *mut PopplerAnnot) -> PopplerAnnotType;
    pub fn poppler_annot_get_color(poppler_annot: *mut PopplerAnnot) -> *mut PopplerColor;
    pub fn poppler_annot_get_contents(poppler_annot: *mut PopplerAnnot) -> *mut c_char;
    pub fn poppler_annot_get_flags(poppler_annot: *mut PopplerAnnot) -> PopplerAnnotFlag;
    pub fn poppler_annot_get_modified(poppler_annot: *mut PopplerAnnot) -> *mut c_char;
    pub fn poppler_annot_get_name(poppler_annot: *mut PopplerAnnot) -> *mut c_char;
    pub fn poppler_annot_get_page_index(poppler_annot: *mut PopplerAnnot) -> c_int;
    pub fn poppler_annot_get_rectangle(
        poppler_annot: *mut PopplerAnnot,
        poppler_rect: *mut PopplerRectangle,
    );
    pub fn poppler_annot_set_color(
        poppler_annot: *mut PopplerAnnot,
        poppler_color: *mut PopplerColor,
    );
    pub fn poppler_annot_set_contents(poppler_annot: *mut PopplerAnnot, contents: *const c_char);
    pub fn poppler_annot_set_flags(poppler_annot: *mut PopplerAnnot, flags: PopplerAnnotFlag);
    pub fn poppler_annot_set_rectangle(
        poppler_annot: *mut PopplerAnnot,
        poppler_rect: *mut PopplerRectangle,
    );

    //=========================================================================
    // PopplerAnnotCircle
    //=========================================================================
    pub fn poppler_annot_circle_get_type() -> GType;
    pub fn poppler_annot_circle_new(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_circle_get_interior_color(
        poppler_annot: *mut PopplerAnnotCircle,
    ) -> *mut PopplerColor;
    pub fn poppler_annot_circle_set_interior_color(
        poppler_annot: *mut PopplerAnnotCircle,
        poppler_color: *mut PopplerColor,
    );

    //=========================================================================
    // PopplerAnnotFileAttachment
    //=========================================================================
    pub fn poppler_annot_file_attachment_get_type() -> GType;
    pub fn poppler_annot_file_attachment_get_attachment(
        poppler_annot: *mut PopplerAnnotFileAttachment,
    ) -> *mut PopplerAttachment;
    pub fn poppler_annot_file_attachment_get_name(
        poppler_annot: *mut PopplerAnnotFileAttachment,
    ) -> *mut c_char;

    //=========================================================================
    // PopplerAnnotFreeText
    //=========================================================================
    pub fn poppler_annot_free_text_get_type() -> GType;
    pub fn poppler_annot_free_text_get_callout_line(
        poppler_annot: *mut PopplerAnnotFreeText,
    ) -> *mut PopplerAnnotCalloutLine;
    pub fn poppler_annot_free_text_get_quadding(
        poppler_annot: *mut PopplerAnnotFreeText,
    ) -> PopplerAnnotFreeTextQuadding;

    //=========================================================================
    // PopplerAnnotLine
    //=========================================================================
    pub fn poppler_annot_line_get_type() -> GType;
    pub fn poppler_annot_line_new(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
        start: *mut PopplerPoint,
        end: *mut PopplerPoint,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_line_set_vertices(
        poppler_annot: *mut PopplerAnnotLine,
        start: *mut PopplerPoint,
        end: *mut PopplerPoint,
    );

    //=========================================================================
    // PopplerAnnotMarkup
    //=========================================================================
    pub fn poppler_annot_markup_get_type() -> GType;
    pub fn poppler_annot_markup_get_date(
        poppler_annot: *mut PopplerAnnotMarkup,
    ) -> *mut glib::GDate;
    pub fn poppler_annot_markup_get_external_data(
        poppler_annot: *mut PopplerAnnotMarkup,
    ) -> PopplerAnnotExternalDataType;
    pub fn poppler_annot_markup_get_label(poppler_annot: *mut PopplerAnnotMarkup) -> *mut c_char;
    pub fn poppler_annot_markup_get_opacity(poppler_annot: *mut PopplerAnnotMarkup) -> c_double;
    pub fn poppler_annot_markup_get_popup_is_open(
        poppler_annot: *mut PopplerAnnotMarkup,
    ) -> gboolean;
    pub fn poppler_annot_markup_get_popup_rectangle(
        poppler_annot: *mut PopplerAnnotMarkup,
        poppler_rect: *mut PopplerRectangle,
    ) -> gboolean;
    pub fn poppler_annot_markup_get_reply_to(
        poppler_annot: *mut PopplerAnnotMarkup,
    ) -> PopplerAnnotMarkupReplyType;
    pub fn poppler_annot_markup_get_subject(poppler_annot: *mut PopplerAnnotMarkup) -> *mut c_char;
    pub fn poppler_annot_markup_has_popup(poppler_annot: *mut PopplerAnnotMarkup) -> gboolean;
    pub fn poppler_annot_markup_set_label(
        poppler_annot: *mut PopplerAnnotMarkup,
        label: *const c_char,
    );
    pub fn poppler_annot_markup_set_opacity(
        poppler_annot: *mut PopplerAnnotMarkup,
        opacity: c_double,
    );
    pub fn poppler_annot_markup_set_popup(
        poppler_annot: *mut PopplerAnnotMarkup,
        popup_rect: *mut PopplerRectangle,
    );
    pub fn poppler_annot_markup_set_popup_is_open(
        poppler_annot: *mut PopplerAnnotMarkup,
        is_open: gboolean,
    );
    pub fn poppler_annot_markup_set_popup_rectangle(
        poppler_annot: *mut PopplerAnnotMarkup,
        poppler_rect: *mut PopplerRectangle,
    );

    //=========================================================================
    // PopplerAnnotMovie
    //=========================================================================
    pub fn poppler_annot_movie_get_type() -> GType;
    pub fn poppler_annot_movie_get_movie(
        poppler_annot: *mut PopplerAnnotMovie,
    ) -> *mut PopplerMovie;
    pub fn poppler_annot_movie_get_title(poppler_annot: *mut PopplerAnnotMovie) -> *mut c_char;

    //=========================================================================
    // PopplerAnnotScreen
    //=========================================================================
    pub fn poppler_annot_screen_get_type() -> GType;
    pub fn poppler_annot_screen_get_action(
        poppler_annot: *mut PopplerAnnotScreen,
    ) -> *mut PopplerAction;

    //=========================================================================
    // PopplerAnnotSquare
    //=========================================================================
    pub fn poppler_annot_square_get_type() -> GType;
    pub fn poppler_annot_square_new(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_square_get_interior_color(
        poppler_annot: *mut PopplerAnnotSquare,
    ) -> *mut PopplerColor;
    pub fn poppler_annot_square_set_interior_color(
        poppler_annot: *mut PopplerAnnotSquare,
        poppler_color: *mut PopplerColor,
    );

    //=========================================================================
    // PopplerAnnotStamp
    //=========================================================================
    pub fn poppler_annot_stamp_get_type() -> GType;
    #[cfg(feature = "v22_7")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v22_7")))]
    pub fn poppler_annot_stamp_new(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
    ) -> *mut PopplerAnnot;
    #[cfg(feature = "v22_7")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v22_7")))]
    pub fn poppler_annot_stamp_get_icon(
        poppler_annot: *mut PopplerAnnotStamp,
    ) -> PopplerAnnotStampIcon;
    #[cfg(feature = "v22_7")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v22_7")))]
    pub fn poppler_annot_stamp_set_custom_image(
        poppler_annot: *mut PopplerAnnotStamp,
        image: *mut cairo::cairo_surface_t,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v22_7")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v22_7")))]
    pub fn poppler_annot_stamp_set_icon(
        poppler_annot: *mut PopplerAnnotStamp,
        icon: PopplerAnnotStampIcon,
    );

    //=========================================================================
    // PopplerAnnotText
    //=========================================================================
    pub fn poppler_annot_text_get_type() -> GType;
    pub fn poppler_annot_text_new(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_text_get_icon(poppler_annot: *mut PopplerAnnotText) -> *mut c_char;
    pub fn poppler_annot_text_get_is_open(poppler_annot: *mut PopplerAnnotText) -> gboolean;
    pub fn poppler_annot_text_get_state(
        poppler_annot: *mut PopplerAnnotText,
    ) -> PopplerAnnotTextState;
    pub fn poppler_annot_text_set_icon(poppler_annot: *mut PopplerAnnotText, icon: *const c_char);
    pub fn poppler_annot_text_set_is_open(poppler_annot: *mut PopplerAnnotText, is_open: gboolean);

    //=========================================================================
    // PopplerAnnotTextMarkup
    //=========================================================================
    pub fn poppler_annot_text_markup_get_type() -> GType;
    pub fn poppler_annot_text_markup_new_highlight(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
        quadrilaterals: *mut glib::GArray,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_text_markup_new_squiggly(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
        quadrilaterals: *mut glib::GArray,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_text_markup_new_strikeout(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
        quadrilaterals: *mut glib::GArray,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_text_markup_new_underline(
        doc: *mut PopplerDocument,
        rect: *mut PopplerRectangle,
        quadrilaterals: *mut glib::GArray,
    ) -> *mut PopplerAnnot;
    pub fn poppler_annot_text_markup_get_quadrilaterals(
        poppler_annot: *mut PopplerAnnotTextMarkup,
    ) -> *mut glib::GArray;
    pub fn poppler_annot_text_markup_set_quadrilaterals(
        poppler_annot: *mut PopplerAnnotTextMarkup,
        quadrilaterals: *mut glib::GArray,
    );

    //=========================================================================
    // PopplerAttachment
    //=========================================================================
    pub fn poppler_attachment_get_type() -> GType;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_checksum(
        attachment: *mut PopplerAttachment,
    ) -> *const glib::GString;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_ctime(attachment: *mut PopplerAttachment)
        -> *mut glib::GDateTime;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_description(attachment: *mut PopplerAttachment) -> *const c_char;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_mtime(attachment: *mut PopplerAttachment)
        -> *mut glib::GDateTime;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_name(attachment: *mut PopplerAttachment) -> *const c_char;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_attachment_get_size(attachment: *mut PopplerAttachment) -> size_t;
    pub fn poppler_attachment_save(
        attachment: *mut PopplerAttachment,
        filename: *const c_char,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn poppler_attachment_save_to_callback(
        attachment: *mut PopplerAttachment,
        save_func: PopplerAttachmentSaveFunc,
        user_data: gpointer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_attachment_save_to_fd(
        attachment: *mut PopplerAttachment,
        fd: c_int,
        error: *mut *mut glib::GError,
    ) -> gboolean;

    //=========================================================================
    // PopplerDocument
    //=========================================================================
    pub fn poppler_document_get_type() -> GType;
    #[cfg(feature = "v0_82")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_82")))]
    pub fn poppler_document_new_from_bytes(
        bytes: *mut glib::GBytes,
        password: *const c_char,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    pub fn poppler_document_new_from_data(
        data: *mut u8,
        length: c_int,
        password: *const c_char,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_document_new_from_fd(
        fd: c_int,
        password: *const c_char,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    pub fn poppler_document_new_from_file(
        uri: *const c_char,
        password: *const c_char,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    pub fn poppler_document_new_from_gfile(
        file: *mut gio::GFile,
        password: *const c_char,
        cancellable: *mut gio::GCancellable,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    pub fn poppler_document_new_from_stream(
        stream: *mut gio::GInputStream,
        length: i64,
        password: *const c_char,
        cancellable: *mut gio::GCancellable,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerDocument;
    #[cfg(feature = "v0_78")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_78")))]
    pub fn poppler_document_create_dests_tree(document: *mut PopplerDocument) -> *mut glib::GTree;
    pub fn poppler_document_find_dest(
        document: *mut PopplerDocument,
        link_name: *const c_char,
    ) -> *mut PopplerDest;
    pub fn poppler_document_get_attachments(document: *mut PopplerDocument) -> *mut glib::GList;
    pub fn poppler_document_get_author(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_creation_date(document: *mut PopplerDocument) -> c_long;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_document_get_creation_date_time(
        document: *mut PopplerDocument,
    ) -> *mut glib::GDateTime;
    pub fn poppler_document_get_creator(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_form_field(
        document: *mut PopplerDocument,
        id: c_int,
    ) -> *mut PopplerFormField;
    pub fn poppler_document_get_id(
        document: *mut PopplerDocument,
        permanent_id: *mut *mut c_char,
        update_id: *mut *mut c_char,
    ) -> gboolean;
    pub fn poppler_document_get_keywords(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_metadata(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_modification_date(document: *mut PopplerDocument) -> c_long;
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_document_get_modification_date_time(
        document: *mut PopplerDocument,
    ) -> *mut glib::GDateTime;
    pub fn poppler_document_get_n_attachments(document: *mut PopplerDocument) -> c_uint;
    pub fn poppler_document_get_n_pages(document: *mut PopplerDocument) -> c_int;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_document_get_n_signatures(document: *const PopplerDocument) -> c_int;
    pub fn poppler_document_get_page(
        document: *mut PopplerDocument,
        index: c_int,
    ) -> *mut PopplerPage;
    pub fn poppler_document_get_page_by_label(
        document: *mut PopplerDocument,
        label: *const c_char,
    ) -> *mut PopplerPage;
    pub fn poppler_document_get_page_layout(document: *mut PopplerDocument) -> PopplerPageLayout;
    pub fn poppler_document_get_page_mode(document: *mut PopplerDocument) -> PopplerPageMode;
    pub fn poppler_document_get_pdf_conformance(
        document: *mut PopplerDocument,
    ) -> PopplerPDFConformance;
    pub fn poppler_document_get_pdf_part(document: *mut PopplerDocument) -> PopplerPDFPart;
    pub fn poppler_document_get_pdf_subtype(document: *mut PopplerDocument) -> PopplerPDFSubtype;
    pub fn poppler_document_get_pdf_subtype_string(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_pdf_version(
        document: *mut PopplerDocument,
        major_version: *mut c_uint,
        minor_version: *mut c_uint,
    );
    pub fn poppler_document_get_pdf_version_string(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_permissions(document: *mut PopplerDocument) -> PopplerPermissions;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_document_get_print_duplex(document: *mut PopplerDocument) -> PopplerPrintDuplex;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_document_get_print_n_copies(document: *mut PopplerDocument) -> c_int;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_document_get_print_page_ranges(
        document: *mut PopplerDocument,
        n_ranges: *mut c_int,
    ) -> *mut PopplerPageRange;
    #[cfg(feature = "v0_73")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_73")))]
    pub fn poppler_document_get_print_scaling(
        document: *mut PopplerDocument,
    ) -> PopplerPrintScaling;
    pub fn poppler_document_get_producer(document: *mut PopplerDocument) -> *mut c_char;
    #[cfg(feature = "v22_2")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v22_2")))]
    pub fn poppler_document_get_signature_fields(
        document: *mut PopplerDocument,
    ) -> *mut glib::GList;
    pub fn poppler_document_get_subject(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_get_title(document: *mut PopplerDocument) -> *mut c_char;
    pub fn poppler_document_has_attachments(document: *mut PopplerDocument) -> gboolean;
    #[cfg(feature = "v0_90")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_90")))]
    pub fn poppler_document_has_javascript(document: *mut PopplerDocument) -> gboolean;
    pub fn poppler_document_is_linearized(document: *mut PopplerDocument) -> gboolean;
    #[cfg(feature = "v0_90")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_90")))]
    pub fn poppler_document_reset_form(
        document: *mut PopplerDocument,
        fields: *mut glib::GList,
        exclude_fields: gboolean,
    );
    pub fn poppler_document_save(
        document: *mut PopplerDocument,
        uri: *const c_char,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn poppler_document_save_a_copy(
        document: *mut PopplerDocument,
        uri: *const c_char,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_document_save_to_fd(
        document: *mut PopplerDocument,
        fd: c_int,
        include_changes: gboolean,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn poppler_document_set_author(document: *mut PopplerDocument, author: *const c_char);
    pub fn poppler_document_set_creation_date(
        document: *mut PopplerDocument,
        creation_date: c_long,
    );
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_document_set_creation_date_time(
        document: *mut PopplerDocument,
        creation_datetime: *mut glib::GDateTime,
    );
    pub fn poppler_document_set_creator(document: *mut PopplerDocument, creator: *const c_char);
    pub fn poppler_document_set_keywords(document: *mut PopplerDocument, keywords: *const c_char);
    pub fn poppler_document_set_modification_date(
        document: *mut PopplerDocument,
        modification_date: c_long,
    );
    #[cfg(feature = "v20_9")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_9")))]
    pub fn poppler_document_set_modification_date_time(
        document: *mut PopplerDocument,
        modification_datetime: *mut glib::GDateTime,
    );
    pub fn poppler_document_set_producer(document: *mut PopplerDocument, producer: *const c_char);
    pub fn poppler_document_set_subject(document: *mut PopplerDocument, subject: *const c_char);
    pub fn poppler_document_set_title(document: *mut PopplerDocument, title: *const c_char);

    //=========================================================================
    // PopplerFontInfo
    //=========================================================================
    pub fn poppler_font_info_get_type() -> GType;
    pub fn poppler_font_info_new(document: *mut PopplerDocument) -> *mut PopplerFontInfo;
    pub fn poppler_font_info_free(font_info: *mut PopplerFontInfo);
    pub fn poppler_font_info_scan(
        font_info: *mut PopplerFontInfo,
        n_pages: c_int,
        iter: *mut *mut PopplerFontsIter,
    ) -> gboolean;

    //=========================================================================
    // PopplerFormField
    //=========================================================================
    pub fn poppler_form_field_get_type() -> GType;
    pub fn poppler_form_field_button_get_button_type(
        field: *mut PopplerFormField,
    ) -> PopplerFormButtonType;
    pub fn poppler_form_field_button_get_state(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_button_set_state(field: *mut PopplerFormField, state: gboolean);
    pub fn poppler_form_field_choice_can_select_multiple(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_choice_commit_on_change(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_choice_do_spell_check(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_choice_get_choice_type(
        field: *mut PopplerFormField,
    ) -> PopplerFormChoiceType;
    pub fn poppler_form_field_choice_get_item(
        field: *mut PopplerFormField,
        index: c_int,
    ) -> *mut c_char;
    pub fn poppler_form_field_choice_get_n_items(field: *mut PopplerFormField) -> c_int;
    pub fn poppler_form_field_choice_get_text(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_choice_is_editable(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_choice_is_item_selected(
        field: *mut PopplerFormField,
        index: c_int,
    ) -> gboolean;
    pub fn poppler_form_field_choice_select_item(field: *mut PopplerFormField, index: c_int);
    pub fn poppler_form_field_choice_set_text(field: *mut PopplerFormField, text: *const c_char);
    pub fn poppler_form_field_choice_toggle_item(field: *mut PopplerFormField, index: c_int);
    pub fn poppler_form_field_choice_unselect_all(field: *mut PopplerFormField);
    pub fn poppler_form_field_get_action(field: *mut PopplerFormField) -> *mut PopplerAction;
    #[cfg(feature = "v0_72")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_72")))]
    pub fn poppler_form_field_get_additional_action(
        field: *mut PopplerFormField,
        type_: PopplerAdditionalActionType,
    ) -> *mut PopplerAction;
    #[cfg(feature = "v0_88")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_88")))]
    pub fn poppler_form_field_get_alternate_ui_name(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_get_field_type(field: *mut PopplerFormField) -> PopplerFormFieldType;
    pub fn poppler_form_field_get_font_size(field: *mut PopplerFormField) -> c_double;
    pub fn poppler_form_field_get_id(field: *mut PopplerFormField) -> c_int;
    pub fn poppler_form_field_get_mapping_name(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_get_name(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_get_partial_name(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_is_read_only(field: *mut PopplerFormField) -> gboolean;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_form_field_signature_validate_async(
        field: *mut PopplerFormField,
        flags: PopplerSignatureValidationFlags,
        cancellable: *mut gio::GCancellable,
        callback: gio::GAsyncReadyCallback,
        user_data: gpointer,
    );
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_form_field_signature_validate_finish(
        field: *mut PopplerFormField,
        result: *mut gio::GAsyncResult,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerSignatureInfo;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_form_field_signature_validate_sync(
        field: *mut PopplerFormField,
        flags: PopplerSignatureValidationFlags,
        cancellable: *mut gio::GCancellable,
        error: *mut *mut glib::GError,
    ) -> *mut PopplerSignatureInfo;
    pub fn poppler_form_field_text_do_scroll(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_text_do_spell_check(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_text_get_max_len(field: *mut PopplerFormField) -> c_int;
    pub fn poppler_form_field_text_get_text(field: *mut PopplerFormField) -> *mut c_char;
    pub fn poppler_form_field_text_get_text_type(
        field: *mut PopplerFormField,
    ) -> PopplerFormTextType;
    pub fn poppler_form_field_text_is_password(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_text_is_rich_text(field: *mut PopplerFormField) -> gboolean;
    pub fn poppler_form_field_text_set_text(field: *mut PopplerFormField, text: *const c_char);

    //=========================================================================
    // PopplerLayer
    //=========================================================================
    pub fn poppler_layer_get_type() -> GType;
    pub fn poppler_layer_get_radio_button_group_id(layer: *mut PopplerLayer) -> c_int;
    pub fn poppler_layer_get_title(layer: *mut PopplerLayer) -> *const c_char;
    pub fn poppler_layer_hide(layer: *mut PopplerLayer);
    pub fn poppler_layer_is_parent(layer: *mut PopplerLayer) -> gboolean;
    pub fn poppler_layer_is_visible(layer: *mut PopplerLayer) -> gboolean;
    pub fn poppler_layer_show(layer: *mut PopplerLayer);

    //=========================================================================
    // PopplerMedia
    //=========================================================================
    pub fn poppler_media_get_type() -> GType;
    #[cfg(feature = "v20_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_4")))]
    pub fn poppler_media_get_auto_play(poppler_media: *mut PopplerMedia) -> gboolean;
    pub fn poppler_media_get_filename(poppler_media: *mut PopplerMedia) -> *const c_char;
    pub fn poppler_media_get_mime_type(poppler_media: *mut PopplerMedia) -> *const c_char;
    #[cfg(feature = "v20_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_4")))]
    pub fn poppler_media_get_repeat_count(poppler_media: *mut PopplerMedia) -> c_float;
    #[cfg(feature = "v20_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v20_4")))]
    pub fn poppler_media_get_show_controls(poppler_media: *mut PopplerMedia) -> gboolean;
    pub fn poppler_media_is_embedded(poppler_media: *mut PopplerMedia) -> gboolean;
    pub fn poppler_media_save(
        poppler_media: *mut PopplerMedia,
        filename: *const c_char,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn poppler_media_save_to_callback(
        poppler_media: *mut PopplerMedia,
        save_func: PopplerMediaSaveFunc,
        user_data: gpointer,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_media_save_to_fd(
        poppler_media: *mut PopplerMedia,
        fd: c_int,
        error: *mut *mut glib::GError,
    ) -> gboolean;

    //=========================================================================
    // PopplerMovie
    //=========================================================================
    pub fn poppler_movie_get_type() -> GType;
    #[cfg(feature = "v0_89")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_89")))]
    pub fn poppler_movie_get_aspect(
        poppler_movie: *mut PopplerMovie,
        width: *mut c_int,
        height: *mut c_int,
    );
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_get_duration(poppler_movie: *mut PopplerMovie) -> u64;
    pub fn poppler_movie_get_filename(poppler_movie: *mut PopplerMovie) -> *const c_char;
    pub fn poppler_movie_get_play_mode(poppler_movie: *mut PopplerMovie) -> PopplerMoviePlayMode;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_get_rate(poppler_movie: *mut PopplerMovie) -> c_double;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_get_rotation_angle(poppler_movie: *mut PopplerMovie) -> c_ushort;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_get_start(poppler_movie: *mut PopplerMovie) -> u64;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_get_volume(poppler_movie: *mut PopplerMovie) -> c_double;
    #[cfg(feature = "v0_80")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_80")))]
    pub fn poppler_movie_is_synchronous(poppler_movie: *mut PopplerMovie) -> gboolean;
    pub fn poppler_movie_need_poster(poppler_movie: *mut PopplerMovie) -> gboolean;
    pub fn poppler_movie_show_controls(poppler_movie: *mut PopplerMovie) -> gboolean;

    //=========================================================================
    // PopplerPSFile
    //=========================================================================
    pub fn poppler_ps_file_get_type() -> GType;
    pub fn poppler_ps_file_new(
        document: *mut PopplerDocument,
        filename: *const c_char,
        first_page: c_int,
        n_pages: c_int,
    ) -> *mut PopplerPSFile;
    #[cfg(feature = "v21_12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v21_12")))]
    pub fn poppler_ps_file_new_fd(
        document: *mut PopplerDocument,
        fd: c_int,
        first_page: c_int,
        n_pages: c_int,
    ) -> *mut PopplerPSFile;
    pub fn poppler_ps_file_free(ps_file: *mut PopplerPSFile);
    pub fn poppler_ps_file_set_duplex(ps_file: *mut PopplerPSFile, duplex: gboolean);
    pub fn poppler_ps_file_set_paper_size(
        ps_file: *mut PopplerPSFile,
        width: c_double,
        height: c_double,
    );

    //=========================================================================
    // PopplerPage
    //=========================================================================
    pub fn poppler_page_get_type() -> GType;
    pub fn poppler_page_free_annot_mapping(list: *mut glib::GList);
    pub fn poppler_page_free_form_field_mapping(list: *mut glib::GList);
    pub fn poppler_page_free_image_mapping(list: *mut glib::GList);
    pub fn poppler_page_free_link_mapping(list: *mut glib::GList);
    pub fn poppler_page_free_text_attributes(list: *mut glib::GList);
    pub fn poppler_page_selection_region_free(region: *mut glib::GList);
    pub fn poppler_page_add_annot(page: *mut PopplerPage, annot: *mut PopplerAnnot);
    pub fn poppler_page_find_text(page: *mut PopplerPage, text: *const c_char) -> *mut glib::GList;
    pub fn poppler_page_find_text_with_options(
        page: *mut PopplerPage,
        text: *const c_char,
        options: PopplerFindFlags,
    ) -> *mut glib::GList;
    pub fn poppler_page_get_annot_mapping(page: *mut PopplerPage) -> *mut glib::GList;
    pub fn poppler_page_get_bounding_box(
        page: *mut PopplerPage,
        rect: *mut PopplerRectangle,
    ) -> gboolean;
    pub fn poppler_page_get_crop_box(page: *mut PopplerPage, rect: *mut PopplerRectangle);
    pub fn poppler_page_get_duration(page: *mut PopplerPage) -> c_double;
    pub fn poppler_page_get_form_field_mapping(page: *mut PopplerPage) -> *mut glib::GList;
    pub fn poppler_page_get_image(
        page: *mut PopplerPage,
        image_id: c_int,
    ) -> *mut cairo::cairo_surface_t;
    pub fn poppler_page_get_image_mapping(page: *mut PopplerPage) -> *mut glib::GList;
    pub fn poppler_page_get_index(page: *mut PopplerPage) -> c_int;
    pub fn poppler_page_get_label(page: *mut PopplerPage) -> *mut c_char;
    pub fn poppler_page_get_link_mapping(page: *mut PopplerPage) -> *mut glib::GList;
    pub fn poppler_page_get_selected_region(
        page: *mut PopplerPage,
        scale: c_double,
        style: PopplerSelectionStyle,
        selection: *mut PopplerRectangle,
    ) -> *mut cairo::cairo_region_t;
    pub fn poppler_page_get_selected_text(
        page: *mut PopplerPage,
        style: PopplerSelectionStyle,
        selection: *mut PopplerRectangle,
    ) -> *mut c_char;
    pub fn poppler_page_get_selection_region(
        page: *mut PopplerPage,
        scale: c_double,
        style: PopplerSelectionStyle,
        selection: *mut PopplerRectangle,
    ) -> *mut glib::GList;
    pub fn poppler_page_get_size(
        page: *mut PopplerPage,
        width: *mut c_double,
        height: *mut c_double,
    );
    pub fn poppler_page_get_text(page: *mut PopplerPage) -> *mut c_char;
    pub fn poppler_page_get_text_attributes(page: *mut PopplerPage) -> *mut glib::GList;
    pub fn poppler_page_get_text_attributes_for_area(
        page: *mut PopplerPage,
        area: *mut PopplerRectangle,
    ) -> *mut glib::GList;
    pub fn poppler_page_get_text_for_area(
        page: *mut PopplerPage,
        area: *mut PopplerRectangle,
    ) -> *mut c_char;
    pub fn poppler_page_get_text_layout(
        page: *mut PopplerPage,
        rectangles: *mut *mut PopplerRectangle,
        n_rectangles: *mut c_uint,
    ) -> gboolean;
    pub fn poppler_page_get_text_layout_for_area(
        page: *mut PopplerPage,
        area: *mut PopplerRectangle,
        rectangles: *mut *mut PopplerRectangle,
        n_rectangles: *mut c_uint,
    ) -> gboolean;
    pub fn poppler_page_get_thumbnail(page: *mut PopplerPage) -> *mut cairo::cairo_surface_t;
    pub fn poppler_page_get_thumbnail_size(
        page: *mut PopplerPage,
        width: *mut c_int,
        height: *mut c_int,
    ) -> gboolean;
    pub fn poppler_page_get_transition(page: *mut PopplerPage) -> *mut PopplerPageTransition;
    pub fn poppler_page_remove_annot(page: *mut PopplerPage, annot: *mut PopplerAnnot);
    pub fn poppler_page_render(page: *mut PopplerPage, cairo: *mut cairo::cairo_t);
    pub fn poppler_page_render_for_printing(page: *mut PopplerPage, cairo: *mut cairo::cairo_t);
    pub fn poppler_page_render_for_printing_with_options(
        page: *mut PopplerPage,
        cairo: *mut cairo::cairo_t,
        options: PopplerPrintFlags,
    );
    pub fn poppler_page_render_selection(
        page: *mut PopplerPage,
        cairo: *mut cairo::cairo_t,
        selection: *mut PopplerRectangle,
        old_selection: *mut PopplerRectangle,
        style: PopplerSelectionStyle,
        glyph_color: *mut PopplerColor,
        background_color: *mut PopplerColor,
    );
    pub fn poppler_page_render_to_ps(page: *mut PopplerPage, ps_file: *mut PopplerPSFile);

    //=========================================================================
    // PopplerStructureElement
    //=========================================================================
    pub fn poppler_structure_element_get_type() -> GType;
    pub fn poppler_structure_element_get_abbreviation(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_actual_text(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_alt_text(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_background_color(
        poppler_structure_element: *mut PopplerStructureElement,
        color: *mut PopplerColor,
    ) -> gboolean;
    pub fn poppler_structure_element_get_baseline_shift(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_block_align(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureBlockAlign;
    pub fn poppler_structure_element_get_border_color(
        poppler_structure_element: *mut PopplerStructureElement,
        colors: *mut [PopplerColor; 4],
    ) -> gboolean;
    pub fn poppler_structure_element_get_border_style(
        poppler_structure_element: *mut PopplerStructureElement,
        border_styles: *mut [PopplerStructureBorderStyle; 4],
    );
    pub fn poppler_structure_element_get_border_thickness(
        poppler_structure_element: *mut PopplerStructureElement,
        border_thicknesses: *mut [c_double; 4],
    ) -> gboolean;
    pub fn poppler_structure_element_get_bounding_box(
        poppler_structure_element: *mut PopplerStructureElement,
        bounding_box: *mut PopplerRectangle,
    ) -> gboolean;
    pub fn poppler_structure_element_get_color(
        poppler_structure_element: *mut PopplerStructureElement,
        color: *mut PopplerColor,
    ) -> gboolean;
    pub fn poppler_structure_element_get_column_count(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_uint;
    pub fn poppler_structure_element_get_column_gaps(
        poppler_structure_element: *mut PopplerStructureElement,
        n_values: *mut c_uint,
    ) -> *mut c_double;
    pub fn poppler_structure_element_get_column_widths(
        poppler_structure_element: *mut PopplerStructureElement,
        n_values: *mut c_uint,
    ) -> *mut c_double;
    pub fn poppler_structure_element_get_end_indent(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_form_description(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_form_role(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureFormRole;
    pub fn poppler_structure_element_get_form_state(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureFormState;
    pub fn poppler_structure_element_get_glyph_orientation(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureGlyphOrientation;
    pub fn poppler_structure_element_get_height(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_id(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_inline_align(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureInlineAlign;
    pub fn poppler_structure_element_get_kind(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureElementKind;
    pub fn poppler_structure_element_get_language(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_line_height(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_list_numbering(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureListNumbering;
    pub fn poppler_structure_element_get_padding(
        poppler_structure_element: *mut PopplerStructureElement,
        paddings: *mut [c_double; 4],
    );
    pub fn poppler_structure_element_get_page(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_int;
    pub fn poppler_structure_element_get_placement(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructurePlacement;
    pub fn poppler_structure_element_get_ruby_align(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureRubyAlign;
    pub fn poppler_structure_element_get_ruby_position(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureRubyPosition;
    pub fn poppler_structure_element_get_space_after(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_space_before(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_start_indent(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_table_border_style(
        poppler_structure_element: *mut PopplerStructureElement,
        border_styles: *mut [PopplerStructureBorderStyle; 4],
    );
    pub fn poppler_structure_element_get_table_column_span(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_uint;
    pub fn poppler_structure_element_get_table_headers(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut *mut c_char;
    pub fn poppler_structure_element_get_table_padding(
        poppler_structure_element: *mut PopplerStructureElement,
        paddings: *mut [c_double; 4],
    );
    pub fn poppler_structure_element_get_table_row_span(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_uint;
    pub fn poppler_structure_element_get_table_scope(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureTableScope;
    pub fn poppler_structure_element_get_table_summary(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_text(
        poppler_structure_element: *mut PopplerStructureElement,
        flags: PopplerStructureGetTextFlags,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_text_align(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureTextAlign;
    pub fn poppler_structure_element_get_text_decoration_color(
        poppler_structure_element: *mut PopplerStructureElement,
        color: *mut PopplerColor,
    ) -> gboolean;
    pub fn poppler_structure_element_get_text_decoration_thickness(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_text_decoration_type(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureTextDecoration;
    pub fn poppler_structure_element_get_text_indent(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_text_spans(
        poppler_structure_element: *mut PopplerStructureElement,
        n_text_spans: *mut c_uint,
    ) -> *mut *mut PopplerTextSpan;
    pub fn poppler_structure_element_get_title(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> *mut c_char;
    pub fn poppler_structure_element_get_width(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> c_double;
    pub fn poppler_structure_element_get_writing_mode(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> PopplerStructureWritingMode;
    pub fn poppler_structure_element_is_block(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> gboolean;
    pub fn poppler_structure_element_is_content(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> gboolean;
    pub fn poppler_structure_element_is_grouping(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> gboolean;
    pub fn poppler_structure_element_is_inline(
        poppler_structure_element: *mut PopplerStructureElement,
    ) -> gboolean;

    //=========================================================================
    // Other functions
    //=========================================================================
    pub fn poppler_date_parse(date: *const c_char, timet: *mut c_long) -> gboolean;
    pub fn poppler_get_backend() -> PopplerBackend;
    pub fn poppler_get_version() -> *const c_char;
    #[cfg(feature = "v0_73")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_73")))]
    pub fn poppler_named_dest_from_bytestring(data: *const u8, length: size_t) -> *mut c_char;
    #[cfg(feature = "v0_73")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_73")))]
    pub fn poppler_named_dest_to_bytestring(name: *const c_char, length: *mut size_t) -> *mut u8;

}