]> git.ipfire.org Git - thirdparty/cups.git/blame - examples/constraint.drv
Changelog.
[thirdparty/cups.git] / examples / constraint.drv
CommitLineData
ab798324 1// Include standard font and media definitions
2#include <font.defs>
3#include <media.defs>
4
5// List the fonts that are supported, in this case all standard
6// fonts...
7Font *
8
9// Manufacturer, model name, and version
10Manufacturer "Foo"
11ModelName "FooJet 2000"
12Version 1.0
13
14// Each filter provided by the driver...
15Filter application/vnd.cups-raster 100 rastertofoo
16
17// Supported page sizes
18*MediaSize Letter
19MediaSize A4
20
21// Supported resolutions
22*Resolution k 8 0 0 0 "600dpi/600 DPI"
23
24// Installable Option Group
25Group "InstallableOptions/Options Installed"
26
27 // Duplexing unit option
28 Option "Option1/Duplexing Unit" Boolean AnySetup 10
29 Choice True/Installed ""
30 *Choice "False/Not Installed" ""
31
32// General Option Group
33Group General
34
35 // Duplexing option
36 Option "Duplex/Two-Sided Printing" PickOne AnySetup 10
37 *Choice "None/No" "<</Duplex false>>setpagedevice"
38 Choice "DuplexNoTumble/Long Edge Binding"
39 "<</Duplex true/Tumble false>>setpagedevice"
40 Choice "DuplexTumble/Short Edge Binding"
41 "<</Duplex true/Tumble true>>setpagedevice"
42
43// Only allow duplexing if the duplexer is installed
44UIConstraints "*Duplex *Option1 False"
45
46// Specify the name of the PPD file we want to generate...
47PCFileName "foojet2k.ppd"
48