]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/sample.drv
Merge pull request #5621 from zdohnal/cgigetarray-sigsegv
[thirdparty/cups.git] / ppdc / sample.drv
index 20a86e57bf6e33685ecf0cc99c243c3f0a0e26ef..7ac2cb27b58363c2bcef47d05f7f2f2d4a680da4 100644 (file)
@@ -1,16 +1,11 @@
 //
-// "$Id$"
+// Driver info file for CUPS-supplied PPDs.
 //
-//   Driver info file for CUPS-supplied PPDs.
+// Copyright © 2007-2019 by Apple Inc.
+// Copyright © 1993-2006 by Easy Software Products.
 //
-//   Copyright 2007 by Apple Inc.
-//   Copyright 1993-2006 by Easy Software Products.
-//
-//   These coded instructions, statements, and computer programs are the
-//   property of Apple Inc. and are protected by Federal copyright
-//   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-//   which should have been included with this file.  If this file is
-//   file is missing or damaged, see the license at "http://www.cups.org/".
+// Licensed under Apache License v2.0.  See the file "LICENSE" for more
+// information.
 //
 
 // Include necessary files...
 #include <epson.h>
 #include <label.h>
 
+// Localizations are provided for all of the base languages supported by
+// CUPS...
+#po ar ""
+#po ca ""
+#po cs ""
+#po da ""
+#po de ""
+#po el ""
+#po es ""
+#po fi ""
+#po fr ""
+#po he ""
+#po hr ""
+#po hu ""
+#po id ""
+#po it ""
+#po ja ""
+#po ko ""
+#po ms ""
+#po no ""
+#po pl ""
+#po pt ""
+#po pt_PT ""
+#po ro ""
+#po ru ""
+#po sk ""
+#po sv ""
+#po th ""
+#po tr ""
+#po uk ""
+#po vi ""
+#po zh_CN ""
+#po zh_TW ""
+
 // MediaSize sizes used by label drivers...
-#media "w81h252/Address - 1 1/8 x 3 1/2\"" 81 252
-#media "w101h252/Large Address - 1 4/10 x 3 1/2\"" 101 252
-#media "w54h144/Return Address - 3/4 x 2\"" 54 144
-#media "w167h288/Shipping Address - 2 5/16 x 4\"" 167 288
-#media "w162h540/Internet Postage 2-Part - 2 1/4 x 7 1/2\"" 162 540
-#media "w162h504/Internet Postage 3-Part - 2 1/4 x 7\"" 162 504
-#media "w41h248/File Folder - 9/16 x 3 7/16\"" 41 248
-#media "w41h144/Hanging Folder - 9/16 x 2\"" 41 144
-#media "w153h198/3.5\" Disk - 2 1/8 x 2 3/4\"" 153 198
 #media "w90h18/1.25x0.25\"" 90 18
 #media "w90h162/1.25x2.25\"" 90 162
 #media "w108h18/1.50x0.25\"" 108 18
@@ -46,6 +66,7 @@
 #media "w144h396/2.00x5.50\"" 144 396
 #media "w162h36/2.25x0.50\"" 162 36
 #media "w162h90/2.25x1.25\"" 162 90
+#media "w162h225/30859 Paint Can Label" 162 225
 #media "w162h288/2.25x4.00\"" 162 288
 #media "w162h396/2.25x5.50\"" 162 396
 #media "w171h396/2.38x5.50\"" 171 396
 #media "w576h468/8.00x6.50\"" 576 468
 
 // Common stuff for all drivers...
-Attribute "cupsVersion" "" "1.4"
+Attribute "cupsVersion" "" "2.3"
 Attribute "FileSystem" "" "False"
 Attribute "LandscapeOrientation" "" "Plus90"
-Attribute "LanguageLevel" "" "3"
-Attribute "Product" "" "(ESP Ghostscript)"
-Attribute "Product" "" "(GPL Ghostscript)"
-Attribute "PSVersion" "" "(3010.000) 81504"
-Attribute "PSVersion" "" "(3010.000) 860"
 Attribute "TTRasterizer" "" "Type42"
 
