[cups.bugs] [MOD] STR #1221: PPD file and docs for the rastertortl

Franz Pförtsch franz.pfoertsch at brose.net
Mon Jul 18 07:46:12 PDT 2005


Hello,

after reading the http://www.cups.org/str.php?L1221
 I convertet my rtl.drv to pclx.

I tried it with black and white and it worked but isn't well tested.

It's only a hack, comments are welcome!

somebody has to classify the HP DesignJets to the ModelNumber Constants
->  http://www.cups.org/ddk/cupsddk.html#4_2_1

regards
Franz


---8<------

// Include standard font and media definitions
#include <font.defs>
#include <media.defs>

// Specify that this driver uses the HP-RTL driver...
#include <pcl.h>

// List the fonts that are supported, in this case all standard
// fonts...
Font *
// Specify that this driver uses the HP-PCL driver...
DriverType pcl

// Manufacturer, model name, and version
Manufacturer "HP"
Version 1.0

Cutter true
Throughput 1

// Supported page sizes
HWMargins 14.4 28.8 14.4 28.8
MediaSize Letter
MediaSize Tabloid
MediaSize AnsiC
MediaSize AnsiD
MediaSize AnsiE
MediaSize ARCHA
MediaSize ARCHA.Transverse
MediaSize ARCHB
MediaSize ARCHB.Transverse
MediaSize ARCHC
MediaSize ARCHC.Transverse
MediaSize ARCHD
MediaSize ARCHD.Transverse
MediaSize A0
MediaSize A1
MediaSize A1.Transverse
MediaSize A2
MediaSize A2.Transverse
MediaSize A3
*MediaSize A3.Transverse
MediaSize A4
MediaSize A4.Transverse
MediaSize A5
MediaSize A5.Transverse

VariablePaperSize true
MinSize 288 288
MaxSize 2592 3600

// Supported resolutions

  Option "Resolution/Output Resolution" PickOne AnySetup 20.0
    Choice "150dpi/150 DPI" "<</HWResolution[150 150]>>setpagedevice"
    *Choice "300dpi/300 DPI" "<</HWResolution[300 300]>>setpagedevice"
    Choice "600dpi/600 DPI" "<</HWResolution[600 600]>>setpagedevice"
  Option "OutputMode/Print Quality" PickOne AnySetup 50.0
    Choice "Draft/Draft" "    <</OutputType (Draft)>>setpagedevice"
    *Choice "Normal/Normal" " <</OutputType (Normal)>>setpagedevice"
    Choice "Best/Best" "      <</OutputType (Best)>>setpagedevice"

{
  ModelName "DesignJet 600 pcl"
  PCFileName "dsgnjt600pcl.ppd"
//  ModelNumber ($RTL_PJL)
    ModelNumber ($PCL_PAPER_SIZE $PCL_PJL_HPGL2 $PCL_PJL
$PCL_PJL_RESOLUTION)

  ColorDevice false
}

{
// 750C is a color model
  ModelName "DesignJet 750cc pcl"
  PCFileName "dsgnjt750ccpcl.ppd"
//  ModelNumber ($RTL_PJL $RTL_PJL_EXT)
    ModelNumber ($PCL_PAPER_SIZE $PCL_RASTER_END_COLOR $PCL_RASTER_CID
$PCL_RASTER_SIMPLE $PCL_RASTER_RGB24 $PCL_PJL $PCL_PJL_PAPERWIDTH
$PCL_PJL_HPGL2 $PCL_PJL_RESOLUTION)



  ColorDevice true
  ColorModel Gray/Grayscale  w    chunky 1
 *ColorModel Black           k    chunky 1
  ColorModel RGB/"RGB Color"   rgb  chunky 1

}

{
// 1050C is a color model
  ModelName "DesignJet 1050c pcl"
  PCFileName "dsgnjt1050cpcl.ppd"
//  ModelNumber ($RTL_PJL $RTL_PJL_EXT RTL_CMYK)
    ModelNumber ($PCL_PAPER_SIZE $PCL_PJL $PCL_PJL_RESOLUTION)

  ColorDevice true
  ColorModel Gray/Grayscale  w    chunky 1
 *ColorModel Black           k    chunky 1
  ColorModel cmyk/"CMYK Color" cmyk chunky 1
  ColorModel cmyk/"CMYK Color" cmyk banded 1
}







More information about the cups-devel mailing list