This file is indexed.

/usr/share/cups/doc-root/help/api-ppd.html is in cups-server-common 2.2.7-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
<!doctype html>
<html>
<!-- SECTION: Programming -->
  <head>
    <title>PPD API (DEPRECATED)</title>
    <meta name="keywords" content="Programming">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="creator" content="Mini-XML v2.11">
    <meta name="author" content="Unknown">
    <meta name="copyright" content="Unknown">
    <meta name="version" content="0.0">
    <style type="text/css"><!--
BODY {
  font-family: lucida grande, geneva, helvetica, arial, sans-serif;
}

H1, H2, H3, H4, H5, H6, P, TD, TH {
  font-family: lucida grande, geneva, helvetica, arial, sans-serif;
}

KBD {
  font-family: monaco, courier, monospace;
  font-weight: bold;
}

PRE {
  font-family: monaco, courier, monospace;
}

PRE.command {
  border: dotted thin #7f7f7f;
  margin-left: 36pt;
  padding: 10px;
}

P.compact {
  margin: 0;
}

P.example {
  font-style: italic;
  margin-left: 36pt;
}

DL.man DD {
  margin-left: 5em;
}

DL.man DT {
  margin-left: 0;
}

PRE.man {
  margin: 0;
}

PRE.example {
  background: #eeeeee;
  border: dotted thin #999999;
  margin-left: 36pt;
  padding: 10pt;
}

PRE.command EM, PRE.example EM {
  font-family: lucida grande, geneva, helvetica, arial, sans-serif;
}

P.command {
  font-family: monaco, courier, monospace;
  margin-left: 36pt;
}

P.formula {
  font-style: italic;
  margin-left: 36pt;
}

BLOCKQUOTE {
  background: #eeeeee;
  border: solid thin #999999;
  padding: 10pt;
}

A IMG {
  border: none;
}

A:link:hover IMG {
  background: #f0f0f0;
  border-radius: 10px;
  -moz-border-radius: 10px;
}

A:link, A:visited {
  font-weight: inherit;
  text-decoration: none;
}

A:link:hover, A:visited:hover, A:active {
  text-decoration: underline;
}

SUB, SUP {
  font-size: 50%;
}

TR.data, TD.data, TR.data TD {
  margin-top: 10pt;
  padding: 5pt;
  border-bottom: solid 1pt #999999;
}

TR.data TH {
  border-bottom: solid 1pt #999999;
  padding-top: 10pt;
  padding-left: 5pt;
  text-align: left;
}

DIV.table TABLE {
  border: solid thin #999999;
  border-collapse: collapse;
  border-spacing: 0;
  margin-left: auto;
  margin-right: auto;
}

DIV.table CAPTION {
  caption-side: top;
  font-size: 120%;
  font-style: italic;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
}

DIV.table TABLE TD {
  border: solid thin #cccccc;
  padding-top: 5pt;
}

DIV.table TABLE TH {
  background: #cccccc;
  border: none;
  border-bottom: solid thin #999999;
}

DIV.figure TABLE {
  margin-left: auto;
  margin-right: auto;
}

DIV.figure CAPTION {
  caption-side: bottom;
  font-size: 120%;
  font-style: italic;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
}

TH.label {
  text-align: right;
  vertical-align: top;
}

TH.sublabel {
  text-align: right;
  font-weight: normal;
}

HR {
  border: solid thin;
}

SPAN.info {
  background: black;
  border: thin solid black;
  color: white;
  font-size: 80%;
  font-style: italic;
  font-weight: bold;
  white-space: nowrap;
}

H2 SPAN.info, H3 SPAN.info, H4 SPAN.info {
  float: right;
  font-size: 100%;
}

H1.title {
}

H2.title, H3.title {
  border-bottom: solid 2pt #000000;
}