-Copyright "Copyright 2007 by Apple Inc."
-Copyright "Copyright 1997-2007 by Easy Software Products."
+Copyright "Copyright (c) 2007-2018 by Apple Inc."
+Copyright "Copyright (c) 1997-2007 by Easy Software Products."
 Copyright ""
-Copyright "These coded instructions, statements, and computer programs are the"
-Copyright "property of Apple Inc. and are protected by Federal copyright"
-Copyright "law.  Distribution and use rights are outlined in the file \"LICENSE.txt\""
-Copyright "which should have been included with this file.  If this file is"
-Copyright "file is missing or damaged, see the license at \"http://www.cups.org/\"."
+Copyright "Licensed under Apache License v2.0.  See the file \"LICENSE\" for more"
+Copyright "information."
 
 Font *
 
-Version "1.4"
+Version "2.3"
 
 // Dymo Label Printer
 {
   Manufacturer "Dymo"
   ModelName "Label Printer"
-  PCFileName "DYMO.PPD"
+  Attribute NickName "" "Dymo Label Printer"
+  PCFileName "dymo.ppd"
   DriverType label
   ModelNumber $DYMO_3x0
   Throughput 8
-  ManualCopies No
+  ManualCopies Yes
   ColorDevice No
+  Attribute "cupsSNMPSupplies" "" "false"
 
   HWMargins 2 14.9 2 14.9
 
   *MediaSize w81h252
   MediaSize w101h252
   MediaSize w54h144
-  MediaSize w167h288
+  MediaSize w162h225
+  MediaSize w162h288
   MediaSize w162h540
   MediaSize w162h504
   MediaSize w41h248
   MediaSize w41h144
   MediaSize w153h198
 
-  Resolution k 1 0 0 0 136dpi 
-  Resolution k 1 0 0 0 203dpi 
-  *Resolution k 1 0 0 0 300dpi 
+  Resolution k 1 0 0 0 136dpi
+  Resolution k 1 0 0 0 203dpi
+  *Resolution k 1 0 0 0 300dpi
 
   Darkness 0 Light
   Darkness 1 Medium
@@ -153,12 +169,6 @@ Version "1.4"
   ColorDevice No
   Throughput 1
 
-  HWMargins 18 18 18 18
-  *MediaSize Letter
-  MediaSize Legal
-  MediaSize A4
-  MediaSize FanFoldUS
-
   HWMargins 0 0 0 0
   VariablePaperSize Yes
   MinSize 36 36
@@ -167,106 +177,40 @@ Version "1.4"
   // Epson 24-Pin Series
   {
     ModelName "24-Pin Series"
-    PCFileName "EPSON24.PPD"
+    Attribute NickName "" "Epson 24-Pin Series"
+    PCFileName "epson24.ppd"
     ModelNumber $EPSON_24PIN
 
+    HWMargins 18 18 18 18
+    *MediaSize Letter
+    MediaSize Legal
+    MediaSize A4
+    MediaSize FanFoldUS
+
     Resolution k 1 8 0 0 60dpi
     *Resolution k 1 8 0 0 120x60dpi
     Resolution k 1 24 0 0 180dpi
     Resolution k 1 24 0 0 360x180dpi
-    Resolution k 1 48 0 0 360x180dpi
+    Resolution k 1 48 0 0 360dpi
   }
 
   // Epson 9-Pin Series
   {
     ModelName "9-Pin Series"
-    PCFileName "EPSON9.PPD"
+    Attribute NickName "" "Epson 9-Pin Series"
+    PCFileName "epson9.ppd"
     ModelNumber $EPSON_9PIN
     ColorDevice No
 
-    Resolution k 1 8 0 0 60x720dpi
-    *Resolution k 1 8 0 0 120x72dpi
-    Resolution k 1 8 0 0 240x72dpi
-  }
-
-  // Epson Stylus Color Series
-  {
-    ModelName "Stylus Color Series"
-    PCFileName "STCOLOR.PPD"
-    ModelNumber $EPSON_COLOR
-    ColorDevice Yes
-
-    HWMargins 8.6 39.6 8.6 25.51
-    *MediaSize Letter
-    MediaSize Legal
-    MediaSize A4
-
-    Resolution - 1 0 0 0 180dpi
-    *Resolution - 1 0 0 0 360dpi
-    Resolution - 1 0 0 0 720dpi
-
-    *ColorModel CMYK cmyk banded 1
-    ColorModel Gray/Grayscale k chunky 1
-  }
-
-  // Epson New Stylus Color Series
-  {
-    ModelName "New Stylus Color Series"
-    PCFileName "STCOLOR2.PPD"
-    ModelNumber $EPSON_ICOLOR
-    ColorDevice Yes
-
-    HWMargins 8.6 39.6 8.6 25.51
-    *MediaSize Letter
-    MediaSize Legal
-    MediaSize A4
-
-    Resolution - 1 0 0 0 180dpi
-    *Resolution - 1 0 0 0 360dpi
-    Resolution - 1 0 0 0 720dpi
-
-    *ColorModel CMYK cmyk banded 1
-    ColorModel Gray/Grayscale k chunky 1
-  }
-
-  // Epson Stylus Color Series
-  {
-    ModelName "Stylus Photo Series"
-    PCFileName "STPHOTO.PPD"
-    ModelNumber $EPSON_PHOTO
-    ColorDevice Yes
-
-    HWMargins 8.6 39.6 8.6 25.51
-    *MediaSize Letter
-    MediaSize Legal
-    MediaSize A4
-
-    Resolution - 1 0 0 0 180dpi
-    *Resolution - 1 0 0 0 360dpi
-    Resolution - 1 0 0 0 720dpi
-
-    *ColorModel CMYK cmykcm banded 1
-    ColorModel Gray/Grayscale k chunky 1
-  }
-
-  // Epson New Stylus Color Series
-  {
-    ModelName "New Stylus Photo Series"
-    PCFileName "STPHOTO2.PPD"
-    ModelNumber $EPSON_IPHOTO
-    ColorDevice Yes
-
-    HWMargins 8.6 39.6 8.6 25.51
+    HWMargins 18 18 18 18
     *MediaSize Letter
     MediaSize Legal
     MediaSize A4
+    MediaSize FanFoldUS
 
-    Resolution - 1 0 0 0 180dpi
-    *Resolution - 1 0 0 0 360dpi
-    Resolution - 1 0 0 0 720dpi
-
-    *ColorModel CMYK cmykcm banded 1
-    ColorModel Gray/Grayscale k chunky 1
+    Resolution k 1 8 0 0 60x72dpi
+    *Resolution k 1 8 0 0 120x72dpi
+    Resolution k 1 8 0 0 240x72dpi
   }
 }
 
