/usr/share/cups/examples/laserjet-pjl.drv is in cups-ppdc 1.7.2-0ubuntu1.11.
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 | // Include standard font and media definitions
#include <font.defs>
#include <media.defs>
// Include HP-PCL driver definitions
#include <pcl.h>
// Specify that this driver uses the HP-PCL driver...
DriverType pcl
// Specify the driver options via the model number...
ModelNumber ($PCL_PAPER_SIZE $PCL_PJL $PCL_PJL_RESOLUTION)
// List the fonts that are supported, in this case all standard
// fonts...
Font *
// Manufacturer and driver version
Manufacturer "HP"
Version 2.0
// Supported page sizes and their margins
HWMargins 18 12 18 12
*MediaSize Letter
MediaSize Legal
MediaSize Executive
MediaSize Monarch
MediaSize Statement
MediaSize FanFoldGermanLegal
HWMargins 18 12.72 18 12.72
MediaSize Env10
HWMargins 9.72 12 9.72 12
MediaSize A4
MediaSize A5
MediaSize B5
MediaSize EnvC5
MediaSize EnvDL
MediaSize EnvISOB5
MediaSize Postcard
MediaSize DoublePostcard
// Only black-and-white output with mode 3 compression...
ColorModel Gray k chunky 3
// Supported resolutions
Resolution - 1 0 0 0 "300dpi/300 DPI"
*Resolution - 8 0 0 0 "600dpi/600 DPI"
// Supported input slots
*InputSlot 7 "Auto/Automatic Selection"
InputSlot 2 "Manual/Tray 1 - Manual Feed"
InputSlot 4 "Upper/Tray 1"
InputSlot 1 "Lower/Tray 2"
InputSlot 5 "LargeCapacity/Tray 3"
// Tray 3 is an option...
Installable "OptionLargeCapacity/Tray 3 Installed"
UIConstraints "*OptionLargeCapacity False *InputSlot LargeCapacity"
// PJL options
Attribute cupsPJL cupsRET "@PJL SET SMOOTHING=%?False:OFF;%?True:ON;%n"
Option "cupsRET/Smoothing" Boolean DocumentSetup 10
Choice "False/Off" ""
*Choice "True/On" ""
Attribute cupsPJL cupsTonerSave "@PJL SET ECONOMODE=%?False:OFF;%?True:ON;%n"
Option "cupsTonerSave/Save Toner" Boolean DocumentSetup 10
*Choice "False/No" ""
Choice "True/Yes" ""
{
// HP LaserJet 2100 Series
Throughput 10
ModelName "LaserJet 2100 Series PJL"
PCFileName "hpljt212.ppd"
}
{
// LaserJet 2200 and 2300 series have duplexer option...
Duplex normal
Installable "OptionDuplex/Duplexer Installed"
UIConstraints "*OptionDuplex False *Duplex"
{
// HP LaserJet 2200 Series
Throughput 19
ModelName "LaserJet 2200 Series PJL"
PCFileName "hpljt222.ppd"
}
{
// HP LaserJet 2300 Series
Throughput 25
ModelName "LaserJet 2300 Series PJL"
PCFileName "hpljt232.ppd"
}
}
|