DIV.indent, TABLE.indent {
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

TABLE.indent {
  border-collapse: collapse;
}

TABLE.indent TD, TABLE.indent TH {
  padding: 0;
}

TABLE.list {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

TABLE.list TH {
  background: white;
  border-bottom: solid thin #cccccc;
  color: #444444;
  padding-top: 10pt;
  padding-left: 5pt;
  text-align: left;
  vertical-align: bottom;
  white-space: nowrap;
}

TABLE.list TH A {
  color: #4444cc;
}

TABLE.list TD {
  border-bottom: solid thin #eeeeee;
  padding-top: 5pt;
  padding-left: 5pt;
}

TABLE.list TR:nth-child(even) {
  background: #f8f8f8;
}

TABLE.list TR:nth-child(odd) {
  background: #f4f4f4;
}

DT {
  margin-left: 36pt;
  margin-top: 12pt;
}

DD {
  margin-left: 54pt;
}

DL.category DT {
  font-weight: bold;
}

P.summary {
  margin-left: 36pt;
  font-family: monaco, courier, monospace;
}

DIV.summary TABLE {
  border: solid thin #999999;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 10px;
}

DIV.summary TABLE TD, DIV.summary TABLE TH {
  border: solid thin #999999;
  padding: 5px;
  text-align: left;
  vertical-align: top;
}

DIV.summary TABLE THEAD TH {
  background: #eeeeee;
}

/* API documentation styles... */
div.body h1 {
  margin: 0;
}
div.body h2 {
  margin-top: 1.5em;
}
div.body h3, div.body h4, div.body h5 {
  margin-bottom: 0.5em;
  margin-top: 1.5em;
}
.class, .enumeration, .function, .struct, .typedef, .union {
  border-bottom: solid thin #999999;
  margin-bottom: 0;
  margin-top: 2em;
}
.description {
  margin-top: 0.5em;
}
code, p.code, pre, ul.code li {
  font-family: monaco, courier, monospace;
  font-size: 90%;
}
ul.code, ul.contents, ul.subcontents {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}
ul.code li {
  margin: 0;
}
ul.contents > li {
  margin-top: 1em;
}
ul.contents li ul.code, ul.contents li ul.subcontents {
  padding-left: 2em;
}
div.body dl {
  margin-left: 0;
  margin-top: 0;
}
div.body dt {
  font-style: italic;
  margin-left: 0;
  margin-top: 0;
}
div.body dd {
  margin-bottom: 0.5em;
}

/* This is just for the HTML files generated with the framedhelp target */
div.contents {
  background: #e8e8e8;
  border: solid thin black;
  padding: 10px;
}
div.contents h1 {
  font-size: 110%;
}
div.contents h2 {
  font-size: 100%;
}
div.contents ul.contents {
  font-size: 80%;
}
div.contents ul.subcontents li {
  margin-left: 1em;
  text-indent: -1em;
}
--></style>
  </head>
  <body>
<!--
  PPD API header for CUPS.

  Copyright 2008-2012 by Apple Inc.

  These coded instructions, statements, and computer programs are the
  property of Apple Inc. and are protected by Federal copyright
  law.  Distribution and use rights are outlined in the file "LICENSE.txt"
  which should have been included with this file.  If this file is
  file is missing or damaged, see the license at "http://www.cups.org/".
-->

<h1 class='title'>PPD API (DEPRECATED)</h1>

<blockquote>The PPD API is deprecated starting in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the <a href="api-cups.html">CUPS API</a> documentation. These functions will be removed in a future release of CUPS.</blockquote>

<div class='summary'><table summary='General Information'>
<thead>
<tr>
	<th>Header</th>
	<th>cups/ppd.h</th>
</tr>
</thead>
<tbody>
<tr>
	<th>Library</th>
	<td>-lcups</td>
</tr>
<tr>
	<th>See Also</th>
	<td>Programming: <a href='api-overview.html' target='_top'>Introduction to CUPS Programming</a><br>
	Programming: <a href='api-cups.html' target='_top'>CUPS API</a><br>
	Specifications: <a href='spec-ppd.html' target='_top'>CUPS PPD Extensions</a></td>
</tr>
</tbody>
</table></div>
    <div class="contents">
      <h2 class="title">Contents</h2>
      <ul class="contents">
        <li><a href="#OVERVIEW">Overview</a><ul class="subcontents">
          <li><a href="#LOADING">Loading a PPD File</a></li>
          <li><a href="#OPTIONS_AND_GROUPS">Options and Groups</a></li>
          <li><a href="#CONSTRAINTS">Constraints</a></li>
          <li><a href="#PAGE_SIZES">Page Sizes</a></li>
          <li><a href="#ATTRIBUTES">Attributes</a></li>
        </ul></li>
        <li><a href="#FUNCTIONS">Functions</a><ul class="subcontents">
          <li><a href="#cupsGetConflicts">cupsGetConflicts</a></li>
          <li><a href="#cupsGetPPD">cupsGetPPD</a></li>
          <li><a href="#cupsGetPPD2">cupsGetPPD2</a></li>
          <li><a href="#cupsGetPPD3">cupsGetPPD3</a></li>
          <li><a href="#cupsGetServerPPD">cupsGetServerPPD</a></li>
          <li><a href="#cupsMarkOptions">cupsMarkOptions</a></li>
          <li><a href="#cupsResolveConflicts">cupsResolveConflicts</a></li>
          <li><a href="#ppdCollect">ppdCollect</a></li>
          <li><a href="#ppdCollect2">ppdCollect2</a></li>
          <li><a href="#ppdConflicts">ppdConflicts</a></li>
          <li><a href="#ppdEmit">ppdEmit</a></li>
          <li><a href="#ppdEmitAfterOrder">ppdEmitAfterOrder</a></li>
          <li><a href="#ppdEmitFd">ppdEmitFd</a></li>
          <li><a href="#ppdEmitJCL">ppdEmitJCL</a></li>
          <li><a href="#ppdEmitJCLEnd">ppdEmitJCLEnd</a></li>
          <li><a href="#ppdEmitString">ppdEmitString</a></li>
          <li><a href="#ppdFindAttr">ppdFindAttr</a></li>
          <li><a href="#ppdFindChoice">ppdFindChoice</a></li>
          <li><a href="#ppdFindCustomOption">ppdFindCustomOption</a></li>
          <li><a href="#ppdFindCustomParam">ppdFindCustomParam</a></li>
          <li><a href="#ppdFindMarkedChoice">ppdFindMarkedChoice</a></li>
          <li><a href="#ppdFindNextAttr">ppdFindNextAttr</a></li>
          <li><a href="#ppdFindOption">ppdFindOption</a></li>
          <li><a href="#ppdFirstCustomParam">ppdFirstCustomParam</a></li>
          <li><a href="#ppdFirstOption">ppdFirstOption</a></li>
          <li><a href="#ppdInstallableConflict">ppdInstallableConflict</a></li>
          <li><a href="#ppdIsMarked">ppdIsMarked</a></li>
          <li><a href="#ppdLocalize">ppdLocalize</a></li>
          <li><a href="#ppdLocalizeAttr">ppdLocalizeAttr</a></li>
          <li><a href="#ppdLocalizeIPPReason">ppdLocalizeIPPReason</a></li>
          <li><a href="#ppdLocalizeMarkerName">ppdLocalizeMarkerName</a></li>
          <li><a href="#ppdMarkDefaults">ppdMarkDefaults</a></li>
          <li><a href="#ppdMarkOption">ppdMarkOption</a></li>
          <li><a href="#ppdNextCustomParam">ppdNextCustomParam</a></li>
          <li><a href="#ppdNextOption">ppdNextOption</a></li>
          <li><a href="#ppdPageLength">ppdPageLength</a></li>
          <li><a href="#ppdPageSize">ppdPageSize</a></li>
          <li><a href="#ppdPageSizeLimits">ppdPageSizeLimits</a></li>
          <li><a href="#ppdPageWidth">ppdPageWidth</a></li>
        </ul></li>
        <li><a href="#TYPES">Data Types</a><ul class="subcontents">
          <li><a href="#ppd_attr_t">ppd_attr_t</a></li>
          <li><a href="#ppd_choice_t">ppd_choice_t</a></li>
          <li><a href="#ppd_conform_t">ppd_conform_t</a></li>
          <li><a href="#ppd_const_t">ppd_const_t</a></li>
          <li><a href="#ppd_coption_t">ppd_coption_t</a></li>
          <li><a href="#ppd_cparam_t">ppd_cparam_t</a></li>
          <li><a href="#ppd_cplimit_t">ppd_cplimit_t</a></li>
          <li><a href="#ppd_cptype_t">ppd_cptype_t</a></li>
          <li><a href="#ppd_cpvalue_t">ppd_cpvalue_t</a></li>
          <li><a href="#ppd_cs_t">ppd_cs_t</a></li>
          <li><a href="#ppd_emul_t">ppd_emul_t</a></li>
          <li><a href="#ppd_file_t">ppd_file_t</a></li>
          <li><a href="#ppd_group_t">ppd_group_t</a></li>
          <li><a href="#ppd_option_t">ppd_option_t</a></li>
          <li><a href="#ppd_profile_t">ppd_profile_t</a></li>
          <li><a href="#ppd_section_t">ppd_section_t</a></li>
          <li><a href="#ppd_size_t">ppd_size_t</a></li>
          <li><a href="#ppd_status_t">ppd_status_t</a></li>
          <li><a href="#ppd_ui_t">ppd_ui_t</a></li>
        </ul></li>
        <li><a href="#STRUCTURES">Structures</a><ul class="subcontents">
          <li><a href="#ppd_attr_s">ppd_attr_s</a></li>
          <li><a href="#ppd_choice_s">ppd_choice_s</a></li>
          <li><a href="#ppd_const_s">ppd_const_s</a></li>
          <li><a href="#ppd_coption_s">ppd_coption_s</a></li>
          <li><a href="#ppd_cparam_s">ppd_cparam_s</a></li>
          <li><a href="#ppd_emul_s">ppd_emul_s</a></li>
          <li><a href="#ppd_file_s">ppd_file_s</a></li>
          <li><a href="#ppd_group_s">ppd_group_s</a></li>
          <li><a href="#ppd_option_s">ppd_option_s</a></li>
          <li><a href="#ppd_profile_s">ppd_profile_s</a></li>
          <li><a href="#ppd_size_s">ppd_size_s</a></li>
        </ul></li>
        <li><a href="#UNIONS">Unions</a><ul class="subcontents">
          <li><a href="#ppd_cplimit_u">ppd_cplimit_u</a></li>
          <li><a href="#ppd_cpvalue_u">ppd_cpvalue_u</a></li>
        </ul></li>
        <li><a href="#ENUMERATIONS">Enumerations</a><ul class="subcontents">
          <li><a href="#ppd_conform_e">ppd_conform_e</a></li>
          <li><a href="#ppd_cs_e">ppd_cs_e</a></li>
          <li><a href="#ppd_section_e">ppd_section_e</a></li>
          <li><a href="#ppd_status_e">ppd_status_e</a></li>
          <li><a href="#ppd_ui_e">ppd_ui_e</a></li>
        </ul></li>
      </ul>
    </div>
    <div class="body">
<!--
  PPD API introduction for CUPS.

  Copyright 2007-2012 by Apple Inc.
  Copyright 1997-2006 by Easy Software Products, all rights reserved.

  These coded instructions, statements, and computer programs are the
  property of Apple Inc. and are protected by Federal copyright
  law.  Distribution and use rights are outlined in the file "LICENSE.txt"
  which should have been included with this file.  If this file is
  file is missing or damaged, see the license at "http://www.cups.org/".
-->

<h2 class='title'><a name='OVERVIEW'>Overview</a></h2>

<blockquote>The PPD API is deprecated starting in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the <a href="api-cups.html">CUPS API</a> documentation. These functions will be removed in a future release of CUPS.</blockquote>

<p>The CUPS PPD API provides read-only access the data in PostScript Printer
Description ("PPD") files which are used for all printers with a driver. With
it you can obtain the data necessary to display printer options to users, mark
option choices and check for conflicting choices, and output marked choices in
PostScript output. The <a href="#ppd_file_t"><code>ppd_file_t</code></a>
structure contains all of the information in a PPD file.</p>

<blockquote><b>Note:</b>

<p>The CUPS PPD API uses the terms "option" and "choice" instead of the Adobe
terms "MainKeyword" and "OptionKeyword" to refer to specific printer options and
features. CUPS also treats option ("MainKeyword") and choice ("OptionKeyword")
values as case-insensitive strings, so option "InputSlot" and choice "Upper"
are equivalent to "inputslot" and "upper", respectively.</p>
</blockquote>

<h3><a name="LOADING">Loading a PPD File</a></h3>

<p>The <a href="#ppdOpenFile"><code>ppdOpenFile</code></a> function "opens" a
PPD file and loads it into memory. For example, the following code opens the
current printer's PPD file in a CUPS filter:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd = <a href="#ppdOpenFile">ppdOpenFile</a>(getenv("PPD"));
</pre>

<p>The return value is a pointer to a new
<a href="#ppd_file_t"><code>ppd_file_t</code></a> structure or <code>NULL</code>
if the PPD file does not exist or cannot be loaded. The
<a href="#ppdClose"><code>ppdClose</code></a> function frees the memory used
by the structure:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;

<a href="#ppdClose">ppdClose</a>(ppd);
</pre>

<p>Once closed, pointers to the <a href="#ppd_file_t"><code>ppd_file_t</code></a>
structure and any data in it will no longer be valid.</p>

<h3><a name="OPTIONS_AND_GROUPS">Options and Groups</a></h3>

<p>PPD files support multiple options, which are stored in arrays of
<a href="#ppd_option_t"><code>ppd_option_t</code></a> and
<a href="#ppd_choice_t"><code>ppd_choice_t</code></a> structures.</p>

<p>Each option in turn is associated with a group stored in a
<a href="#ppd_group_t"><code>ppd_group_t</code></a> structure. Groups can be
specified in the PPD file; if an option is not associated with a group
then it is put in an automatically-generated "General" group. Groups can also
have sub-groups, however CUPS currently ignores sub-groups because of past
abuses of this functionality.</p>

<p>Option choices are selected by marking them using one of three functions. The
first is <a href="#ppdMarkDefaults"><code>ppdMarkDefaults</code></a> which
selects all of the default options in the PPD file:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;

<a href="#ppdMarkDefaults">ppdMarkDefaults</a>(ppd);
</pre>

<p>The second is <a href="#ppdMarkOption"><code>ppdMarkOption</code></a>
which selects a single option choice in the PPD file. For example, the following
code selects the upper paper tray:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;

<a href="#ppdMarkOption">ppdMarkOption</a>(ppd, "InputSlot", "Upper");
</pre>

<p>The last function is
<a href="#cupsMarkOptions"><code>cupsMarkOptions</code></a> which selects
multiple option choices in the PPD file from an array of CUPS options, mapping
IPP attributes like "media" and "sides" to their corresponding PPD options. You
typically use this function in a print filter with
<code>cupsParseOptions</code> and
<a href="#ppdMarkDefaults"><code>ppdMarkDefaults</code></a> to select all of
the option choices needed for the job, for example:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd = <a href="#ppdOpenFile">ppdOpenFile</a>(getenv("PPD"));
cups_option_t *options = NULL;
int num_options = cupsParseOptions(argv[5], 0, &amp;options);

<a href="#ppdMarkDefaults">ppdMarkDefaults</a>(ppd);
<a href="#cupsMarkOptions">cupsMarkOptions</a>(ppd, num_options, options);
cupsFreeOptions(num_options, options);
</pre>

<h3><a name="CONSTRAINTS">Constraints</a></h3>

<p>PPD files support specification of conflict conditions, called
constraints, between different options. Constraints are stored in an array of
<a href="#ppd_const_t"><code>ppd_const_t</code></a> structures which specify
the options and choices that conflict with each other. The
<a href="#ppdConflicts"><code>ppdConflicts</code></a> function tells you
how many of the selected options are incompatible. Since constraints are
normally specified in pairs, the returned value is typically an even number.</p>

<h3><a name="PAGE_SIZES">Page Sizes</a></h3>

<p>Page sizes are special options which have physical dimensions and margins
associated with them. The size information is stored in
<a href="#ppd_size_t"><code>ppd_size_t</code></a> structures and is available
by looking up the named size with the
<a href="#ppdPageSize"><code>ppdPageSize</code></a> function. The page size and
margins are returned in units called points; there are 72 points per inch. If
you pass <code>NULL</code> for the size, the currently selected size is
returned:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;
<a href="#ppd_size_t">ppd_size_t</a> *size = <a href="#ppdPageSize">ppdPageSize</a>(ppd, NULL);
</pre>

<p>Besides the standard page sizes listed in a PPD file, some printers
support variable or custom page sizes. Custom page sizes are supported if the
<code>variables_sizes</code> member of the
<a href="#ppd_file_t"><code>ppd_file_t</code></a> structure is non-zero.
The <code>custom_min</code>, <code>custom_max</code>, and
<code>custom_margins</code> members of the
<a href="#ppd_file_t"><code>ppd_file_t</code></a> structure define the limits
of the printable area. To get the resulting media size, use a page size string
of the form "Custom.<I>width</I>x<I>length</I>", where "width" and "length" are
in points. Custom page size names can also be specified in inches
("Custom.<i>width</i>x<i>height</i>in"), centimeters
("Custom.<i>width</i>x<i>height</i>cm"), or millimeters
("Custom.<i>width</i>x<i>height</i>mm"):</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;

/* Get an 576x720 point custom page size */
<a href="#ppd_size_t">ppd_size_t</a> *size = <a href="#ppdPageSize">ppdPageSize</a>(ppd, "Custom.576x720");

/* Get an 8x10 inch custom page size */
<a href="#ppd_size_t">ppd_size_t</a> *size = <a href="#ppdPageSize">ppdPageSize</a>(ppd, "Custom.8x10in");

/* Get a 100x200 millimeter custom page size */
<a href="#ppd_size_t">ppd_size_t</a> *size = <a href="#ppdPageSize">ppdPageSize</a>(ppd, "Custom.100x200mm");

/* Get a 12.7x34.5 centimeter custom page size */
<a href="#ppd_size_t">ppd_size_t</a> *size = <a href="#ppdPageSize">ppdPageSize</a>(ppd, "Custom.12.7x34.5cm");
</pre>

<p>If the PPD does not support variable page sizes, the
<a href="#ppdPageSize"><code>ppdPageSize</code></a> function will return
<code>NULL</code>.</p>

<h3><a name="ATTRIBUTES">Attributes</a></h3>

<p>Every PPD file is composed of one or more attributes. Most of these
attributes are used to define groups, options, choices, and page sizes,
however several informational attributes may be present which you can access
in your program or filter. Attributes normally look like one of the following
examples in a PPD file:</p>

<pre class="example">
*name: "value"
*name spec: "value"
*name spec/text: "value"
</pre>

<p>The <a href="#ppdFindAttr"><code>ppdFindAttr</code></a> and
<a href="#ppdFindNextAttr"><code>ppdFindNextAttr</code></a> functions find the
first and next instances, respectively, of the named attribute with the given
"spec" string and return a <a href="#ppd_attr_t"><code>ppd_attr_t</code></a>
structure. If you provide a NULL specifier string, all attributes with the
given name will be returned. For example, the following code lists all of the
<code>Product</code> attributes in a PPD file:</p>

<pre class="example">
#include &lt;cups/ppd.h&gt;

<a href="#ppd_file_t">ppd_file_t</a> *ppd;
<a href="#ppd_attr_t">ppd_attr_t</a> *attr;

for (attr = <a href="#ppdFindAttr">ppdFindAttr</a>(ppd, "Product", NULL);
     attr != NULL;
     attr = <a href="#ppdFindNextAttr">ppdFindNextAttr</a>(ppd, "Product", NULL))
  puts(attr->value);
</pre>
      <h2 class="title"><a id="FUNCTIONS">Functions</a></h2>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="cupsGetConflicts">cupsGetConflicts</a></h3>
        <p class="description">Get a list of conflicting options in a marked PPD.</p>
<p class="code">
int cupsGetConflicts(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option, const char *choice, cups_option_t **options);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>option</th>
        <td class="description">Option to test</td></tr>
<tr><th>choice</th>
        <td class="description">Choice to test</td></tr>
<tr><th>options</th>
        <td class="description">Conflicting options</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Number of conflicting options</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function gets a list of options that would conflict if &quot;option&quot; and
&quot;choice&quot; were marked in the PPD.  You would typically call this function
after marking the currently selected options in the PPD in order to
determine whether a new option selection would cause a conflict.<br>
<br>
The number of conflicting options are returned with &quot;options&quot; pointing to
the conflicting options.  The returned option array must be freed using
<a href="#cupsFreeOptions"><code>cupsFreeOptions</code></a>.

</p>
<h3 class="function"><a id="cupsGetPPD">cupsGetPPD</a></h3>
        <p class="description">Get the PPD file for a printer on the default server.</p>
<p class="code">
const char *cupsGetPPD(const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>name</th>
        <td class="description">Destination name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Filename for PPD file</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">For classes, <code>cupsGetPPD</code> returns the PPD file for the first printer
in the class.<br>
<br>
The returned filename is stored in a static buffer and is overwritten with
each call to <code>cupsGetPPD</code> or <a href="#cupsGetPPD2"><code>cupsGetPPD2</code></a>.  The caller &quot;owns&quot; the
file that is created and must <code>unlink</code> the returned filename.</p>
<h3 class="function"><span class="info">&#160;CUPS 1.1.21/macOS 10.4&#160;</span><a id="cupsGetPPD2">cupsGetPPD2</a></h3>
        <p class="description">Get the PPD file for a printer from the specified server.</p>
<p class="code">
const char *cupsGetPPD2(http_t *http, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>http</th>
        <td class="description">Connection to server or <code>CUPS_HTTP_DEFAULT</code></td></tr>
<tr><th>name</th>
        <td class="description">Destination name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Filename for PPD file</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">For classes, <code>cupsGetPPD2</code> returns the PPD file for the first printer
in the class.<br>
<br>
The returned filename is stored in a static buffer and is overwritten with
each call to <a href="#cupsGetPPD"><code>cupsGetPPD</code></a> or <code>cupsGetPPD2</code>.  The caller &quot;owns&quot; the
file that is created and must <code>unlink</code> the returned filename.

</p>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="cupsGetPPD3">cupsGetPPD3</a></h3>
        <p class="description">Get the PPD file for a printer on the specified
server if it has changed.</p>
<p class="code">
http_status_t cupsGetPPD3(http_t *http, const char *name, time_t *modtime, char *buffer, size_t bufsize);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>http</th>
        <td class="description">HTTP connection or <code>CUPS_HTTP_DEFAULT</code></td></tr>
<tr><th>name</th>
        <td class="description">Destination name</td></tr>
<tr><th>modtime</th>
        <td class="description">Modification time</td></tr>
<tr><th>buffer</th>
        <td class="description">Filename buffer</td></tr>
<tr><th>bufsize</th>
        <td class="description">Size of filename buffer</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">HTTP status</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">The &quot;modtime&quot; parameter contains the modification time of any
locally-cached content and is updated with the time from the PPD file on
the server.<br>
<br>
The &quot;buffer&quot; parameter contains the local PPD filename.  If it contains
the empty string, a new temporary file is created, otherwise the existing
file will be overwritten as needed.  The caller &quot;owns&quot; the file that is
created and must <code>unlink</code> the returned filename.<br>
<br>
On success, <code>HTTP_STATUS_OK</code> is returned for a new PPD file and
<code>HTTP_STATUS_NOT_MODIFIED</code> if the existing PPD file is up-to-date.  Any other
status is an error.<br>
<br>
For classes, <code>cupsGetPPD3</code> returns the PPD file for the first printer
in the class.

</p>
<h3 class="function"><span class="info">&#160;CUPS 1.3/macOS 10.5&#160;</span><a id="cupsGetServerPPD">cupsGetServerPPD</a></h3>
        <p class="description">Get an available PPD file from the server.</p>
<p class="code">
char *cupsGetServerPPD(http_t *http, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>http</th>
        <td class="description">Connection to server or <code>CUPS_HTTP_DEFAULT</code></td></tr>
<tr><th>name</th>
        <td class="description">Name of PPD file (&quot;ppd-name&quot;)</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Name of PPD file or <code>NULL</code> on error</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function returns the named PPD file from the server.  The
list of available PPDs is provided by the IPP <code>CUPS_GET_PPDS</code>
operation.<br>
<br>
You must remove (unlink) the PPD file when you are finished with
it. The PPD filename is stored in a static location that will be
overwritten on the next call to <a href="#cupsGetPPD"><code>cupsGetPPD</code></a>, <a href="#cupsGetPPD2"><code>cupsGetPPD2</code></a>,
or <a href="#cupsGetServerPPD"><code>cupsGetServerPPD</code></a>.

</p>
<h3 class="function"><a id="cupsMarkOptions">cupsMarkOptions</a></h3>
        <p class="description">Mark command-line options in a PPD file.</p>
<p class="code">
int cupsMarkOptions(<a href="#ppd_file_t">ppd_file_t</a> *ppd, int num_options, cups_option_t *options);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>num_options</th>
        <td class="description">Number of options</td></tr>
<tr><th>options</th>
        <td class="description">Options</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">1 if conflicts exist, 0 otherwise</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function maps the IPP &quot;finishings&quot;, &quot;media&quot;, &quot;mirror&quot;,
&quot;multiple-document-handling&quot;, &quot;output-bin&quot;, &quot;print-color-mode&quot;,
&quot;print-quality&quot;, &quot;printer-resolution&quot;, and &quot;sides&quot; attributes to their
corresponding PPD options and choices.</p>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="cupsResolveConflicts">cupsResolveConflicts</a></h3>
        <p class="description">Resolve conflicts in a marked PPD.</p>
<p class="code">
int cupsResolveConflicts(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>option</th>
        <td class="description">Newly selected option or <code>NULL</code> for none</td></tr>
<tr><th>choice</th>
        <td class="description">Newly selected choice or <code>NULL</code> for none</td></tr>
<tr><th>num_options</th>
        <td class="description">Number of additional selected options</td></tr>
<tr><th>options</th>
        <td class="description">Additional selected options</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">1 on success, 0 on failure</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function attempts to resolve any conflicts in a marked PPD, returning
a list of option changes that are required to resolve them.  On input,
&quot;num_options&quot; and &quot;options&quot; contain any pending option changes that have
not yet been marked, while &quot;option&quot; and &quot;choice&quot; contain the most recent
selection which may or may not be in &quot;num_options&quot; or &quot;options&quot;.<br>
<br>
On successful return, &quot;num_options&quot; and &quot;options&quot; are updated to contain
&quot;option&quot; and &quot;choice&quot; along with any changes required to resolve conflicts
specified in the PPD file and 1 is returned.<br>
<br>
If option conflicts cannot be resolved, &quot;num_options&quot; and &quot;options&quot; are not
changed and 0 is returned.<br>
<br>
When resolving conflicts, <code>cupsResolveConflicts</code> does not consider
changes to the current page size (<code>media</code>, <code>PageSize</code>, and
<code>PageRegion</code>) or to the most recent option specified in &quot;option&quot;.
Thus, if the only way to resolve a conflict is to change the page size
or the option the user most recently changed, <code>cupsResolveConflicts</code>
will return 0 to indicate it was unable to resolve the conflicts.<br>
<br>
The <code>cupsResolveConflicts</code> function uses one of two sources of option
constraint information.  The preferred constraint information is defined by
<code>cupsUIConstraints</code> and <code>cupsUIResolver</code> attributes - in this
case, the PPD file provides constraint resolution actions.<br>
<br>
The backup constraint information is defined by the
<code>UIConstraints</code> and <code>NonUIConstraints</code> attributes.  These
constraints are resolved algorithmically by first selecting the default
choice for the conflicting option, then iterating over all possible choices
until a non-conflicting option choice is found.

</p>
<h3 class="function"><a id="ppdCollect">ppdCollect</a></h3>
        <p class="description">Collect all marked options that reside in the specified
section.</p>
<p class="code">
int ppdCollect(<a href="#ppd_file_t">ppd_file_t</a> *ppd, <a href="#ppd_section_t">ppd_section_t</a> section, <a href="#ppd_choice_t">ppd_choice_t</a> ***choices);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>section</th>
        <td class="description">Section to collect</td></tr>
<tr><th>choices</th>
        <td class="description">Pointers to choices</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Number of options marked</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">The choices array should be freed using <code>free</code> when you are
finished with it.</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdCollect2">ppdCollect2</a></h3>
        <p class="description">Collect all marked options that reside in the
specified section and minimum order.</p>
<p class="code">
int ppdCollect2(<a href="#ppd_file_t">ppd_file_t</a> *ppd, <a href="#ppd_section_t">ppd_section_t</a> section, float min_order, <a href="#ppd_choice_t">ppd_choice_t</a> ***choices);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>section</th>
        <td class="description">Section to collect</td></tr>
<tr><th>min_order</th>
        <td class="description">Minimum OrderDependency value</td></tr>
<tr><th>choices</th>
        <td class="description">Pointers to choices</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Number of options marked</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">The choices array should be freed using <code>free</code> when you are
finished with it.

</p>
<h3 class="function"><a id="ppdConflicts">ppdConflicts</a></h3>
        <p class="description">Check to see if there are any conflicts among the
marked option choices.</p>
<p class="code">
int ppdConflicts(<a href="#ppd_file_t">ppd_file_t</a> *ppd);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD to check</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Number of conflicts found</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">The returned value is the same as returned by <a href="#ppdMarkOption"><code>ppdMarkOption</code></a>.</p>
<h3 class="function"><a id="ppdEmit">ppdEmit</a></h3>
        <p class="description">Emit code for marked options to a file.</p>
<p class="code">
int ppdEmit(<a href="#ppd_file_t">ppd_file_t</a> *ppd, FILE *fp, <a href="#ppd_section_t">ppd_section_t</a> section);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>fp</th>
        <td class="description">File to write to</td></tr>
<tr><th>section</th>
        <td class="description">Section to write</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on failure</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdEmitAfterOrder">ppdEmitAfterOrder</a></h3>
        <p class="description">Emit a subset of the code for marked options to a file.</p>
<p class="code">
int ppdEmitAfterOrder(<a href="#ppd_file_t">ppd_file_t</a> *ppd, FILE *fp, <a href="#ppd_section_t">ppd_section_t</a> section, int limit, float min_order);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>fp</th>
        <td class="description">File to write to</td></tr>
<tr><th>section</th>
        <td class="description">Section to write</td></tr>
<tr><th>limit</th>
        <td class="description">Non-zero to use min_order</td></tr>
<tr><th>min_order</th>
        <td class="description">Lowest OrderDependency</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on failure</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">When &quot;limit&quot; is non-zero, this function only emits options whose
OrderDependency value is greater than or equal to &quot;min_order&quot;.<br>
<br>
When &quot;limit&quot; is zero, this function is identical to ppdEmit().

</p>
<h3 class="function"><a id="ppdEmitFd">ppdEmitFd</a></h3>
        <p class="description">Emit code for marked options to a file.</p>
<p class="code">
int ppdEmitFd(<a href="#ppd_file_t">ppd_file_t</a> *ppd, int fd, <a href="#ppd_section_t">ppd_section_t</a> section);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>fd</th>
        <td class="description">File to write to</td></tr>
<tr><th>section</th>
        <td class="description">Section to write</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on failure</p>
<h3 class="function"><a id="ppdEmitJCL">ppdEmitJCL</a></h3>
        <p class="description">Emit code for JCL options to a file.</p>
<p class="code">
int ppdEmitJCL(<a href="#ppd_file_t">ppd_file_t</a> *ppd, FILE *fp, int job_id, const char *user, const char *title);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>fp</th>
        <td class="description">File to write to</td></tr>
<tr><th>job_id</th>
        <td class="description">Job ID</td></tr>
<tr><th>user</th>
        <td class="description">Username</td></tr>
<tr><th>title</th>
        <td class="description">Title</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on failure</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdEmitJCLEnd">ppdEmitJCLEnd</a></h3>
        <p class="description">Emit JCLEnd code to a file.</p>
<p class="code">
int ppdEmitJCLEnd(<a href="#ppd_file_t">ppd_file_t</a> *ppd, FILE *fp);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>fp</th>
        <td class="description">File to write to</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on failure</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdEmitString">ppdEmitString</a></h3>
        <p class="description">Get a string containing the code for marked options.</p>
<p class="code">
char *ppdEmitString(<a href="#ppd_file_t">ppd_file_t</a> *ppd, <a href="#ppd_section_t">ppd_section_t</a> section, float min_order);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>section</th>
        <td class="description">Section to write</td></tr>
<tr><th>min_order</th>
        <td class="description">Lowest OrderDependency</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">String containing option code or <code>NULL</code> if there is no option code</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">When &quot;min_order&quot; is greater than zero, this function only includes options
whose OrderDependency value is greater than or equal to &quot;min_order&quot;.
Otherwise, all options in the specified section are included in the
returned string.<br>
<br>
The return string is allocated on the heap and should be freed using
<code>free</code> when you are done with it.

</p>
<h3 class="function"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span><a id="ppdFindAttr">ppdFindAttr</a></h3>
        <p class="description">Find the first matching attribute.</p>
<p class="code">
<a href="#ppd_attr_t">ppd_attr_t</a> *ppdFindAttr(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name, const char *spec);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>name</th>
        <td class="description">Attribute name</td></tr>
<tr><th>spec</th>
        <td class="description">Specifier string or <code>NULL</code></td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Attribute or <code>NULL</code> if not found</p>
<h3 class="function"><a id="ppdFindChoice">ppdFindChoice</a></h3>
        <p class="description">Return a pointer to an option choice.</p>
<p class="code">
<a href="#ppd_choice_t">ppd_choice_t</a> *ppdFindChoice(<a href="#ppd_option_t">ppd_option_t</a> *o, const char *choice);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>o</th>
        <td class="description">Pointer to option</td></tr>
<tr><th>choice</th>
        <td class="description">Name of choice</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Choice pointer or <code>NULL</code></p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdFindCustomOption">ppdFindCustomOption</a></h3>
        <p class="description">Find a custom option.</p>
<p class="code">
<a href="#ppd_coption_t">ppd_coption_t</a> *ppdFindCustomOption(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *keyword);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>keyword</th>
        <td class="description">Custom option name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Custom option or NULL</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdFindCustomParam">ppdFindCustomParam</a></h3>
        <p class="description">Find a parameter for a custom option.</p>
<p class="code">
<a href="#ppd_cparam_t">ppd_cparam_t</a> *ppdFindCustomParam(<a href="#ppd_coption_t">ppd_coption_t</a> *opt, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>opt</th>
        <td class="description">Custom option</td></tr>
<tr><th>name</th>
        <td class="description">Parameter name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Custom parameter or NULL</p>
<h3 class="function"><a id="ppdFindMarkedChoice">ppdFindMarkedChoice</a></h3>
        <p class="description">Return the marked choice for the specified option.</p>
<p class="code">
<a href="#ppd_choice_t">ppd_choice_t</a> *ppdFindMarkedChoice(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>option</th>
        <td class="description">Keyword/option name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Pointer to choice or <code>NULL</code></p>
<h3 class="function"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span><a id="ppdFindNextAttr">ppdFindNextAttr</a></h3>
        <p class="description">Find the next matching attribute.</p>
<p class="code">
<a href="#ppd_attr_t">ppd_attr_t</a> *ppdFindNextAttr(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name, const char *spec);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>name</th>
        <td class="description">Attribute name</td></tr>
<tr><th>spec</th>
        <td class="description">Specifier string or <code>NULL</code></td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Attribute or <code>NULL</code> if not found</p>
<h3 class="function"><a id="ppdFindOption">ppdFindOption</a></h3>
        <p class="description">Return a pointer to the specified option.</p>
<p class="code">
<a href="#ppd_option_t">ppd_option_t</a> *ppdFindOption(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>option</th>
        <td class="description">Option/Keyword name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Pointer to option or <code>NULL</code></p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdFirstCustomParam">ppdFirstCustomParam</a></h3>
        <p class="description">Return the first parameter for a custom option.</p>
<p class="code">
<a href="#ppd_cparam_t">ppd_cparam_t</a> *ppdFirstCustomParam(<a href="#ppd_coption_t">ppd_coption_t</a> *opt);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>opt</th>
        <td class="description">Custom option</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Custom parameter or NULL</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdFirstOption">ppdFirstOption</a></h3>
        <p class="description">Return the first option in the PPD file.</p>
<p class="code">
<a href="#ppd_option_t">ppd_option_t</a> *ppdFirstOption(<a href="#ppd_file_t">ppd_file_t</a> *ppd);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">First option or <code>NULL</code></p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">Options are returned from all groups in ascending alphanumeric order.

</p>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="ppdInstallableConflict">ppdInstallableConflict</a></h3>
        <p class="description">Test whether an option choice conflicts with
an installable option.</p>
<p class="code">
int ppdInstallableConflict(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option, const char *choice);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>option</th>
        <td class="description">Option</td></tr>
<tr><th>choice</th>
        <td class="description">Choice</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">1 if conflicting, 0 if not conflicting</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function tests whether a particular option choice is available based
on constraints against options in the &quot;InstallableOptions&quot; group.

</p>
<h3 class="function"><a id="ppdIsMarked">ppdIsMarked</a></h3>
        <p class="description">Check to see if an option is marked.</p>
<p class="code">
int ppdIsMarked(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option, const char *choice);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file data</td></tr>
<tr><th>option</th>
        <td class="description">Option/Keyword name</td></tr>
<tr><th>choice</th>
        <td class="description">Choice name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Non-zero if option is marked</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdLocalize">ppdLocalize</a></h3>
        <p class="description">Localize the PPD file to the current locale.</p>
<p class="code">
int ppdLocalize(<a href="#ppd_file_t">ppd_file_t</a> *ppd);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">0 on success, -1 on error</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">All groups, options, and choices are localized, as are ICC profile
descriptions, printer presets, and custom option parameters.  Each
localized string uses the UTF-8 character encoding.

</p>
<h3 class="function"><a id="ppdLocalizeAttr">ppdLocalizeAttr</a></h3>
        <p class="description">Localize an attribute.</p>
<p class="code">
<a href="#ppd_attr_t">ppd_attr_t</a> *ppdLocalizeAttr(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *keyword, const char *spec);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>keyword</th>
        <td class="description">Main keyword</td></tr>
<tr><th>spec</th>
        <td class="description">Option keyword or <code>NULL</code> for none</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Localized attribute or <code>NULL</code> if none exists</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function uses the current locale to find the localized attribute for
the given main and option keywords.  If no localized version of the
attribute exists for the current locale, the unlocalized version is returned.</p>
<h3 class="function"><span class="info">&#160;CUPS 1.3/macOS 10.5&#160;</span><a id="ppdLocalizeIPPReason">ppdLocalizeIPPReason</a></h3>
        <p class="description">Get the localized version of a cupsIPPReason
attribute.</p>
<p class="code">
const char *ppdLocalizeIPPReason(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *reason, const char *scheme, char *buffer, size_t bufsize);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>reason</th>
        <td class="description">IPP reason keyword to look up</td></tr>
<tr><th>scheme</th>
        <td class="description">URI scheme or NULL for text</td></tr>
<tr><th>buffer</th>
        <td class="description">Value buffer</td></tr>
<tr><th>bufsize</th>
        <td class="description">Size of value buffer</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Value or NULL if not found</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function uses the current locale to find the corresponding reason
text or URI from the attribute value. If &quot;scheme&quot; is NULL or &quot;text&quot;,
the returned value contains human-readable (UTF-8) text from the translation
string or attribute value. Otherwise the corresponding URI is returned.<br>
<br>
If no value of the requested scheme can be found, NULL is returned.

</p>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="ppdLocalizeMarkerName">ppdLocalizeMarkerName</a></h3>
        <p class="description">Get the localized version of a marker-names
attribute value.</p>
<p class="code">
const char *ppdLocalizeMarkerName(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>name</th>
        <td class="description">Marker name to look up</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Value or <code>NULL</code> if not found</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function uses the current locale to find the corresponding name
text from the attribute value. If no localized text for the requested
name can be found, <code>NULL</code> is returned.

</p>
<h3 class="function"><a id="ppdMarkDefaults">ppdMarkDefaults</a></h3>
        <p class="description">Mark all default options in the PPD file.</p>
<p class="code">
void ppdMarkDefaults(<a href="#ppd_file_t">ppd_file_t</a> *ppd);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
</tbody></table>
<h3 class="function"><a id="ppdMarkOption">ppdMarkOption</a></h3>
        <p class="description">Mark an option in a PPD file and return the number of
conflicts.</p>
<p class="code">
int ppdMarkOption(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *option, const char *choice);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>option</th>
        <td class="description">Keyword</td></tr>
<tr><th>choice</th>
        <td class="description">Option name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Number of conflicts</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdNextCustomParam">ppdNextCustomParam</a></h3>
        <p class="description">Return the next parameter for a custom option.</p>
<p class="code">
<a href="#ppd_cparam_t">ppd_cparam_t</a> *ppdNextCustomParam(<a href="#ppd_coption_t">ppd_coption_t</a> *opt);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>opt</th>
        <td class="description">Custom option</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Custom parameter or NULL</p>
<h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppdNextOption">ppdNextOption</a></h3>
        <p class="description">Return the next option in the PPD file.</p>
<p class="code">
<a href="#ppd_option_t">ppd_option_t</a> *ppdNextOption(<a href="#ppd_file_t">ppd_file_t</a> *ppd);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Next option or <code>NULL</code></p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">Options are returned from all groups in ascending alphanumeric order.

</p>
<h3 class="function"><a id="ppdPageLength">ppdPageLength</a></h3>
        <p class="description">Get the page length for the given size.</p>
<p class="code">
float ppdPageLength(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file</td></tr>
<tr><th>name</th>
        <td class="description">Size name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Length of page in points or 0.0</p>
<h3 class="function"><a id="ppdPageSize">ppdPageSize</a></h3>
        <p class="description">Get the page size record for the named size.</p>
<p class="code">
<a href="#ppd_size_t">ppd_size_t</a> *ppdPageSize(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>name</th>
        <td class="description">Size name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Size record for page or NULL</p>
<h3 class="function"><span class="info">&#160;CUPS 1.4/macOS 10.6&#160;</span><a id="ppdPageSizeLimits">ppdPageSizeLimits</a></h3>
        <p class="description">Return the custom page size limits.</p>
<p class="code">
int ppdPageSizeLimits(<a href="#ppd_file_t">ppd_file_t</a> *ppd, <a href="#ppd_size_t">ppd_size_t</a> *minimum, <a href="#ppd_size_t">ppd_size_t</a> *maximum);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>minimum</th>
        <td class="description">Minimum custom size</td></tr>
<tr><th>maximum</th>
        <td class="description">Maximum custom size</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">1 if custom sizes are supported, 0 otherwise</p>
<h4 class="discussion">Discussion</h4>
        <p class="discussion">This function returns the minimum and maximum custom page sizes and printable
areas based on the currently-marked (selected) options.<br>
<br>
If the specified PPD file does not support custom page sizes, both
&quot;minimum&quot; and &quot;maximum&quot; are filled with zeroes.

</p>
<h3 class="function"><a id="ppdPageWidth">ppdPageWidth</a></h3>
        <p class="description">Get the page width for the given size.</p>
<p class="code">
float ppdPageWidth(<a href="#ppd_file_t">ppd_file_t</a> *ppd, const char *name);</p>
<h4 class="parameters">Parameters</h4>
<table class="list"><tbody>
<tr><th>ppd</th>
        <td class="description">PPD file record</td></tr>
<tr><th>name</th>
        <td class="description">Size name</td></tr>
</tbody></table>
<h4 class="returnvalue">Return Value</h4>
        <p class="description">Width of page in points or 0.0</p>
      <h2 class="title"><a id="TYPES">Data Types</a></h2>
      <h3 class="typedef"><a id="ppd_attr_t"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span>ppd_attr_t</a></h3>
        <p class="description">PPD Attribute Structure </p>
      <p class="code">
typedef struct <a href="#ppd_attr_s">ppd_attr_s</a> ppd_attr_t;
</p>
      <h3 class="typedef"><a id="ppd_choice_t">ppd_choice_t</a></h3>
        <p class="description">Option choices</p>
      <p class="code">
typedef struct <a href="#ppd_choice_s">ppd_choice_s</a> ppd_choice_t;
</p>
      <h3 class="typedef"><a id="ppd_conform_t"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span>ppd_conform_t</a></h3>
        <p class="description">Conformance Levels </p>
      <p class="code">
typedef enum <a href="#ppd_conform_e">ppd_conform_e</a> ppd_conform_t;
</p>
      <h3 class="typedef"><a id="ppd_const_t">ppd_const_t</a></h3>
        <p class="description">Constraints</p>
      <p class="code">
typedef struct <a href="#ppd_const_s">ppd_const_s</a> ppd_const_t;
</p>
      <h3 class="typedef"><a id="ppd_coption_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>ppd_coption_t</a></h3>
        <p class="description">Custom Option </p>
      <p class="code">
typedef struct <a href="#ppd_coption_s">ppd_coption_s</a> ppd_coption_t;
</p>
      <h3 class="typedef"><a id="ppd_cparam_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>ppd_cparam_t</a></h3>
        <p class="description">Custom Parameter </p>
      <p class="code">
typedef struct <a href="#ppd_cparam_s">ppd_cparam_s</a> ppd_cparam_t;
</p>
      <h3 class="typedef"><a id="ppd_cplimit_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>ppd_cplimit_t</a></h3>
        <p class="description">Custom Parameter Limit </p>
      <p class="code">
typedef union <a href="#ppd_cplimit_u">ppd_cplimit_u</a> ppd_cplimit_t;
</p>
      <h3 class="typedef"><a id="ppd_cptype_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>ppd_cptype_t</a></h3>
        <p class="description">Custom Parameter Type </p>
      <p class="code">
typedef enum ppd_cptype_e ppd_cptype_t;
</p>
      <h3 class="typedef"><a id="ppd_cpvalue_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>ppd_cpvalue_t</a></h3>
        <p class="description">Custom Parameter Value </p>
      <p class="code">
typedef union <a href="#ppd_cpvalue_u">ppd_cpvalue_u</a> ppd_cpvalue_t;
</p>
      <h3 class="typedef"><a id="ppd_cs_t">ppd_cs_t</a></h3>
        <p class="description">Colorspaces</p>
      <p class="code">
typedef enum <a href="#ppd_cs_e">ppd_cs_e</a> ppd_cs_t;
</p>
      <h3 class="typedef"><a id="ppd_emul_t">ppd_emul_t</a></h3>
        <p class="description">Emulators</p>
      <p class="code">
typedef struct <a href="#ppd_emul_s">ppd_emul_s</a> ppd_emul_t;
</p>
      <h3 class="typedef"><a id="ppd_file_t">ppd_file_t</a></h3>
        <p class="description">PPD File</p>
      <p class="code">
typedef struct <a href="#ppd_file_s">ppd_file_s</a> ppd_file_t;
</p>
      <h3 class="typedef"><a id="ppd_group_t">ppd_group_t</a></h3>
        <p class="description">Groups</p>
      <p class="code">
typedef struct <a href="#ppd_group_s">ppd_group_s</a> ppd_group_t;
</p>
      <h3 class="typedef"><a id="ppd_option_t">ppd_option_t</a></h3>
        <p class="description">Options</p>
      <p class="code">
typedef struct <a href="#ppd_option_s">ppd_option_s</a> ppd_option_t;
</p>
      <h3 class="typedef"><a id="ppd_profile_t">ppd_profile_t</a></h3>
        <p class="description">sRGB Color Profiles</p>
      <p class="code">
typedef struct <a href="#ppd_profile_s">ppd_profile_s</a> ppd_profile_t;
</p>
      <h3 class="typedef"><a id="ppd_section_t">ppd_section_t</a></h3>
        <p class="description">Order dependency sections</p>
      <p class="code">
typedef enum <a href="#ppd_section_e">ppd_section_e</a> ppd_section_t;
</p>
      <h3 class="typedef"><a id="ppd_size_t">ppd_size_t</a></h3>
        <p class="description">Page Sizes</p>
      <p class="code">
typedef struct <a href="#ppd_size_s">ppd_size_s</a> ppd_size_t;
</p>
      <h3 class="typedef"><a id="ppd_status_t"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span>ppd_status_t</a></h3>
        <p class="description">Status Codes </p>
      <p class="code">
typedef enum <a href="#ppd_status_e">ppd_status_e</a> ppd_status_t;
</p>
      <h3 class="typedef"><a id="ppd_ui_t">ppd_ui_t</a></h3>
        <p class="description">UI Types</p>
      <p class="code">
typedef enum <a href="#ppd_ui_e">ppd_ui_e</a> ppd_ui_t;
</p>
      <h2 class="title"><a id="STRUCTURES">Structures</a></h2>
<h3 class="struct"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span><a id="ppd_attr_s">ppd_attr_s</a></h3>
        <p class="description">PPD Attribute Structure </p>
<p class="code">struct ppd_attr_s {<br>
&#160;&#160;&#160;&#160;char name[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char spec[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char text[PPD_MAX_TEXT];<br>
&#160;&#160;&#160;&#160;char *value;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>name[PPD_MAX_NAME] </th>
        <td class="description">Name of attribute (cupsXYZ)</td></tr>
<tr><th>spec[PPD_MAX_NAME] </th>
        <td class="description">Specifier string, if any</td></tr>
<tr><th>text[PPD_MAX_TEXT] </th>
        <td class="description">Human-readable text, if any</td></tr>
<tr><th>value </th>
        <td class="description">Value string</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_choice_s">ppd_choice_s</a></h3>
        <p class="description">Option choices</p>
<p class="code">struct ppd_choice_s {<br>
&#160;&#160;&#160;&#160;char choice[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char *code;<br>
&#160;&#160;&#160;&#160;char marked;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_option_t">ppd_option_t</a> *option;<br>
&#160;&#160;&#160;&#160;char text[PPD_MAX_TEXT];<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>choice[PPD_MAX_NAME] </th>
        <td class="description">Computer-readable option name</td></tr>
<tr><th>code </th>
        <td class="description">Code to send for this option</td></tr>
<tr><th>marked </th>
        <td class="description">0 if not selected, 1 otherwise</td></tr>
<tr><th>option </th>
        <td class="description">Pointer to parent option structure</td></tr>
<tr><th>text[PPD_MAX_TEXT] </th>
        <td class="description">Human-readable option name</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_const_s">ppd_const_s</a></h3>
        <p class="description">Constraints</p>
<p class="code">struct ppd_const_s {<br>
&#160;&#160;&#160;&#160;char choice1[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char choice2[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char option1[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char option2[PPD_MAX_NAME];<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>choice1[PPD_MAX_NAME] </th>
        <td class="description">First option/choice (blank for all)</td></tr>
<tr><th>choice2[PPD_MAX_NAME] </th>
        <td class="description">Second option/choice (blank for all)</td></tr>
<tr><th>option1[PPD_MAX_NAME] </th>
        <td class="description">First keyword</td></tr>
<tr><th>option2[PPD_MAX_NAME] </th>
        <td class="description">Second keyword</td></tr>
</tbody></table>
<h3 class="struct"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppd_coption_s">ppd_coption_s</a></h3>
        <p class="description">Custom Option </p>
<p class="code">struct ppd_coption_s {<br>
&#160;&#160;&#160;&#160;char keyword[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;int marked;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_option_t">ppd_option_t</a> *option;<br>
&#160;&#160;&#160;&#160;cups_array_t *params;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>keyword[PPD_MAX_NAME] </th>
        <td class="description">Name of option that is being extended...</td></tr>
<tr><th>marked </th>
        <td class="description">Extended option is marked</td></tr>
<tr><th>option </th>
        <td class="description">Option that is being extended...</td></tr>
<tr><th>params </th>
        <td class="description">Parameters</td></tr>
</tbody></table>
<h3 class="struct"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppd_cparam_s">ppd_cparam_s</a></h3>
        <p class="description">Custom Parameter </p>
<p class="code">struct ppd_cparam_s {<br>
&#160;&#160;&#160;&#160;<a href="#ppd_cpvalue_t">ppd_cpvalue_t</a> current;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_cplimit_t">ppd_cplimit_t</a> minimum, maximum;<br>
&#160;&#160;&#160;&#160;char name[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;int order;<br>
&#160;&#160;&#160;&#160;char text[PPD_MAX_TEXT];<br>
&#160;&#160;&#160;&#160;<a href="#ppd_cptype_t">ppd_cptype_t</a> type;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>current </th>
        <td class="description">Current value</td></tr>
<tr><th>maximum </th>
        <td class="description">Maximum value</td></tr>
<tr><th>name[PPD_MAX_NAME] </th>
        <td class="description">Parameter name</td></tr>
<tr><th>order </th>
        <td class="description">Order (0 to N)</td></tr>
<tr><th>text[PPD_MAX_TEXT] </th>
        <td class="description">Human-readable text</td></tr>
<tr><th>type </th>
        <td class="description">Parameter type</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_emul_s">ppd_emul_s</a></h3>
        <p class="description">Emulators</p>
<p class="code">struct ppd_emul_s {<br>
&#160;&#160;&#160;&#160;char name[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char *start;<br>
&#160;&#160;&#160;&#160;char *stop;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>name[PPD_MAX_NAME] </th>
        <td class="description">Emulator name</td></tr>
<tr><th>start </th>
        <td class="description">Code to switch to this emulation</td></tr>
<tr><th>stop </th>
        <td class="description">Code to stop this emulation</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_file_s">ppd_file_s</a></h3>
        <p class="description">PPD File</p>
<p class="code">struct ppd_file_s {<br>
&#160;&#160;&#160;&#160;int accurate_screens;<br>
&#160;&#160;&#160;&#160;int color_device;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_cs_t">ppd_cs_t</a> colorspace;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_const_t">ppd_const_t</a> *consts;<br>
&#160;&#160;&#160;&#160;int contone_only;<br>
&#160;&#160;&#160;&#160;float custom_margins[4];<br>
&#160;&#160;&#160;&#160;float custom_max[2];<br>
&#160;&#160;&#160;&#160;float custom_min[2];<br>
&#160;&#160;&#160;&#160;<a href="#ppd_emul_t">ppd_emul_t</a> *emulations;<br>
&#160;&#160;&#160;&#160;char **filters;<br>
&#160;&#160;&#160;&#160;int flip_duplex;<br>
&#160;&#160;&#160;&#160;char **fonts;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_group_t">ppd_group_t</a> *groups;<br>
&#160;&#160;&#160;&#160;char *jcl_begin;<br>
&#160;&#160;&#160;&#160;char *jcl_end;<br>
&#160;&#160;&#160;&#160;char *jcl_ps;<br>
&#160;&#160;&#160;&#160;int landscape;<br>
&#160;&#160;&#160;&#160;char *lang_encoding;<br>
&#160;&#160;&#160;&#160;char *lang_version;<br>
&#160;&#160;&#160;&#160;int language_level;<br>
&#160;&#160;&#160;&#160;int manual_copies;<br>
&#160;&#160;&#160;&#160;char *manufacturer;<br>
&#160;&#160;&#160;&#160;int model_number;<br>
&#160;&#160;&#160;&#160;char *modelname;<br>
&#160;&#160;&#160;&#160;char *nickname;<br>
&#160;&#160;&#160;&#160;int num_consts;<br>
&#160;&#160;&#160;&#160;int num_emulations;<br>
&#160;&#160;&#160;&#160;int num_filters;<br>
&#160;&#160;&#160;&#160;int num_fonts;<br>
&#160;&#160;&#160;&#160;int num_groups;<br>
&#160;&#160;&#160;&#160;int num_profiles;<br>
&#160;&#160;&#160;&#160;int num_sizes;<br>
&#160;&#160;&#160;&#160;char *patches;<br>
&#160;&#160;&#160;&#160;char *pcfilename;<br>
&#160;&#160;&#160;&#160;char *product;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_profile_t">ppd_profile_t</a> *profiles;<br>
&#160;&#160;&#160;&#160;char *protocols;<br>
&#160;&#160;&#160;&#160;char *shortnickname;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_size_t">ppd_size_t</a> *sizes;<br>
&#160;&#160;&#160;&#160;int throughput;<br>
&#160;&#160;&#160;&#160;char *ttrasterizer;<br>
&#160;&#160;&#160;&#160;int variable_sizes;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>accurate_screens </th>
        <td class="description">1 = supports accurate screens, 0 = not</td></tr>
<tr><th>color_device </th>
        <td class="description">1 = color device, 0 = grayscale</td></tr>
<tr><th>colorspace </th>
        <td class="description">Default colorspace</td></tr>
<tr><th>consts </th>
        <td class="description">UI/Non-UI constraints</td></tr>
<tr><th>contone_only </th>
        <td class="description">1 = continuous tone only, 0 = not</td></tr>
<tr><th>custom_margins[4] </th>
        <td class="description">Margins around page</td></tr>
<tr><th>custom_max[2] </th>
        <td class="description">Maximum variable page size</td></tr>
<tr><th>custom_min[2] </th>
        <td class="description">Minimum variable page size</td></tr>
<tr><th>emulations </th>
        <td class="description">Emulations and the code to invoke them</td></tr>
<tr><th>filters </th>
        <td class="description">Filter strings...</td></tr>
<tr><th>flip_duplex <span class="info">&#160;DEPRECATED&#160;</span></th>
        <td class="description">1 = Flip page for back sides </td></tr>
<tr><th>fonts </th>
        <td class="description">Pre-loaded fonts</td></tr>
<tr><th>groups </th>
        <td class="description">UI groups</td></tr>
<tr><th>jcl_begin </th>
        <td class="description">Start JCL commands</td></tr>
<tr><th>jcl_end </th>
        <td class="description">End JCL commands</td></tr>
<tr><th>jcl_ps </th>
        <td class="description">Enter PostScript interpreter</td></tr>
<tr><th>landscape </th>
        <td class="description">-90 or 90</td></tr>
<tr><th>lang_encoding </th>
        <td class="description">Language encoding</td></tr>
<tr><th>lang_version </th>
        <td class="description">Language version (English, Spanish, etc.)</td></tr>
<tr><th>language_level </th>
        <td class="description">Language level of device</td></tr>
<tr><th>manual_copies </th>
        <td class="description">1 = Copies done manually, 0 = hardware</td></tr>
<tr><th>manufacturer </th>
        <td class="description">Manufacturer name</td></tr>
<tr><th>model_number </th>
        <td class="description">Device-specific model number</td></tr>
<tr><th>modelname </th>
        <td class="description">Model name (general)</td></tr>
<tr><th>nickname </th>
        <td class="description">Nickname (specific)</td></tr>
<tr><th>num_consts </th>
        <td class="description">Number of UI/Non-UI constraints</td></tr>
<tr><th>num_emulations </th>
        <td class="description">Number of emulations supported</td></tr>
<tr><th>num_filters </th>
        <td class="description">Number of filters</td></tr>
<tr><th>num_fonts </th>
        <td class="description">Number of pre-loaded fonts</td></tr>
<tr><th>num_groups </th>
        <td class="description">Number of UI groups</td></tr>
<tr><th>num_profiles <span class="info">&#160;DEPRECATED&#160;</span></th>
        <td class="description">Number of sRGB color profiles </td></tr>
<tr><th>num_sizes </th>
        <td class="description">Number of page sizes</td></tr>
<tr><th>patches </th>
        <td class="description">Patch commands to be sent to printer</td></tr>
<tr><th>pcfilename <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></th>
        <td class="description">PCFileName string </td></tr>
<tr><th>product </th>
        <td class="description">Product name (from PS RIP/interpreter)</td></tr>
<tr><th>profiles <span class="info">&#160;DEPRECATED&#160;</span></th>
        <td class="description">sRGB color profiles </td></tr>
<tr><th>protocols <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></th>
        <td class="description">Protocols (BCP, TBCP) string </td></tr>
<tr><th>shortnickname </th>
        <td class="description">Short version of nickname</td></tr>
<tr><th>sizes </th>
        <td class="description">Page sizes</td></tr>
<tr><th>throughput </th>
        <td class="description">Pages per minute</td></tr>
<tr><th>ttrasterizer </th>
        <td class="description">Truetype rasterizer</td></tr>
<tr><th>variable_sizes </th>
        <td class="description">1 = supports variable sizes, 0 = doesn't</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_group_s">ppd_group_s</a></h3>
        <p class="description">Groups</p>
<p class="code">struct ppd_group_s {<br>
&#160;&#160;&#160;&#160;char text[PPD_MAX_TEXT - PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char name[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;int num_options;<br>
&#160;&#160;&#160;&#160;int num_subgroups;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_option_t">ppd_option_t</a> *options;<br>
&#160;&#160;&#160;&#160;struct <a href="#ppd_group_s">ppd_group_s</a> *subgroups;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>PPD_MAX_NAME] </th>
        <td class="description">Human-readable group name</td></tr>
<tr><th>name[PPD_MAX_NAME] <span class="info">&#160;CUPS 1.1.18/macOS 10.3&#160;</span></th>
        <td class="description">Group name </td></tr>
<tr><th>num_options </th>
        <td class="description">Number of options</td></tr>
<tr><th>num_subgroups </th>
        <td class="description">Number of sub-groups</td></tr>
<tr><th>options </th>
        <td class="description">Options</td></tr>
<tr><th>subgroups </th>
        <td class="description">Sub-groups (max depth = 1)</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_option_s">ppd_option_s</a></h3>
        <p class="description">Options</p>
<p class="code">struct ppd_option_s {<br>
&#160;&#160;&#160;&#160;<a href="#ppd_choice_t">ppd_choice_t</a> *choices;<br>
&#160;&#160;&#160;&#160;char conflicted;<br>
&#160;&#160;&#160;&#160;char defchoice[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char keyword[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;int num_choices;<br>
&#160;&#160;&#160;&#160;float order;<br>
&#160;&#160;&#160;&#160;<a href="#ppd_section_t">ppd_section_t</a> section;<br>
&#160;&#160;&#160;&#160;char text[PPD_MAX_TEXT];<br>
&#160;&#160;&#160;&#160;<a href="#ppd_ui_t">ppd_ui_t</a> ui;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>choices </th>
        <td class="description">Option choices</td></tr>
<tr><th>conflicted </th>
        <td class="description">0 if no conflicts exist, 1 otherwise</td></tr>
<tr><th>defchoice[PPD_MAX_NAME] </th>
        <td class="description">Default option choice</td></tr>
<tr><th>keyword[PPD_MAX_NAME] </th>
        <td class="description">Option keyword name (&quot;PageSize&quot;, etc.)</td></tr>
<tr><th>num_choices </th>
        <td class="description">Number of option choices</td></tr>
<tr><th>order </th>
        <td class="description">Order number</td></tr>
<tr><th>section </th>
        <td class="description">Section for command</td></tr>
<tr><th>text[PPD_MAX_TEXT] </th>
        <td class="description">Human-readable text</td></tr>
<tr><th>ui </th>
        <td class="description">Type of UI option</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_profile_s">ppd_profile_s</a></h3>
        <p class="description">sRGB Color Profiles</p>
<p class="code">struct ppd_profile_s {<br>
&#160;&#160;&#160;&#160;float density;<br>
&#160;&#160;&#160;&#160;float gamma;<br>
&#160;&#160;&#160;&#160;float matrix[3][3];<br>
&#160;&#160;&#160;&#160;char media_type[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;char resolution[PPD_MAX_NAME];<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>density </th>
        <td class="description">Ink density to use</td></tr>
<tr><th>gamma </th>
        <td class="description">Gamma correction to use</td></tr>
<tr><th>matrix[3][3] </th>
        <td class="description">Transform matrix</td></tr>
<tr><th>media_type[PPD_MAX_NAME] </th>
        <td class="description">Media type or &quot;-&quot;</td></tr>
<tr><th>resolution[PPD_MAX_NAME] </th>
        <td class="description">Resolution or &quot;-&quot;</td></tr>
</tbody></table>
<h3 class="struct"><a id="ppd_size_s">ppd_size_s</a></h3>
        <p class="description">Page Sizes</p>
<p class="code">struct ppd_size_s {<br>
&#160;&#160;&#160;&#160;float bottom;<br>
&#160;&#160;&#160;&#160;float left;<br>
&#160;&#160;&#160;&#160;float length;<br>
&#160;&#160;&#160;&#160;int marked;<br>
&#160;&#160;&#160;&#160;char name[PPD_MAX_NAME];<br>
&#160;&#160;&#160;&#160;float right;<br>
&#160;&#160;&#160;&#160;float top;<br>
&#160;&#160;&#160;&#160;float width;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>bottom </th>
        <td class="description">Bottom printable margin in points</td></tr>
<tr><th>left </th>
        <td class="description">Left printable margin in points</td></tr>
<tr><th>length </th>
        <td class="description">Length of media in points</td></tr>
<tr><th>marked </th>
        <td class="description">Page size selected?</td></tr>
<tr><th>name[PPD_MAX_NAME] </th>
        <td class="description">Media size option</td></tr>
<tr><th>right </th>
        <td class="description">Right printable margin in points</td></tr>
<tr><th>top </th>
        <td class="description">Top printable margin in points</td></tr>
<tr><th>width </th>
        <td class="description">Width of media in points</td></tr>
</tbody></table>
      <h2 class="title"><a id="UNIONS">Unions</a></h2>
<h3 class="union"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppd_cplimit_u">ppd_cplimit_u</a></h3>
        <p class="description">Custom Parameter Limit </p>
<p class="code">union ppd_cplimit_u {<br>
&#160;&#160;&#160;&#160;float custom_curve;<br>
&#160;&#160;&#160;&#160;int custom_int;<br>
&#160;&#160;&#160;&#160;float custom_invcurve;<br>
&#160;&#160;&#160;&#160;int custom_passcode;<br>
&#160;&#160;&#160;&#160;int custom_password;<br>
&#160;&#160;&#160;&#160;float custom_points;<br>
&#160;&#160;&#160;&#160;float custom_real;<br>
&#160;&#160;&#160;&#160;int custom_string;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>custom_curve </th>
        <td class="description">Gamma value</td></tr>
<tr><th>custom_int </th>
        <td class="description">Integer value</td></tr>
<tr><th>custom_invcurve </th>
        <td class="description">Gamma value</td></tr>
<tr><th>custom_passcode </th>
        <td class="description">Passcode length</td></tr>
<tr><th>custom_password </th>
        <td class="description">Password length</td></tr>
<tr><th>custom_points </th>
        <td class="description">Measurement value</td></tr>
<tr><th>custom_real </th>
        <td class="description">Real value</td></tr>
<tr><th>custom_string </th>
        <td class="description">String length</td></tr>
</tbody></table>
<h3 class="union"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="ppd_cpvalue_u">ppd_cpvalue_u</a></h3>
        <p class="description">Custom Parameter Value </p>
<p class="code">union ppd_cpvalue_u {<br>
&#160;&#160;&#160;&#160;float custom_curve;<br>
&#160;&#160;&#160;&#160;int custom_int;<br>
&#160;&#160;&#160;&#160;float custom_invcurve;<br>
&#160;&#160;&#160;&#160;char *custom_passcode;<br>
&#160;&#160;&#160;&#160;char *custom_password;<br>
&#160;&#160;&#160;&#160;float custom_points;<br>
&#160;&#160;&#160;&#160;float custom_real;<br>
&#160;&#160;&#160;&#160;char *custom_string;<br>
};</p>
<h4 class="members">Members</h4>
<table class="list"><tbody>
<tr><th>custom_curve </th>
        <td class="description">Gamma value</td></tr>
<tr><th>custom_int </th>
        <td class="description">Integer value</td></tr>
<tr><th>custom_invcurve </th>
        <td class="description">Gamma value</td></tr>
<tr><th>custom_passcode </th>
        <td class="description">Passcode value</td></tr>
<tr><th>custom_password </th>
        <td class="description">Password value</td></tr>
<tr><th>custom_points </th>
        <td class="description">Measurement value</td></tr>
<tr><th>custom_real </th>
        <td class="description">Real value</td></tr>
<tr><th>custom_string </th>
        <td class="description">String value</td></tr>
</tbody></table>
      <h2 class="title"><a id="ENUMERATIONS">Constants</a></h2>
      <h3 class="enumeration"><a id="ppd_conform_e"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span>ppd_conform_e</a></h3>
        <p class="description">Conformance Levels </p>
      <h4 class="constants">Constants</h4>
      <table class="list"><tbody>
        <tr><th>PPD_CONFORM_RELAXED </th>        <td class="description">Relax whitespace and control char</td></tr>
        <tr><th>PPD_CONFORM_STRICT </th>        <td class="description">Require strict conformance</td></tr>
</tbody></table>
      <h3 class="enumeration"><a id="ppd_cs_e">ppd_cs_e</a></h3>
        <p class="description">Colorspaces</p>
      <h4 class="constants">Constants</h4>
      <table class="list"><tbody>
        <tr><th>PPD_CS_CMY </th>        <td class="description">CMY colorspace</td></tr>
        <tr><th>PPD_CS_CMYK </th>        <td class="description">CMYK colorspace</td></tr>
        <tr><th>PPD_CS_GRAY </th>        <td class="description">Grayscale colorspace</td></tr>
        <tr><th>PPD_CS_N </th>        <td class="description">DeviceN colorspace</td></tr>
        <tr><th>PPD_CS_RGB </th>        <td class="description">RGB colorspace</td></tr>
        <tr><th>PPD_CS_RGBK </th>        <td class="description">RGBK (K = gray) colorspace</td></tr>
</tbody></table>
      <h3 class="enumeration"><a id="ppd_section_e">ppd_section_e</a></h3>
        <p class="description">Order dependency sections</p>
      <h4 class="constants">Constants</h4>
      <table class="list"><tbody>
        <tr><th>PPD_ORDER_ANY </th>        <td class="description">Option code can be anywhere in the file</td></tr>
        <tr><th>PPD_ORDER_DOCUMENT </th>        <td class="description">... must be in the DocumentSetup section</td></tr>
        <tr><th>PPD_ORDER_EXIT </th>        <td class="description">... must be sent prior to the document</td></tr>
        <tr><th>PPD_ORDER_JCL </th>        <td class="description">... must be sent as a JCL command</td></tr>
        <tr><th>PPD_ORDER_PAGE </th>        <td class="description">... must be in the PageSetup section</td></tr>
        <tr><th>PPD_ORDER_PROLOG </th>        <td class="description">... must be in the Prolog section</td></tr>
</tbody></table>
      <h3 class="enumeration"><a id="ppd_status_e"><span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span>ppd_status_e</a></h3>
        <p class="description">Status Codes </p>
      <h4 class="constants">Constants</h4>
      <table class="list"><tbody>
        <tr><th>PPD_ALLOC_ERROR </th>        <td class="description">Memory allocation error</td></tr>
        <tr><th>PPD_BAD_CUSTOM_PARAM </th>        <td class="description">Bad custom parameter</td></tr>
        <tr><th>PPD_BAD_OPEN_GROUP </th>        <td class="description">Bad OpenGroup</td></tr>
        <tr><th>PPD_BAD_OPEN_UI </th>        <td class="description">Bad OpenUI/JCLOpenUI</td></tr>
        <tr><th>PPD_BAD_ORDER_DEPENDENCY </th>        <td class="description">Bad OrderDependency</td></tr>
        <tr><th>PPD_BAD_UI_CONSTRAINTS </th>        <td class="description">Bad UIConstraints</td></tr>
        <tr><th>PPD_BAD_VALUE </th>        <td class="description">Bad value string</td></tr>
        <tr><th>PPD_FILE_OPEN_ERROR </th>        <td class="description">Unable to open PPD file</td></tr>
        <tr><th>PPD_ILLEGAL_CHARACTER </th>        <td class="description">Illegal control character</td></tr>
        <tr><th>PPD_ILLEGAL_MAIN_KEYWORD </th>        <td class="description">Illegal main keyword string</td></tr>
        <tr><th>PPD_ILLEGAL_OPTION_KEYWORD </th>        <td class="description">Illegal option keyword string</td></tr>
        <tr><th>PPD_ILLEGAL_TRANSLATION </th>        <td class="description">Illegal translation string</td></tr>
        <tr><th>PPD_ILLEGAL_WHITESPACE </th>        <td class="description">Illegal whitespace character</td></tr>
        <tr><th>PPD_INTERNAL_ERROR </th>        <td class="description">Internal error</td></tr>
        <tr><th>PPD_LINE_TOO_LONG </th>        <td class="description">Line longer than 255 chars</td></tr>
        <tr><th>PPD_MISSING_ASTERISK </th>        <td class="description">Missing asterisk in column 0</td></tr>
        <tr><th>PPD_MISSING_CLOSE_GROUP </th>        <td class="description">Missing CloseGroup</td></tr>
        <tr><th>PPD_MISSING_OPTION_KEYWORD </th>        <td class="description">Missing option keyword</td></tr>
        <tr><th>PPD_MISSING_PPDADOBE4 </th>        <td class="description">Missing PPD-Adobe-4.x header</td></tr>
        <tr><th>PPD_MISSING_VALUE </th>        <td class="description">Missing value string</td></tr>
        <tr><th>PPD_NESTED_OPEN_GROUP </th>        <td class="description">OpenGroup without a CloseGroup first</td></tr>
        <tr><th>PPD_NESTED_OPEN_UI </th>        <td class="description">OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first</td></tr>
        <tr><th>PPD_NULL_FILE </th>        <td class="description">NULL PPD file pointer</td></tr>
        <tr><th>PPD_OK </th>        <td class="description">OK</td></tr>
</tbody></table>
      <h3 class="enumeration"><a id="ppd_ui_e">ppd_ui_e</a></h3>
        <p class="description">UI Types</p>
      <h4 class="constants">Constants</h4>
      <table class="list"><tbody>
        <tr><th>PPD_UI_BOOLEAN </th>        <td class="description">True or False option</td></tr>
        <tr><th>PPD_UI_PICKMANY </th>        <td class="description">Pick zero or more from a list</td></tr>
        <tr><th>PPD_UI_PICKONE </th>        <td class="description">Pick one from a list</td></tr>
</tbody></table>
    </div>
  </body>
</html>