@@ -279,10 +223,12 @@ Version "1.4"
     DriverType hp
 
     ModelName "PCL Laser Printer"
-    PCFileName "GENERPCL.PPD"
+    Attribute NickName "" "Generic PCL Laser Printer"
+    PCFileName "generpcl.ppd"
     Throughput 8
     ModelNumber $HP_LASERJET
     ColorDevice No
+    Attribute 1284DeviceID "" "CMD:PCL;"
 
     UIConstraints "*Duplex  *Option1 False"
     UIConstraints "*PageSize A3 *InputSlot Envelope"
@@ -329,11 +275,13 @@ Version "1.4"
     DriverType ps
 
     ModelName "PostScript Printer"
-    PCFileName "GENERIC.PPD"
+    Attribute NickName "" "Generic PostScript Printer"
+    PCFileName "generic.ppd"
     Throughput 8
-    ColorDevice No
+    ColorDevice Yes
     Attribute PSVersion "" "(2016.0) 0"
     Attribute LanguageLevel "" 2
+    Attribute 1284DeviceID "" "CMD:PS;"
 
     UIConstraints "*Duplex  *Option1 False"
 
@@ -354,11 +302,12 @@ Version "1.4"
 
     Option "InputSlot/Media Source" PickOne AnySetup 10
       *Choice "Default/Printer Default" ""
