File: idd.shtml

package info (click to toggle)
cupsys 1.2.7-4%2Betch9
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,436 kB
  • ctags: 10,404
  • sloc: ansic: 97,130; cpp: 49,167; java: 6,199; sh: 4,723; makefile: 1,918; lisp: 232; perl: 145; python: 119; php: 28
file content (1445 lines) | stat: -rw-r--r-- 39,483 bytes parent folder | download | duplicates (2)
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
<HTML>
<HEAD>
	<META NAME="COPYRIGHT" CONTENT="Copyright 1997-2003, All Rights Reserved">
	<META NAME="DOCNUMBER" CONTENT="CUPS-IDD-1.2">
	<META NAME="Author" CONTENT="Easy Software Products">
	<TITLE>CUPS Interface Design Description</TITLE>
</HEAD>
<BODY>

<H1>Scope</H1>

<H2>Identification</H2>

<P>This interface design description document provides detailed file
formats, message formats, and program conventions for the Common UNIX
Printing System ("CUPS") Version 1.2.

<EMBED SRC="system-overview.shtml">

<H2>Document Overview</H2>

<P>This interface design description document is organized into the following
sections:

<UL>
	<LI>1 - Scope
	<LI>2 - References
	<LI>3 - Internal Interfaces
	<LI>4 - External Interfaces
	<LI>5 - Directories
	<LI>A - Glossary
</UL>

<EMBED SRC="references.shtml">

<H1>Internal Interfaces</H1>

<H2>Character Set Files</H2>

<P>The character set files define a mapping between 8-bit characters
and the Unicode character set, or between Unicode and printer fonts.
They are named using the IETF charset names defined in RFCnnnn.  These
files are ASCII text, the content of which is described below. Comments
can be included by using the <TT>#</TT> character in the first column
of a line.

<H3>8-Bit Character Set Files</H3>

<P>8-bit character set files start with a line reading:

<UL><PRE>
charset 8bit
</PRE></UL>

<P>Following this are lines that define the font information:

<UL><PRE>
first last direction width normal bold italic bold-italic
</PRE></UL>

<P><VAR>First</VAR> and <VAR>last</VAR> are the first and last glyphs
in the font mapping that correspond to that font; a maximum of 256
characters can be mapped within each group, with a maximum of 256
mappings (this is a PostScript limitation.) The glyph values are
hexadecimal.

<P><VAR>Direction</VAR> is the string "ltor", "rtol", or "rtola" indicating
left-to-right, right-to-left, or right-to-left Arabic text.

<P><VAR>Width</VAR> is the string "single" or "double"; double means that the
glyphs are twice as wide as ASCII characters in the Courier typeface.

<P><VAR>Normal, bold, italic</VAR>, and <VAR>bold-italic</VAR> are the
typefaces to use for each presentation.  If characters are only available in
a single style then only one typeface should be listed (e.g. "Symbol".)
Each font that is listed will be used (and downloaded if needed) when
printing.

<P>The remaining lines define a character to Unicode glyph mapping for the
character set. The character and glyph values are hexadecimal:

<UL><PRE>
xx yyyy
</PRE></UL>

<H3>Unicode Character Set Files</H3>

<P>Unicode character set files start with a line reading:

<UL><PRE>
charset encoding
</PRE></UL>

<P><VAR>Encoding</VAR> is the encoding to use for the text; currently only
the string "utf8" is supported.

<P>Following this are lines defining the font information:

<UL><PRE>
first last direction width normal bold italic bold-italic
</PRE></UL>

<P><VAR>First</VAR> and <VAR>last</VAR> are the first and last glyphs
in the font mapping that correspond to that font; a maximum of 256
characters can be mapped within each group, with a maximum of 256
mappings (this is a PostScript limitation.) The glyph values are
hexadecimal.

<P><VAR>Direction</VAR> is the string "ltor", "rtol", or "rtola" indicating
left-to-right, right-to-left, or right-to-left Arabic text.

<P><VAR>Width</VAR> is the string "single" or "double"; double means that the
glyphs are twice as wide as ASCII characters in the Courier typeface.

<P><VAR>Normal, bold, italic</VAR>, and <VAR>bold-italic</VAR> are the
typefaces to use for each presentation.  If characters are only available in
a single style then only one typeface should be listed (e.g. "Symbol".)
Each font that is listed will be used (and downloaded if needed) when
printing.

<H2>Language Files</H2>

<P>The language files define the default character set and a collection of
text messages in that language. They are named by prefixing the string "cups_"
to the front of the language specifier (e.g. "cups_en", "cups_fr", etc.) Each
file consists of two or more lines of ASCII text.

<P>The first line identifies the character set to be used for the messages.
The currently recognized values are:

<UL>
	<LI>iso-8859-1
	<LI>iso-8859-2
	<LI>iso-8859-3
	<LI>iso-8859-4
	<LI>iso-8859-5
	<LI>iso-8859-6
	<LI>iso-8859-7
	<LI>iso-8859-8
	<LI>iso-8859-9
	<LI>iso-8859-10
	<LI>iso-8859-13
	<LI>iso-8859-14
	<LI>iso-8859-15
	<LI>us-ascii
	<LI>utf-8
	<LI>windows-874
	<LI>windows-1250
	<LI>windows-1251
	<LI>windows-1252
	<LI>windows-1253
	<LI>windows-1254
	<LI>windows-1255
	<LI>windows-1256
	<LI>windows-1257
	<LI>windows-1258
	<LI>koi8-r
	<LI>koi8-u
</UL>

<P>The second and succeeding lines define text messages. If the message text
is preceded by a number, then the current message number is updated and the
text after the number is used.

<H2>MIME Files</H2>

<P>CUPS uses two MIME files in its standard configuration.

<H3>mime.types</H3>

