1 // Include standard font and media definitions
5 // Specify this is a PostScript printer driver
8 // List the fonts that are supported, in this case all standard fonts
11 // Manufacturer, model name, and version
13 ModelName "Foo LaserProofer 2000"
16 // PostScript printer attributes
17 Attribute DefaultColorSpace "" Gray
18 Attribute LandscapeOrientation "" Minus90
19 Attribute LanguageLevel "" "3"
20 Attribute Product "" "(Foo LaserProofer 2000)"
21 Attribute PSVersion "" "(3010) 0"
22 Attribute TTRasterizer "" Type42
24 // Supported page sizes
29 // Query command for page size
30 Attribute "?PageSize" "" "
32 currentpagedevice /PageSize get aload pop
33 2 copy gt {exch} if (Unknown)
35 dup [612 792] (Letter) put
36 dup [612 1008] (Legal) put
37 dup [595 842] (A4) put
38 {exch aload pop 4 index sub abs 5 le exch
39 5 index sub abs 5 le and
40 {exch pop exit} {pop} ifelse
41 } bind forall = flush pop pop
44 // Specify the name of the PPD file we want to generate
45 PCFileName "fooproof.ppd"