-      Choice "Tray1/Tray 1" "<</ManualFeed false>>setpagedevice"
+      Choice "Upper/Cassette" "<</ManualFeed false>>setpagedevice"
       Choice "Manual/Manual Feed" "<</ManualFeed true>>setpagedevice"
 
     Duplex Yes
     Installable "Option1/Duplexer"
+    Attribute "?Option1" "" "save currentpagedevice/Duplex known{(True)}{(False)}ifelse = flush restore"
   }
 }
 
@@ -370,11 +319,13 @@ Version "1.4"
   // HP DeskJet Series
   {
     ModelName "DeskJet Series"
-    PCFileName "DESKJET.PPD"
+    Attribute NickName "" "HP DeskJet Series"
+    PCFileName "deskjet.ppd"
     ModelNumber $HP_DESKJET
     ManualCopies Yes
     ColorDevice Yes
     Throughput 1
+    Attribute 1284DeviceID "" "MFG:HP;MDL:HP DeskJet;CMD:PCL;"
 
     UIConstraints "*PageSize A3 *InputSlot Envelope"
     UIConstraints "*PageSize A4 *InputSlot Envelope"
@@ -384,7 +335,6 @@ Version "1.4"
     UIConstraints "*PageSize Legal *InputSlot Envelope"
     UIConstraints "*PageSize Letter *InputSlot Envelope"
     UIConstraints "*PageSize Tabloid *InputSlot Envelope"
-    UIConstraints "*Resolution 600dpi *ColorModel CMYK"
 
     HWMargins 18 36 18 36
     *MediaSize Letter
@@ -407,10 +357,10 @@ Version "1.4"
 
     Resolution - 1 0 0 0 150dpi
     *Resolution - 1 0 0 0 300dpi
-    Resolution k 1 0 0 0 "600dpi/600 DPI Grayscale"
+    Resolution - 1 0 0 0 600dpi
 
     *InputSlot 1 Tray
-    InputSlot 2 "Manual/Manual Feed" 
+    InputSlot 2 "Manual/Manual Feed"
     InputSlot 3 "Envelope/Envelope Feed"
 
     *MediaType 0 "Plain/Plain Paper"
@@ -423,10 +373,12 @@ Version "1.4"
   // HP LaserJet Series PCL 4/5
   {
     ModelName "LaserJet Series PCL 4/5"
-    PCFileName "LASERJET.PPD"
+    Attribute NickName "" "HP LaserJet Series PCL 4/5"
+    PCFileName "laserjet.ppd"
     Throughput 8
     ModelNumber $HP_LASERJET
     ColorDevice No
+    Attribute 1284DeviceID "" "MFG:HP;MDL:HP LaserJet;CMD:PCL;"
 
     UIConstraints "*Duplex  *Option1 False"
     UIConstraints "*PageSize A3 *InputSlot Envelope"
@@ -474,61 +426,61 @@ Version "1.4"
 {
   Manufacturer "Intellitech"
   ModelName "IntelliBar Label Printer"
-  Attribute ShortNickName "" "Intellibar Label Printer"
-  PCFileName "INTELBAR.PPD"
+  Attribute ShortNickName "" "IntelliBar Label Printer"
+  PCFileName "intelbar.ppd"
   DriverType label
   ModelNumber $INTELLITECH_PCL
   Throughput 8
   ColorDevice No
+  Attribute "cupsSNMPSupplies" "" "false"
 
   HWMargins 0 5.76 0 5.76
   VariablePaperSize Yes
   MinSize 36 36
   MaxSize 630 7128
 
-  UIConstraints "*inPrintMode Standard *inCutInterval "
-  UIConstraints "*inPrintMode Standard *inTearInterval "
-  UIConstraints "*inPrintMode Tear *inCutInterval "
-  UIConstraints "*inTearInterval *inPrintMode Cut"
-  UIConstraints "*inTearInterval *inPrintMode Standard"
+  UIConstraints "*inPrintMode Standard *inCutInterval"
+  UIConstraints "*inPrintMode Tear *inCutInterval"
+  UIConstraints "*inPrintMode Standard *inTearInterval"
+  UIConstraints "*inPrintMode Cut *inTearInterval"
 
   *MediaSize w288h432
 
-  *Resolution k 1 0 0 0 300dpi 
+  *Resolution k 1 0 0 0 300dpi
 
   Group "PrinterSettings/Printer Settings"
     Option "inPrintDensity/Print Density" PickOne DocumentSetup 20.0
       *Choice "Default/Printer Default" "<</cupsCompression -1>>setpagedevice"
       Choice "-15/-15" "<</cupsCompression 0>>setpagedevice"
-      Choice "-14/-14" "<</cupsCompression 3>>setpagedevice"
-      Choice "-13/-13" "<</cupsCompression 6>>setpagedevice"
+      Choice "-14/-14" "<</cupsCompression 4>>setpagedevice"
+      Choice "-13/-13" "<</cupsCompression 7>>setpagedevice"
       Choice "-12/-12" "<</cupsCompression 10>>setpagedevice"
-      Choice "-11/-11" "<</cupsCompression 13>>setpagedevice"
-      Choice "-10/-10" "<</cupsCompression 16>>setpagedevice"
+      Choice "-11/-11" "<</cupsCompression 14>>setpagedevice"
+      Choice "-10/-10" "<</cupsCompression 17>>setpagedevice"
       Choice "-9/-9" "<</cupsCompression 20>>setpagedevice"
-      Choice "-8/-8" "<</cupsCompression 23>>setpagedevice"
-      Choice "-7/-7" "<</cupsCompression 26>>setpagedevice"
+      Choice "-8/-8" "<</cupsCompression 24>>setpagedevice"
+      Choice "-7/-7" "<</cupsCompression 27>>setpagedevice"
       Choice "-6/-6" "<</cupsCompression 30>>setpagedevice"
-      Choice "-5/-5" "<</cupsCompression 33>>setpagedevice"
-      Choice "-4/-4" "<</cupsCompression 36>>setpagedevice"
+      Choice "-5/-5" "<</cupsCompression 34>>setpagedevice"
+      Choice "-4/-4" "<</cupsCompression 37>>setpagedevice"
       Choice "-3/-3" "<</cupsCompression 40>>setpagedevice"
-      Choice "-2/-2" "<</cupsCompression 43>>setpagedevice"
-      Choice "-1/-1" "<</cupsCompression 46>>setpagedevice"
+      Choice "-2/-2" "<</cupsCompression 44>>setpagedevice"
+      Choice "-1/-1" "<</cupsCompression 47>>setpagedevice"
       Choice "0/0" "<</cupsCompression 50>>setpagedevice"
-      Choice "1/1" "<</cupsCompression 53>>setpagedevice"
-      Choice "2/2" "<</cupsCompression 56>>setpagedevice"
+      Choice "1/1" "<</cupsCompression 54>>setpagedevice"
+      Choice "2/2" "<</cupsCompression 57>>setpagedevice"
       Choice "3/3" "<</cupsCompression 60>>setpagedevice"
-      Choice "4/4" "<</cupsCompression 63>>setpagedevice"
-      Choice "5/5" "<</cupsCompression 66>>setpagedevice"
+      Choice "4/4" "<</cupsCompression 64>>setpagedevice"
+      Choice "5/5" "<</cupsCompression 67>>setpagedevice"
       Choice "6/6" "<</cupsCompression 70>>setpagedevice"
-      Choice "7/7" "<</cupsCompression 73>>setpagedevice"
-      Choice "8/8" "<</cupsCompression 76>>setpagedevice"
+      Choice "7/7" "<</cupsCompression 74>>setpagedevice"
+      Choice "8/8" "<</cupsCompression 77>>setpagedevice"
       Choice "9/9" "<</cupsCompression 80>>setpagedevice"
-      Choice "10/10" "<</cupsCompression 83>>setpagedevice"
-      Choice "11/11" "<</cupsCompression 86>>setpagedevice"
+      Choice "10/10" "<</cupsCompression 84>>setpagedevice"
+      Choice "11/11" "<</cupsCompression 87>>setpagedevice"
       Choice "12/12" "<</cupsCompression 90>>setpagedevice"
-      Choice "13/13" "<</cupsCompression 93>>setpagedevice"
-      Choice "14/14" "<</cupsCompression 96>>setpagedevice"
+      Choice "13/13" "<</cupsCompression 94>>setpagedevice"
+      Choice "14/14" "<</cupsCompression 97>>setpagedevice"
       Choice "15/15" "<</cupsCompression 100>>setpagedevice"
     Option "inPrintRate/Print Speed" PickOne DocumentSetup 20.0
       *Choice "Default/Printer Default" "<</cupsRowFeed 0>>setpagedevice"
@@ -600,7 +552,8 @@ Version "1.4"
   // Oki 24-Pin Series
   {
     ModelName "24-Pin Series"
-    PCFileName "OKIDAT24.PPD"
+    Attribute NickName "" "Oki 24-Pin Series"
+    PCFileName "okidat24.ppd"
     ModelNumber $EPSON_24PIN
 
     Resolution k 1 8 0 0 60dpi
@@ -613,11 +566,12 @@ Version "1.4"
   // Oki 9-Pin Series
   {
     ModelName "9-Pin Series"
-    PCFileName "OKIDATA9.PPD"
+    Attribute NickName "" "Oki 9-Pin Series"
+    PCFileName "okidata9.ppd"
     ModelNumber $EPSON_9PIN
     ColorDevice No
 
-    Resolution k 1 8 0 0 60x720dpi
+    Resolution k 1 8 0 0 60x72dpi
     *Resolution k 1 8 0 0 120x72dpi
     Resolution k 1 8 0 0 240x72dpi
   }
@@ -630,11 +584,13 @@ Version "1.4"
   DriverType label
   Throughput 8
   ColorDevice False
+  Attribute "cupsSNMPSupplies" "" "false"
 
   // Zebra CPCL Label Printer
   {
     ModelName "CPCL Label Printer"
-    PCFileName "ZEBRACPL.PPD"
+    Attribute NickName "" "Zebra CPCL Label Printer"
+    PCFileName "zebracpl.ppd"
     ModelNumber $ZEBRA_CPCL
 
     HWMargins 0 0 0 0
@@ -763,7 +719,8 @@ Version "1.4"
   // Zebra EPL1 Label Printer
   {
     ModelName "EPL1 Label Printer"
-    PCFileName "ZEBRAEP1.PPD"
+    Attribute NickName "" "Zebra EPL1 Label Printer"
+    PCFileName "zebraep1.ppd"
     ModelNumber $ZEBRA_EPL_LINE
 
     HWMargins 0 0 0 0
@@ -860,7 +817,8 @@ Version "1.4"
   // Zebra EPL2 Label Printer
   {
     ModelName "EPL2 Label Printer"
-    PCFileName "ZEBRAEP2.PPD"
+    Attribute NickName "" "Zebra EPL2 Label Printer"
+    PCFileName "zebraep2.ppd"
     ModelNumber $ZEBRA_EPL_PAGE
 
     HWMargins 0 0 0 0
@@ -966,7 +924,8 @@ Version "1.4"
   // Zebra ZPL Label Printer
   {
     ModelName "ZPL Label Printer"
-    PCFileName "ZEBRA.PPD"
+    Attribute NickName "" "Zebra ZPL Label Printer"
+    PCFileName "zebra.ppd"
     ModelNumber $ZEBRA_ZPL
 
     HWMargins 0 0 0 0
@@ -1204,7 +1163,3 @@ Version "1.4"
        Choice "Never/Never" ""
   }
 }
-
-//
-// End of "$Id$".
-//