]> git.ipfire.org Git - thirdparty/cups.git/blob - examples/laserjet-pjl.drv
Changelog.
[thirdparty/cups.git] / examples / laserjet-pjl.drv
1 // Include standard font and media definitions
2 #include <font.defs>
3 #include <media.defs>
4
5 // Include HP-PCL driver definitions
6 #include <pcl.h>
7
8 // Specify that this driver uses the HP-PCL driver...
9 DriverType pcl
10
11 // Specify the driver options via the model number...
12 ModelNumber ($PCL_PAPER_SIZE $PCL_PJL $PCL_PJL_RESOLUTION)
13
14 // List the fonts that are supported, in this case all standard
15 // fonts...
16 Font *
17
18 // Manufacturer and driver version
19 Manufacturer "HP"
20 Version 2.0
21
22 // Supported page sizes and their margins
23 HWMargins 18 12 18 12
24 *MediaSize Letter
25 MediaSize Legal
26 MediaSize Executive
27 MediaSize Monarch
28 MediaSize Statement
29 MediaSize FanFoldGermanLegal
30
31 HWMargins 18 12.72 18 12.72
32 MediaSize Env10
33
34 HWMargins 9.72 12 9.72 12
35 MediaSize A4
36 MediaSize A5
37 MediaSize B5
38 MediaSize EnvC5
39 MediaSize EnvDL
40 MediaSize EnvISOB5
41 MediaSize Postcard
42 MediaSize DoublePostcard
43
44 // Only black-and-white output with mode 3 compression...
45 ColorModel Gray k chunky 3
46
47 // Supported resolutions
48 Resolution - 1 0 0 0 "300dpi/300 DPI"
49 *Resolution - 8 0 0 0 "600dpi/600 DPI"
50
51 // Supported input slots
52 *InputSlot 7 "Auto/Automatic Selection"
53 InputSlot 2 "Manual/Tray 1 - Manual Feed"
54 InputSlot 4 "Upper/Tray 1"
55 InputSlot 1 "Lower/Tray 2"
56 InputSlot 5 "LargeCapacity/Tray 3"
57
58 // Tray 3 is an option...
59 Installable "OptionLargeCapacity/Tray 3 Installed"
60 UIConstraints "*OptionLargeCapacity False *InputSlot LargeCapacity"
61
62 // PJL options
63 Attribute cupsPJL cupsRET "@PJL SET SMOOTHING=%?False:OFF;%?True:ON;%n"
64
65 Option "cupsRET/Smoothing" Boolean DocumentSetup 10
66 Choice "False/Off" ""
67 *Choice "True/On" ""
68
69 Attribute cupsPJL cupsTonerSave "@PJL SET ECONOMODE=%?False:OFF;%?True:ON;%n"
70
71 Option "cupsTonerSave/Save Toner" Boolean DocumentSetup 10
72 *Choice "False/No" ""
73 Choice "True/Yes" ""
74
75 {
76 // HP LaserJet 2100 Series
77 Throughput 10
78 ModelName "LaserJet 2100 Series PJL"
79 PCFileName "hpljt212.ppd"
80 }
81
82 {
83 // LaserJet 2200 and 2300 series have duplexer option...
84 Duplex normal
85 Installable "OptionDuplex/Duplexer Installed"
86 UIConstraints "*OptionDuplex False *Duplex"
87
88 {
89 // HP LaserJet 2200 Series
90 Throughput 19
91 ModelName "LaserJet 2200 Series PJL"
92 PCFileName "hpljt222.ppd"
93 }
94
95 {
96 // HP LaserJet 2300 Series
97 Throughput 25
98 ModelName "LaserJet 2300 Series PJL"
99 PCFileName "hpljt232.ppd"
100 }
101 }