<P>The mime.types file defines the recognized file types and consists
of 1 or more lines of ASCII text. Comment lines start with the pound
("#") character. The backslash ("\") character can be used at the end
of a line to continue that line to the next.

<P>Each non-blank line starts with a MIME type identifier ("super/type")
as registered with the IANA. All text following the MIME type is treated as
a series of type recognition rules:

<UL><PRE>
mime-type := super "/" type { SP rule }*
super := { "a-z" | "A-Z" }*
type := { "a-z" | "A-Z" | "-" | "." | "0-9" }*
rule := { extension | match | operator | "(" rule ")" }*
extension := { "a-z" | "A-Z" | "0-9" }*
match := "match(" regexp ")" |
         "ascii(" offset "," length ")" |
	 "printable(" offset "," length ")" |
	 "string(" offset "," string ")" |
	 "contains(" offset "," length "," string ")" |
	 "char(" offset "," value ")" |
	 "short(" offset "," value ")" |
	 "int(" offset "," value ")" |
	 "locale(" string ")"
operator := "+" |	[ logical AND ]
            "," | SP    [ logical OR ]
	    "!"         [ unary NOT ]
</PRE></UL>

<P>The <CODE>int</CODE> and <CODE>short</CODE> rules match look for integers
in network byte order (a.k.a. big-endian) with the most-significant byte first.

<H3>mime.convs</H3>

<P>The mime.types file defines the recognized file filters and consists
of 1 or more lines of ASCII text. Comment lines start with the pound
("#") character.

<P>Each non-blank line starts with two MIME type identifiers ("super/type")
representing the source and destination types. Following the MIME types are
a cost value (0 to 100) and the filter program to use. If the filter program
is not specified using the full path then it must reside in the CUPS filter
directory:

<UL><PRE>
super/type SP super/type2 SP cost SP program
</PRE></UL>

<H2>Option Files</H2>

<P>CUPS maintains user-defined printer and option files for each
printer and user on the system. The printers and options defined in the
system option file (<CODE>/etc/cups/lpoptions</CODE>) are loaded first,
followed by the user option file (<CODE>$HOME/.lpoptions</CODE>).
Options in the user file replace those defined in the system file for
the same destination. Each line in the files can be one of the
following:

<UL><PRE>
Dest name option=value option=value ... option=value
Dest name/instance option=value option=value ... option=value
Default name option=value option=value ... option=value
Default name/instance option=value option=value ... option=value
</PRE></UL>

<P>The line beginning with "Default" indicates the default destination for
print jobs; a default line in the user option file overrides the default
defined in the system option file.

<P><VAR>Name</VAR> is the name of a printer known to the local server.

<P><VAR>Instance</VAR> can be any string of letters, numbers, and the underscore
up to 127 characters in length.

<P>The remainder of the line contains a list of space-separated options
and their values.

<H2>PostScript Printer Description Files</H2>

<P>PostScript Printer Description ("PPD") files describe the capabilities
of each printer and are used by CUPS to support printer-specific features
and intelligent filtering.

<H3>PPD Specification</H3>

<P>The PPD file format is described in
<A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5003.PPD_Spec_v4.3.pdf">
Adobe TechNote #5003: PostScript Printer Description File Format
Specification Version 4.3</A>.

<H3>CUPS Extensions to PPD Files</H3>

<P>CUPS adds several new attributes that are described below.

<H4>cupsFilter</H4>

<P>This string attribute provides a conversion rule of the form:

<UL><PRE>
source/type cost program
</PRE></UL>

<P>The destination type is assumed to the printer's type. If a printer
supports the source type directly the special filter program "-" may be
specified.

<H4>cupsFlipDuplex</H4>

<P>This boolean attribute notifies the RIP filters that the
destination printer requires an upside-down image for the back
page. The default value is false.

<H4>cupsManualCopies</H4>

<P>This boolean attribute notifies the RIP filters that the destination printer
does not support copy generation in hardware. The default value is false.

<H4>cupsModelNumber</H4>

<P>This integer attribute specifies a printer-specific model number. This number
can be used by a filter program to adjust the output for a specific model of
printer.

<H4>cupsProfile</H4>

<P>This string attribute specifies a color profile of the form:

<UL><PRE>
resolution/type density gamma m00 m01 m02 m10 m11 m12 m20 m21 m22
</PRE></UL>

<P>The <I>resolution</I> and <I>type</I> values may be "-" to act as a
wildcard. Otherwise they must match one of the <CODE>Resolution</CODE> or
<CODE>MediaType</CODE> attributes defined in the PPD file.

<P>The <I>density</I> and <I>gamma</I> values define gamma and density
adjustment function such that:

<UL><PRE>
f(x) = density * x<SUP>gamma</SUP>
</PRE></UL>

<P>The <I>m00</I> through <I>m22</I> values define a 3x3 transformation
matrix for the CMY color values. The density function is applied <I>after</I>
the CMY transformation.

<H4>cupsProtocol</H4>

<P>This optional attribute describes which binary communication
protocol to use when printing binary PostScript data. The
strings "None", "BCP", and "TBCP" are recognized, corresponding
to no encoding, BCP, and TBCP respectively.

<H4>cupsVersion</H4>

<P>This required attribute describes which version of the CUPS
IDD was used for the PPD file extensions. Currently it must be
the string "1.0", "1.1", or "1.2".

<H2>Scheduler Configuration Files</H2>

<P>The scheduler reads three configuration files that define the available
printers, classes, and services:

<DL>

	<DT>classes.conf
	<DD>This file defines all of the printer classes known to the
	system.

	<DT>cupsd.conf
	<DD>This file defines the files, directories, passwords, etc.
	used by the scheduler.

	<DT>printers.conf
	<DD>This file defines all of the printers known to the system.

</DL>

<H3>classes.conf</H3>

<P>The classes.conf file consists of 1 or more lines of ASCII text. 
Comment lines start with the pound ("#") character.

<P>Each non-blank line starts with the name of a configuration directive
followed by its value. The following directives are understood:

<CENTER><TABLE WIDTH="90%" BORDER="1">
<TR>
	<TH WIDTH="25%">Directive</TH>
	<TH>Description</TH>
</TR>
<TR>
	<TD>&lt;Class name&gt;<BR>
	&lt;/Class&gt;</TD>
	<TD>Surrounds a class definition.</TD>
</TR>
<TR>
	<TD>&lt;DefaultClass name&gt;<BR>
	&lt;/Class&gt;</TD>
	<TD>Surrounds a class definition for the default destination.</TD>
</TR>
<TR>
	<TD>Accepting</TD>
	<TD>Specifies whether the class is accepting new jobs. May be
	the names "Yes" or "No".</TD>
</TR>
<TR>
	<TD>AllowUsers</TD>
	<TD>Specifies a list of users that are allowed to access the class.</TD>
</TR>
<TR>
	<TD>BannerStart</TD>
	<TD>Specifies the banner that is printed before other files in a
	job.</TD>
</TR>
<TR>
	<TD>BannerEnd</TD>
	<TD>Specifies the banner that is printed after other files in a
	job.</TD>
</TR>
<TR>
	<TD>DenyUsers</TD>
	<TD>Specifies a list of users that are not allowed to access the
	class.</TD>
</TR>
<TR>
	<TD>Info</TD>
	<TD>A textual description of the class.</TD>
</TR>
<TR>
	<TD>Location</TD>
	<TD>A textual location of the class.</TD>
</TR>
<TR>
	<TD>Printer</TD>
	<TD>Specifies a printer that is a member of the class.</TD>
</TR>
<TR>
	<TD>State</TD>
	<TD>Specifies the initial state of the class; can be "Idle" or
	"Stopped".</TD>
</TR>
<TR>
	<TD>StateMessage</TD>
	<TD>Specifies a textual message for the current class state.</TD>
</TR>
</TABLE></CENTER>

<H3>cupsd.conf</H3>

<P>The cupsd.conf file consists of 1 or more lines of ASCII text. 
Comment lines start with the pound ("#") character.

<P>Each non-blank line starts with the name of a configuration directive
followed by its value. The following directives are understood:

<CENTER><TABLE WIDTH="90%" BORDER="1">
<TR>
	<TH WIDTH="25%">Directive</TH>
	<TH>Default</TH>
	<TH>Description</TH>
</TR>
<TR>
	<TD>AccessLog</TD>
	<TD>access_log</TD>
	<TD>Specifies the location of the access log file. The special name
	"syslog" can be used to send access log information to the system
	log.</TD>
</TR>
<TR>
	<TD>Allow</TD>
	<TD>-</TD>
	<TD>Allows connections from the specified host, network, or
	domain.</TD>
</TR>
<TR>
	<TD>AuthClass</TD>
	<TD>-</TD>
	<TD>Specifies what level of authentication is required; may be
	"User", "System", or "Group".</TD>
</TR>
<TR>
	<TD>AuthType</TD>
	<TD>None</TD>
	<TD>Specifies the type of authentication to perform; may be
	"None", "Basic", or "Digest".</TD>
</TR>
<TR>
	<TD>BrowseAddress</TD>
	<TD>255.255.255.255</TD>
	<TD>Specifies a broadcast address to send CUPS browsing packets to.</TD>
</TR>
<TR>
	<TD>BrowseAllow</TD>
	<TD>-</TD>
	<TD>Specifies hosts or addresses from which browsing information
	should be used.</TD>
</TR>
<TR>
	<TD>BrowseDeny</TD>
	<TD>-</TD>
	<TD>Specifies hosts or addresses from which browsing information
	should not be used.</TD>
</TR>
<TR>
	<TD>BrowseInterval</TD>
	<TD>30</TD>
	<TD>Specifies the number of seconds between browsing updates. A
	browse interval of 0 seconds disables outgoing packets.</TD>
</TR>
<TR>
	<TD>BrowseOrder</TD>
	<TD>Allow,Deny</TD>
	<TD>Specifies the order of BrowseAllow and BrowseDeny directive
	processing; can be "Deny,Allow" to implicitly deny hosts unless
	they are allowed by a BrowseAllow line, or "Allow,Deny" to
	implicitly allow hosts unless they are denied by a BrowseDeny
	line.</TD>
</TR>
<TR>
	<TD>BrowsePoll</TD>
	<TD>-</TD>
	<TD>Specifies a server to poll for available printers and classes.</TD>
</TR>
<TR>
	<TD>BrowsePort</TD>
	<TD>631</TD>
	<TD>Specifies the UDP port number to use for browse packets.</TD>
</TR>
<TR>
	<TD>BrowseRelay</TD>
	<TD>-</TD>
	<TD>Specifies a source and destination address for relaying browser
	information from one subnet to another.</TD>
</TR>
<TR>
	<TD>BrowseShortNames</TD>
	<TD>yes</TD>
	<TD>Specifies whether or not to provide short names (without the
	"@server" part) for remote printers.</TD>
</TR>
<TR>
	<TD>BrowseTimeout</TD>
	<TD>300</TD>
	<TD>Specifies the number of seconds to wait until remote destinations
	are removed from the local destination list.</TD>
</TR>
<TR>
	<TD>Browsing</TD>
	<TD>On</TD>
	<TD>Specifies whether or not printer and class browsing is enabled; can
	be "On" or "Off".</TD>
</TR>
<TR>
	<TD>DataDir</TD>
	<TD>/usr/share/cups</TD>
	<TD>Specifies the directory where CUPS data files are stored.</TD>
</TR>
<TR>
	<TD>DefaultCharset</TD>
	<TD>iso-8859-1</TD>
	<TD>Specifies the default character set.</TD>
</TR>
<TR>
	<TD>DefaultLanguage</TD>
	<TD>current locale</TD>
	<TD>Specifies the default language.</TD>
</TR>
<TR>
	<TD>Deny</TD>
	<TD>-</TD>
	<TD>Refuses connections from the specified host, network, or
	domain.</TD>
</TR>
<TR>
	<TD>DocumentRoot</TD>
	<TD>/usr/share/doc/cups</TD>
	<TD>Specifies the document data root directory.</TD>
</TR>
<TR>
	<TD>ErrorLog</TD>
	<TD>error_log</TD>
	<TD>Specifies the error log file location. The special name
	"syslog" can be used to send error log information to the system
	log.</TD>
</TR>
<TR>
	<TD>Group</TD>
	<TD>root, sys, system</TD>
	<TD>Specifies the group name or ID that is used when running
	external programs.</TD>
</TR>
<TR>
	<TD>HostNameLookups</TD>
	<TD>Off</TD>
	<TD>Specifies whether or not to perform reverse IP address lookups to
	get the actual hostname; may be "On" or "Off". Hostname lookups can
	significantly degrade the performance of the CUPS server if one or
	more DNS servers is not functioning properly.</TD>
</TR>
<TR>
	<TD>ImplicitClasses</TD>
	<TD>On</TD>
	<TD>Specifies whether or not to automatically create printer classes
	when more than one printer or class of the same name is detected on
	the network; may be "On" or "Off".</TD>
</TR>
<TR>
	<TD>KeepAlive</TD>
	<TD>On</TD>
	<TD>Specifies whether or not to use the HTTP Keep-Alive feature; may
	be "On" or "Off".</TD>
</TR>
<TR>
	<TD>KeepAliveTimeout</TD>
	<TD>30</TD>
	<TD>Specifies the amount of time to keep the HTTP connection alive
	before closing it.</TD>
</TR>
<TR>
	<TD>&lt;Location path&gt;<BR>
	&lt;/Location&gt;</TD>
	<TD>-</TD>
	<TD>Specifies a location to restrict access to.</TD>
</TR>
<TR>
	<TD>LogLevel</TD>
	<TD>info</TD>
	<TD>Controls the amount of information that is logged in the
	error log file. Can be one of "debug", "info", "warn", "error",
	or "none", in decreasing order or verbosity.</TD>
</TR>
<TR>
	<TD>MaxClients</TD>
	<TD>100</TD>
	<TD>Specifies the maximum number of simultaneous active clients.
	This value is internally limited to 1/3 of the total number of
	available file descriptors.</TD>
</TR>
<TR>
	<TD>MaxLogSize</TD>
	<TD>0</TD>
	<TD>Specifies the maximum size of the access, error, and page
	log files in bytes. If set to 0 then no maximum size is set.
	Log files are rotated automatically when this size is
	exceeded.</TD>
</TR>
<TR>
	<TD>MaxRequestSize</TD>
	<TD>0</TD>
	<TD>Specifies the maximum size of HTTP requests in bytes. If set to 0
	then there is no maximum.</TD>
</TR>
<TR>
	<TD>Order</TD>
	<TD>Allow,Deny</TD>
	<TD>Specifies the order of Allow and Deny directive processing; can
	be "Deny,Allow" to implicitly deny hosts unless they are allowed by
	an Allow line, or "Allow,Deny" to implicitly allow hosts unless they
	are denied by a Deny line.</TD>
</TR>
<TR>
	<TD>PageLog</TD>
	<TD>page_log</TD>
	<TD>Specifies the location of the page log file. The special name
	"syslog" can be used to send page log information to the system
	log.</TD>
</TR>
<TR>
	<TD>Port</TD>
	<TD>631</TD>
	<TD>Specifies a port number to listen to for HTTP connections.</TD>
</TR>
<TR>
	<TD>Printcap</TD>
	<TD>/etc/printcap</TD>
	<TD>Specifies the location of a Berkeley printcap file to update
	with a list of current printers and classes. If no filename is
	supplied then this automatic generation is disabled.</TD>
</TR>
<TR>
	<TD>RequestRoot</TD>
	<TD>/var/spool/cups</TD>
	<TD>Specifies the location of request files.</TD>
</TR>
<TR>
	<TD>RIPCache</TD>
	<TD>8m</TD>
	<TD>Specifies the size of the memory cache in bytes that is used by
	RIP filters.</TD>
</TR>
<TR>
	<TD>ServerAdmin</TD>
	<TD>root@ServerName</TD>
	<TD>Specifies the person to contact with problems.</TD>
</TR>
<TR>
	<TD>ServerName</TD>
	<TD>hostname</TD>
	<TD>Specifies the hostname that is supplied to HTTP clients. This
	is also used to determine the default CUPS server for the CUPS IPP
	client applications.</TD>
</TR>
<TR>
	<TD>ServerRoot</TD>
	<TD>/etc/cups</TD>
	<TD>Specifies the root directory for server configuration files.</TD>
</TR>
<TR>
	<TD>SystemGroup</TD>
	<TD>root, sys, system</TD>
	<TD>Specifies the group name used for System class authentication.</TD>
</TR>
<TR>
	<TD>TempDir</TD>
	<TD>/var/tmp</TD>
	<TD>Specifies the temporary directory to use.</TD>
</TR>
<TR>
	<TD>Timeout</TD>
	<TD>300</TD>
	<TD>The timeout in seconds before client connections are closed
	in the middle of a request.</TD>
</TR>
<TR>
	<TD>User</TD>
	<TD>lp</TD>
	<TD>Specifies the user that is used when running external programs.</TD>
</TR>
</TABLE></CENTER>

<H3>printers.conf</H3>

<P>The printers.conf file consists of 1 or more lines of ASCII text. 
Comment lines start with the pound ("#") character.

<P>Each non-blank line starts with the name of a configuration directive
followed by its value. The following directives are understood:

<CENTER><TABLE WIDTH="90%" BORDER="1">
<TR>
	<TH WIDTH="25%">Directive</TH>
	<TH>Description</TH>
</TR>
<TR>
	<TD>Accepting</TD>
	<TD>Specifies whether the printer is accepting new jobs. May be
	the names "Yes" or "No".</TD>
</TR>
<TR>
	<TD>&lt;DefaultPrinter name&gt;<BR>
	&lt;/Printer&gt;</TD>
	<TD>Surrounds the printer definition for a default destination.</TD>
</TR>
<TR>
	<TD>AllowUsers</TD>
	<TD>Specifies a list of users that are allowed to access the printer.</TD>
</TR>
<TR>
	<TD>BannerStart</TD>
	<TD>Specifies the banner that is printed before other files in a
	job.</TD>
</TR>
<TR>
	<TD>BannerEnd</TD>
	<TD>Specifies the banner that is printed after other files in a
	job.</TD>
</TR>
<TR>
	<TD>DenyUsers</TD>
	<TD>Specifies a list of users that are not allowed to access the
	printer.</TD>
</TR>
<TR>
	<TD>DeviceURI</TD>
	<TD>Specifies the device-uri attribute for the printer.</TD>
</TR>
<TR>
	<TD>Info</TD>
	<TD>A textual description of the printer.</TD>
</TR>
<TR>
	<TD>Location</TD>
	<TD>A textual location of the printer.</TD>
</TR>
<TR>
	<TD>&lt;Printer name&gt;<BR>
	&lt;/Printer&gt;</TD>
	<TD>Surrounds the printer definition.</TD>
</TR>
<TR>
	<TD>State</TD>
	<TD>Specifies the initial state of the printer; can be "Idle" or
	"Stopped".</TD>
</TR>
<TR>
	<TD>StateMessage</TD>
	<TD>Specifies a textual message for the current printer state.</TD>
</TR>
</TABLE></CENTER>

<H1>External Interfaces</H1>

<H2>AppSocket Protocol</H2>

<P>The AppSocket protocol is an 8-bit clean TCP/IP socket connection.
The default IP service port is 9100. The URI method name is "socket".

<P>The AppSocket protocol is used by the Hewlett Packard JetDirect
network interfaces and print servers, as well as many other vendors'
products. See the CUPS Software Administrators Manual for a list of
supported products.

<H2>CUPS Browsing Protocol</H2>

<P>The CUPS Browsing Protocol is a UDP/IP-based broadcast service. By default
this service operates on IP service port 631.

<P>Each broadcast packet describes the state of a single printer or class and
is an ASCII text string of up to 1450 bytes ending with a newline (0x0a). The
string is formatted as follows:

<UL><PRE>
type SP state SP uri SP "location" SP "info" SP "make-and-model" NL
</PRE></UL>

<P><VAR>State, uri, location, info</VAR>, and <VAR>make-and-model</VAR>,
correspond to the IPP <CODE>printer-state</CODE>,
<CODE>printer-uri-supported</CODE>, <CODE>printer-location</CODE>,
<CODE>printer-info</CODE>, and <CODE>printer-make-and-model</CODE>
attributes.

<P><VAR>Type</VAR> is a hexadecimal number string representing
capability/type bits:

<CENTER><TABLE WIDTH="40%" BORDER="1">
<TR>
	<TH WIDTH="8%">Bit</TH>
	<TH>Description</TH>
</TR>
<TR>
	<TD>0</TD>
	<TD>0 = printer<BR>
	1 = class</TD>
</TR>
<TR>
	<TD>1</TD>
	<TD>0 = local<BR>
	1 = remote<BR>
	(always 1)</TD>
</TR>
<TR>
	<TD>2</TD>
	<TD>1 = can print B&W</TD>
</TR>
<TR>
	<TD>3</TD>
	<TD>1 = can print color</TD>
</TR>
<TR>
	<TD>4</TD>
	<TD>1 = can duplex</TD>
</TR>
<TR>
	<TD>5</TD>
	<TD>1 = can staple</TD>
</TR>
<TR>
	<TD>6</TD>
	<TD>1 = can do fast copies</TD>
</TR>
<TR>
	<TD>7</TD>
	<TD>1 = can do fast collating</TD>
</TR>
<TR>
	<TD>8</TD>
	<TD>1 = can punch holes</TD>
</TR>
<TR>
	<TD>9</TD>
	<TD>1 = can cover</TD>
</TR>
<TR>
	<TD>10</TD>
	<TD>1 = can bind</TD>
</TR>
<TR>
	<TD>11</TD>
	<TD>1 = can sort</TD>
</TR>
<TR>
	<TD>12</TD>
	<TD>1 = can print up to 9x14 inches</TD>
</TR>
<TR>
	<TD>13</TD>
	<TD>1 = can print up to 18x24 inches</TD>
</TR>
<TR>
	<TD>14</TD>
	<TD>1 = can print up to 36x48 inches</TD>
</TR>
<TR>
	<TD>15</TD>
	<TD>1 = can print variable sizes</TD>
</TR>
</TABLE></CENTER>

<H2>CUPS Form File</H2>

<P>CUPS Form files are XML files used by the CUPS <CODE>formtops</CODE>
filter to produce dynamic banner pages and support preprinted forms.

<P>The MIME type for CUPS Form files is
<CODE>application/vnd.cups-form</CODE>.

<H3>CUPS Form DTD</H3>

<P>The following DTD describes the available elements and attributes in
a CUPS Form file:

<CENTER><TABLE BORDER>
<TR>
<TD><PRE>
&lt;!ENTITY % Angle "CDATA" -- angle in degrees -->

&lt;!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->

&lt;!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->

&lt;!ENTITY % Lengths "CDATA" -- comma-separated Length values -->

&lt;!ENTITY % Text "CDATA">

&lt;!ENTITY % heading "H1|H2|H3|H4|H5|H6">

&lt;!ENTITY % preformatted "PRE">

&lt;!ENTITY % i18n
 "lang        %LanguageCode; #IMPLIED  -- language code --
  dir         (ltr|rtl)      #IMPLIED  -- direction for weak/neutral text --"
  >

&lt;!ENTITY % attrs "%i18n;">

&lt;!ENTITY % fontstyle
 "B | FONT | I | TT">

&lt;!ENTITY % graphics
 "BOX | RECT | LINE | POLY | ARC | PIE | TEXT">

&lt;!ENTITY % insert
 "IMG | VAR">

&lt;!-- %inline; covers inline or "text-level" elements -->
&lt;!ENTITY % inline "#PCDATA | %fontstyle; | %graphics; | %insert;">

&lt;!ELEMENT (%fontstyle;) - - (%inline;)*>
&lt;!ATTLIST (%fontstyle;)
  %attrs;                              -- %i18n --
  >

&lt;!ELEMENT BR - O EMPTY                 -- forced line break -->
&lt;!ATTLIST BR
  %attrs;                              -- %i18n --
  >

&lt;!ENTITY % block
     "P | %heading; | %preformatted;">

&lt;!ENTITY % flow "%block; | %inline;">

&lt;!ELEMENT PAGE O O (%flow;)+           -- document body -->
&lt;!ATTLIST PAGE
  %attrs;                              -- %i18n --
  align       (left|center|right) #IMPLIED -- horizontal alignment --
  valign      (top|middle|center|bottom) #IMPLIED -- vertical alignment --
  >

&lt;!ELEMENT P - O (%inline;)*            -- paragraph -->
&lt;!ATTLIST P
  %attrs;                              -- %i18n --
  align       (left|center|right) #IMPLIED -- horizontal alignment --
  >

&lt;!ELEMENT (%heading;)  - - (%inline;)* -- heading -->
&lt;!ATTLIST (%heading;)
  %attrs;                              -- %i18n --
  align       (left|center|right) #IMPLIED -- horizontal alignment --
  >

&lt;!ELEMENT PRE - - (%inline;)*          -- preformatted text -->
&lt;!ATTLIST PRE
  %attrs;                              -- %i18n --
  align       (left|center|right) #IMPLIED -- horizontal alignment --
  >

&lt;!ELEMENT BOX - O EMPTY                -- unfilled box -->
&lt;!ATTLIST BOX
  color       %Color;        #IMPLIED  -- override color --
  height      %Length;       #REQUIRED -- height of box --
  thickness   %Length;       #IMPLIED  -- override line thickness --
  width       %Length;       #REQUIRED -- width of box --
  x           %Length;       #REQUIRED -- horizontal position --
  y           %Length;       #REQUIRED -- vertical position --
  >

&lt;!ELEMENT RECT - O EMPTY               -- filled box -->
&lt;!ATTLIST RECT
  color       %Color;        #IMPLIED  -- override color --
  height      %Length;       #REQUIRED -- height of box --
  width       %Length;       #REQUIRED -- width of box --
  x           %Length;       #REQUIRED -- horizontal position --
  y           %Length;       #REQUIRED -- vertical position --
  >

&lt;!ELEMENT LINE - O EMPTY               -- polyline -->
&lt;!ATTLIST LINE
  color       %Color;        #IMPLIED  -- override color --
  thickness   %Length;       #IMPLIED  -- override line thickness --
  x           %Lengths;      #REQUIRED -- horizontal positions --
  y           %Lengths;      #REQUIRED -- vertical positions --
  >

&lt;!ELEMENT POLY - O EMPTY               -- polygon (filled) -->
&lt;!ATTLIST POLY
  color       %Color;        #IMPLIED  -- override color --
  x           %Lengths;      #REQUIRED -- horizontal positions --
  y           %Lengths;      #REQUIRED -- vertical positions --
  >

&lt;!ELEMENT ARC - O EMPTY                -- unfilled arc -->
&lt;!ATTLIST ARC
  color       %Color;        #IMPLIED  -- override color --
  end         %Angle;        #IMPLIED  -- override end angle --
  height      %Length;       #REQUIRED -- height of arc --
  start       %Angle;        #IMPLIED  -- override start angle --
  thickness   %Length;       #IMPLIED  -- override line thickness --
  width       %Length;       #REQUIRED -- width of arc --
  x           %Length;       #REQUIRED -- horizontal position --
  y           %Length;       #REQUIRED -- vertical position --
  >

&lt;!ELEMENT PIE - O EMPTY                -- filled arc -->
&lt;!ATTLIST PIE
  color       %Color;        #IMPLIED  -- override color --
  end         %Angle;        #IMPLIED  -- override end angle --
  height      %Length;       #REQUIRED -- height of arc --
  start       %Angle;        #IMPLIED  -- override start angle --
  width       %Length;       #REQUIRED -- width of arc --
  x           %Length;       #REQUIRED -- horizontal position --
  y           %Length;       #REQUIRED -- vertical position --
  >

&lt;!ELEMENT TEXT - - (%flow;)*           -- text box -->
&lt;!ATTLIST RECT
  align       (left|center|right) #IMPLIED -- horizontal alignment --
  height      %Length;       #REQUIRED -- height of box --
  valign      (top|middle|center|bottom) #IMPLIED -- vertical alignment --
  width       %Length;       #REQUIRED -- width of box --
  x           %Length;       #REQUIRED -- horizontal position --
  y           %Length;       #REQUIRED -- vertical position --
  >


&lt;!ELEMENT IMG - O EMPTY                -- Embedded image -->
&lt;!ATTLIST IMG
  %attrs;                              -- %coreattrs, %i18n, %events --
  src         %URI;          #REQUIRED -- URI of image to embed --
  height      %Length;       #IMPLIED  -- override height --
  width       %Length;       #IMPLIED  -- override width --
  >

&lt;!ELEMENT HEAD O O (DEFVAR)*           -- document head -->
&lt;!ATTLIST HEAD
  %i18n;                               -- lang, dir --
  >

&lt;!ELEMENT DEFVAR - O EMPTY             -- variable definition -->
&lt;!ATTLIST DEFVAR
  name        CDATA          #REQUIRED -- name
  value       CDATA          #REQUIRED -- value
  >


&lt;!ENTITY % html.content "HEAD, PAGE">

&lt;!ELEMENT CUPSFORM - - (HEAD) (PAGE)+  -- document root element -->
&lt;!ATTLIST CUPSFORM
  %i18n;                               -- lang, dir --
  >
</PRE></TD>
</TR>
</TABLE></CENTER>

<H2>CUPS PostScript File</H2>

<P>CUPS PostScript files are device-dependent Adobe PostScript program files.
The PostScript language is described in the
<A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">
Adobe PostScript Language Reference Manual, Third Edition</A>.

<P>The MIME type for CUPS PostScript files is
<CODE>application/vnd.cups-postscript</CODE>.

<H2>CUPS Raster File</H2>

<P>CUPS raster files are device-dependent raster image files that contain a
PostScript page device dictionary and device-dependent raster imagery for
each page in the document. These files are used to transfer raster data
from the PostScript and image file RIPs to device-dependent filters that
convert the raster data to a printable format.

<P>A raster file begins with a four byte synchronization word: 0x52615374
("RaSt") for big-endian architectures and 0x74536152 ("tSaR") for little-endian
architectures.  The writer of the raster file will use the native word order,
and the reader is responsible for detecting a reversed word order file and
swapping bytes as needed. The CUPS Image Library raster functions perform
this function automatically.

<P>Following the synchronization word are a series of raster pages.  Each page
starts with a page device dictionary header and is followed immediately by the
raster data for that page.

<CENTER><TABLE WIDTH="80%" BORDER="1">
<TR>
	<TH WIDTH="10%">Bytes</TH>
	<TH WIDTH="20%">Description</TH>
	<TH>Values</TH>
</TR>
<TR>
	<TD>0-63</TD>
	<TD>MediaClass</TD>
	<TD>Nul-terminated ASCII string</TD>
</TR>
<TR>
	<TD>64-127</TD>
	<TD>MediaColor</TD>
	<TD>Nul-terminated ASCII string</TD>
</TR>
<TR>
	<TD>128-191</TD>
	<TD>MediaType</TD>
	<TD>Nul-terminated ASCII string</TD>
</TR>
<TR>
	<TD>192-255</TD>
	<TD>OutputType</TD>
	<TD>Nul-terminated ASCII string</TD>
</TR>
<TR>
	<TD>256-259</TD>
	<TD>AdvanceDistance</TD>
	<TD>0 to 2<SUP>32</SUP> - 1 points</TD>
</TR>
<TR>
	<TD>260-263</TD>
	<TD>AdvanceMedia</TD>
	<TD>0 = Never advance roll<BR>
	1 = Advance roll after file<BR>
	2 = Advance roll after job<BR>
	3 = Advance roll after set<BR>
	4 = Advance roll after page</TD>
</TR>
<TR>
	<TD>264-267</TD>
	<TD>Collate</TD>
	<TD>0 = do not collate copies<BR>
	1 = collate copies</TD>
</TR>
<TR>
	<TD>268-271</TD>
	<TD>CutMedia</TD>
	<TD>0 = Never cut media<BR>
	1 = Cut roll after file<BR>
	2 = Cut roll after job<BR>
	3 = Cut roll after set<BR>
	4 = Cut roll after page</TD>
</TR>
<TR>
	<TD>272-275</TD>
	<TD>Duplex</TD>
	<TD>0 = Print single-sided<BR>
	1 = Print double-sided</TD>
</TR>
<TR>
	<TD>276-283</TD>
	<TD>HWResolution</TD>
	<TD>Horizontal and vertical resolution in dots-per-inch.</TD>
</TR>
<TR>
	<TD>284-299</TD>
	<TD>ImagingBoundingBox</TD>
	<TD>Four integers giving the left, bottom, right, and top positions
	of the page bounding box in points</TD>
</TR>
<TR>
	<TD>300-303</TD>
	<TD>InsertSheet</TD>
	<TD>0 = Do not insert separator sheets<BR>
	1 = Insert separator sheets</TD>
</TR>
<TR>
	<TD>304-307</TD>
	<TD>Jog</TD>
	<TD>0 = Do no jog pages<BR>
	1 = Jog pages after file<BR>
	2 = Jog pages after job<BR>
	3 = Jog pages after set</TD>
</TR>
<TR>
	<TD>308-311</TD>
	<TD>LeadingEdge</TD>
	<TD>0 = Top edge is first<BR>
	1 = Right edge is first<BR>
	2 = Bottom edge is first<BR>
	3 = Left edge is first</TD>
</TR>
<TR>
	<TD>312-319</TD>
	<TD>Margins</TD>
	<TD>Left and bottom origin of image in points</TD>
</TR>
<TR>
	<TD>320-323</TD>
	<TD>ManualFeed</TD>
	<TD>0 = Do not manually feed media<BR>
	1 = Manually feed media</TD>
</TR>
<TR>
	<TD>324-327</TD>
	<TD>MediaPosition</TD>
	<TD>Input slot position from 0 to N</TD>
</TR>
<TR>
	<TD>328-331</TD>
	<TD>MediaWeight</TD>
	<TD>Media weight in grams per meter squared</TD>
</TR>
<TR>
	<TD>332-335</TD>
	<TD>MirrorPrint</TD>
	<TD>0 = Do not mirror prints<BR>
	1 = Mirror prints</TD>
</TR>
<TR>
	<TD>336-339</TD>
	<TD>NegativePrint</TD>
	<TD>0 = Do not invert prints<BR>
	1 = Invert prints</TD>
</TR>
<TR>
	<TD>340-343</TD>
	<TD>NumCopies</TD>
	<TD>1 to 2<SUP>32</SUP> - 1</TD>
</TR>
<TR>
	<TD>344-347</TD>
	<TD>Orientation</TD>
	<TD>0 = Do not rotate page<BR>
	1 = Rotate page counter-clockwise<BR>
	2 = Turn page upside down<BR>
	3 = Rotate page clockwise</TD>
</TR>
<TR>
	<TD>348-351</TD>
	<TD>OutputFaceUp</TD>
	<TD>0 = Output face down<BR>
	1 = Output face up</TD>
</TR>
<TR>
	<TD>352-359</TD>
	<TD>PageSize</TD>
	<TD>Width and length in points</TD>
</TR>
<TR>
	<TD>360-363</TD>
	<TD>Separations</TD>
	<TD>0 = Print composite image<BR>
	1 = Print color separations</TD>
</TR>
<TR>
	<TD>364-367</TD>
	<TD>TraySwitch</TD>
	<TD>0 = Do not change trays if selected tray is empty<BR>
	1 = Change trays if selected tray is empty</TD>
</TR>
<TR>
	<TD>368-371</TD>
	<TD>Tumble</TD>
	<TD>0 = Do not rotate even pages when duplexing<BR>
	1 = Rotate even pages when duplexing</TD>
</TR>
<TR>
	<TD>372-375</TD>
	<TD>cupsWidth</TD>
	<TD>Width of page image in pixels</TD>
</TR>
<TR>
	<TD>376-379</TD>
	<TD>cupsHeight</TD>
	<TD>Height of page image in pixels</TD>
</TR>
<TR>
	<TD>380-383</TD>
	<TD>cupsMediaType</TD>
	<TD>Driver-specific 0 to 2<SUP>32</SUP> - 1</TD>
</TR>
<TR>
	<TD>384-387</TD>
	<TD>cupsBitsPerColor</TD>
	<TD>1, 2, 4, 8 bits</TD>
</TR>
<TR>
	<TD>388-391</TD>
	<TD>cupsBitsPerPixel</TD>
	<TD>1 to 32 bits</TD>
</TR>
<TR>
	<TD>392-395</TD>
	<TD>cupsBytesPerLine</TD>
	<TD>1 to 2<SUP>32</SUP> - 1 bytes</TD>
</TR>
<TR>
	<TD>396-399</TD>
	<TD>cupsColorOrder</TD>
	<TD>0 = chunky pixels (CMYK CMYK CMYK)<BR>
	1 = banded pixels (CCC MMM YYY KKK)<BR>
	2 = planar pixels (CCC... MMM... YYY... KKK...)</TD>
</TR>
<TR>
	<TD>400-403</TD>
	<TD>cupsColorSpace</TD>
	<TD>0 = white<BR>
	1 = RGB<BR>
	2 = RGBA<BR>
	3 = black<BR>
	4 = CMY<BR>
	5 = YMC<BR>
	6 = CMYK<BR>
	7 = YMCK<BR>
	8 = KCMY<BR>
	9 = KCMYcm</TD>
</TR>
<TR>
	<TD>404-407</TD>
	<TD>cupsCompression</TD>
	<TD>Driver-specific 0 to 2<SUP>32</SUP> - 1</TD>
</TR>
<TR>
	<TD>408-411</TD>
	<TD>cupsRowCount</TD>
	<TD>Driver-specific 0 to 2<SUP>32</SUP> - 1</TD>
</TR>
<TR>
	<TD>412-415</TD>
	<TD>cupsRowFeed</TD>
	<TD>Driver-specific 0 to 2<SUP>32</SUP> - 1</TD>
</TR>
<TR>
	<TD>416-419</TD>
	<TD>cupsRowStep</TD>
	<TD>Driver-specific 0 to 2<SUP>32</SUP> - 1</TD>
</TR>
</TABLE></CENTER>

<P>The MIME type for CUPS Raster files is
<CODE>application/vnd.cups-raster</CODE>.

<H2>CUPS Raw Files</H2>

<P>Raw files are printer-dependent print files that are in a format suitable
to the destination printer (e.g. HP-PCL, HP-RTL, etc.) The MIME type for CUPS
Raw files is <CODE>application/vnd.cups-raw</CODE>.

<H2>Internet Printing Protocol</H2>

<P>The Internet Printing Protocol and the CUPS extensions to it are
described in the CUPS Implementation of IPP document.

<H2>Line Printer Daemon Protocol</H2>

<P>The Line Printer Daemon (LPD) protocol is described by
<A HREF="http://www.ietf.org/rfc/rfc1179.txt">RFC 1179: Line Printer Daemon
Protocol</A>.

<P>The URI method name for LPD is "lpd".

<H2>Server Message Block Protocol</H2>

<P>The Server Message Block (SMB) and related Common Internet File
System (CIFS) protocols are described at
<A HREF="http://anu.samba.org/cifs">http://anu.samba.org/cifs</A>.

<P>The URI method name for SMB is "smb". Support for this protocol is
provided via the SAMBA <CODE>smbspool(1)</CODE> program provided with
SAMBA 2.0.6 and higher.

<H1>Directories</H1>

<DL>

	<DT>/etc/cups
	<DD>The scheduler configuration and MIME files reside here.

	<DT>/etc/cups/certs
	<DD>The authentication certificates reside here.

	<DT>/etc/cups/interfaces
	<DD>System V interface scripts reside here.

	<DT>/etc/cups/ppd
	<DD>This directory contains PPD files for each printer.

	<DT>/usr/bin
	<DD>The <CODE>cancel</CODE>, <CODE>lp</CODE>, <CODE>lpq</CODE>,
	<CODE>lpr</CODE>, <CODE>lprm</CODE>, and <CODE>lpstat</CODE> commands
	reside here.

	<DT>/usr/lib, /usr/lib32
	<DD>The shared libraries (DSOs) reside here.

	<DT>/usr/lib/cups/backend
	<DD>The backend filters reside here.

	<DT>/usr/lib/cups/cgi-bin
	<DD>The CGI programs reside here.

	<DT>/usr/lib/cups/daemon
	<DD>The polling and LPD daemons reside here.

	<DT>/usr/lib/cups/filter
	<DD>The file filters reside here.

	<DT>/usr/sbin
	<DD>The <CODE>accept</CODE>, <CODE>cupsd</CODE>,
	<CODE>lpadmin</CODE>, <CODE>lpc</CODE>, and <CODE>reject</CODE>
	commands reside here.

	<DT>/usr/share/cups
	<DD>This is the root directory of the CUPS static data.

	<DT>/usr/share/cups/charsets
	<DD>The character set files reside here.

	<DT>/usr/share/cups/data
	<DD>The filter data files reside here.

	<DT>/usr/share/cups/fonts
	<DD>The <CODE>pstoraster</CODE> font files reside here.

	<DT>/usr/share/cups/model
	<DD>The sample PPD files reside here.

	<DT>/usr/share/cups/pstoraster
	<DD>The <CODE>pstoraster</CODE> data files reside here.

	<DT>/usr/share/doc/cups
	<DD>The scheduler documentation files reside here.

	<DT>/var/log/cups
	<DD>The <CODE>access_log</CODE>, <CODE>error_log</CODE>, and
	<CODE>page_log</CODE> files reside here.

	<DT>/var/spool/cups
	<DD>This directory contains print job files.

</DL>

<EMBED SRC="glossary.shtml">

</BODY>
</HTML>