*% *% Copyright (c) 1997 - 1999 Microsoft Corporation *% All Rights Reserved. *% *% This is based on HPLJ5 in the DDK samples *GPDSpecVersion: "1.0" *GPDFileName: "HPLJ5.GPD" *GPDFileVersion: "1.0" *Include: "StdNames.gpd" *%Include: "ttfsub.gpd" *ModelName: "HP LaserJet 5" *MasterUnits: PAIR(1200, 1200) *ResourceDLL: "pcl5eres.dll" *PrintRate: 12 *PrintRatePPM: 12 *PrintRateUnit: PPM *PrinterType: PAGE *MaxCopies: 32767 *FontCartSlots: 2 *Feature: Orientation { *rcNameID: =ORIENTATION_DISPLAY *DefaultOption: PORTRAIT *Option: PORTRAIT { *rcNameID: =PORTRAIT_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.8 *NoPageEject?: TRUE *Cmd: "<1B>&l0o1E" } } *Option: LANDSCAPE_CC90 { *rcNameID: =LANDSCAPE_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.8 *NoPageEject?: TRUE *Cmd: "<1B>&l1o1E" } } } *Feature: InputBin { *rcNameID: =PAPER_SOURCE_DISPLAY *DefaultOption: Option1 *Option: Option1 { *rcNameID: 271 *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l0H" } } *Option: UPPER { *rcNameID: =UPPER_TRAY_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l4H" } } *Option: MANUAL { *rcNameID: =MANUAL_FEED_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l2H" } } *Option: LOWER { *rcNameID: =LOWER_TRAY_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l1H" } } *Option: ENVFEED { *rcNameID: =ENV_FEED_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l6H" } } *Option: LARGECAPACITY { *rcNameID: =LARGE_CAP_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.11 *Cmd: "<1B>&l5H" } } } *Feature: Resolution { *rcNameID: =RESOLUTION_DISPLAY *DefaultOption: Option1 *Option: Option1 { *Name: "600 x 600 " =DOTS_PER_INCH *DPI: PAIR(600, 600) *TextDPI: PAIR(600, 600) *MinStripBlankPixels: 32 EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING) *SpotDiameter: 100 *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" } *Command: CmdEndRaster { *Cmd : "<1B>*rB" } *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" } *Command: CmdSelect { *Order: DOC_SETUP.6 *Cmd: "@PJL SET RESOLUTION=600<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t600R" } } *Option: Option2 { *Name: "300 x 300 " =DOTS_PER_INCH *DPI: PAIR(300, 300) *TextDPI: PAIR(300, 300) *MinStripBlankPixels: 32 EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING) *SpotDiameter: 100 *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" } *Command: CmdEndRaster { *Cmd : "<1B>*rB" } *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" } *Command: CmdSelect { *Order: DOC_SETUP.6 *Cmd: "@PJL SET RESOLUTION=300<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t300R" } } } *Feature: PaperSize { *rcNameID: =PAPER_SIZE_DISPLAY *DefaultOption: LETTER *Option: LETTER { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(9600, 12720) *PrintableOrigin: PAIR(300, 220) *CursorOrigin: PAIR(300, 220) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t5760x7656Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(9760, 12720) *PrintableOrigin: PAIR(200, 240) *CursorOrigin: PAIR(200, 12960) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l2a8c1E<1B>*p0x0Y<1B>*c0t7652x5880Y" } } } } *Option: LEGAL { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 5230 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(9600, 16320) *PrintableOrigin: PAIR(300, 200) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t5760x9864Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(9760, 16320) *PrintableOrigin: PAIR(200, 240) *CursorOrigin: PAIR(200, 16560) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l3a8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y" } } } } *Option: EXECUTIVE { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(8100, 12120) *PrintableOrigin: PAIR(248, 240) *CursorOrigin: PAIR(248, 240) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t4922x7272Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(8220, 12120) *PrintableOrigin: PAIR(240, 240) *CursorOrigin: PAIR(160, 12360) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l1a8c1E<1B>*p0x0Y<1B>*c0t7272x5028Y" } } } } *Option: A4 { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4249 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(9344, 13548) *PrintableOrigin: PAIR(248, 200) *CursorOrigin: PAIR(248, 200) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t5657x8177Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(9424, 13548) *PrintableOrigin: PAIR(240, 240) *CursorOrigin: PAIR(160, 13788) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l26a8c1E<1B>*p0x0Y<1B>*c0t8128x5762Y" } } } } *Option: ENV_10 { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(4336, 10800) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t2614x6624Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(4356, 10800) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(200, 11100) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l81a8c1E<1B>*p0x0Y<1B>*c0t6480x2734Y" } } } } *Option: ENV_DL { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(4576, 9792) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t2757x6019Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(4596, 9792) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(200, 10092) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l90a8c1E<1B>*p0x0Y<1B>*c0t5875x2878Y" } } } } *Option: ENV_C5 { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(7036, 10224) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t4234x6278Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(7056, 10224) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(200, 10524) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l91a8c1E<1B>*p0x0Y<1B>*c0t6134x4354Y" } } } } *Option: ENV_MONARCH { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(4036, 8400) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t2434x5184Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(4056, 8400) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(200, 8700) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l80a8c1E<1B>*p0x0Y<1B>*c0t5040x2557Y" } } } } *Option: ENV_B5 { *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *PageProtectMem: 4109 *switch: Orientation { *case: PORTRAIT { *PrintableArea: PAIR(7716, 11208) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(300, 180) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t4630x6869Y" } } *case: LANDSCAPE_CC90 { *PrintableArea: PAIR(7716, 11208) *PrintableOrigin: PAIR(300, 300) *CursorOrigin: PAIR(200, 11508) *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l100a8c1E<1B>*p0x0Y<1B>*c0t6725x4750Y" } } } } *Option: CUSTOMSIZE { *rcNameID: =USER_DEFINED_SIZE_DISPLAY *MinSize: PAIR(4200, 7560) *MaxSize: PAIR(10200, 32767) *MaxPrintableWidth: 10200 *MinLeftMargin: 100 *CenterPrintable?: FALSE *PageProtectMem: 1692 *switch: Orientation { *case: PORTRAIT { *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l101a4d1e" %d{(PhysPaperLength / 300) - 1}"F<1B>*p0x0Y<1B>*p0x0Y<1B>*c0t" %d{(((PhysPaperWidth - 598) * 6) / 10) } + "x" %d{(((PhysPaperLength - 440) * 6) / 10) }"Y" } } *case: LANDSCAPE_CC90 { *Command: CmdSelect { *Order: DOC_SETUP.12 *Cmd: "<1B>&l101a4d1e" %d{(PhysPaperLength / 300) - 1}"f" %d{(((PhysPaperLength - 16800) * 6) / 10) } + "Z<1B>*p0x0Y<1B>*c0t" %d{(((PhysPaperLength - 600) * 6) / 10) }"x" %d{(((PhysPaperWidth - 600) * 6) / 10) } + "Y" } } } } } *Feature: Economode { *rcNameID: 377 *DefaultOption: Option1 *Option: Option1 { *rcNameID: 265 } *Option: Option2 { *rcNameID: 266 *Command: CmdSelect { *Order: DOC_SETUP.5 *Cmd: "@PJL SET ECONOMODE=OFF<0A>" } } *Option: Option3 { *rcNameID: 267 *Command: CmdSelect { *Order: DOC_SETUP.5 *Cmd: "@PJL SET ECONOMODE=ON<0A>" } } } *Feature: RET { *rcNameID: 378 *DefaultOption: Option1 *Option: Option1 { *rcNameID: 293 } *Option: Option2 { *rcNameID: 297 *Command: CmdSelect { *Order: DOC_SETUP.4 *Cmd: "@PJL SET RET=LIGHT<0A>" } } *Option: Option3 { *rcNameID: 298 *Command: CmdSelect { *Order: DOC_SETUP.4 *Cmd: "@PJL SET RET=MEDIUM<0A>" } } *Option: Option4 { *rcNameID: 299 *Command: CmdSelect { *Order: DOC_SETUP.4 *Cmd: "@PJL SET RET=DARK<0A>" } } *Option: Option5 { *rcNameID: 300 *Command: CmdSelect { *Order: DOC_SETUP.4 *Cmd: "@PJL SET RET=OFF<0A>" } } } *Feature: Halftone { *rcNameID: =HALFTONING_DISPLAY *DefaultOption: HT_PATSIZE_AUTO *Option: HT_PATSIZE_AUTO { *rcNameID: =HT_AUTO_SELECT_DISPLAY } *Option: HT_PATSIZE_6x6_M { *rcNameID: =HT_DITHER6X6_DISPLAY } *Option: HT_PATSIZE_8x8_M { *rcNameID: =HT_DITHER8X8_DISPLAY } } *Feature: Memory { *rcNameID: =PRINTER_MEMORY_DISPLAY *DefaultOption: 2048KB *MemConfigKB: PAIR(2048, 1350) *MemConfigKB: PAIR(3072, 2250) *MemConfigKB: PAIR(4096, 3150) *MemConfigKB: PAIR(5120, 4050) *MemConfigKB: PAIR(6144, 4950) *MemConfigKB: PAIR(7168, 5850) *MemConfigKB: PAIR(8192, 6750) *MemConfigKB: PAIR(9216, 7650) *MemConfigKB: PAIR(10240, 8550) *MemConfigKB: PAIR(11264, 9450) *MemConfigKB: PAIR(12288, 10350) *MemConfigKB: PAIR(13312, 11250) *MemConfigKB: PAIR(14336, 12150) *MemConfigKB: PAIR(15360, 13050) *MemConfigKB: PAIR(16384, 13950) *MemConfigKB: PAIR(17408, 14850) *MemConfigKB: PAIR(18432, 15750) *MemConfigKB: PAIR(19456, 16650) *MemConfigKB: PAIR(20480, 17550) *MemConfigKB: PAIR(21504, 18450) *MemConfigKB: PAIR(22528, 19350) *MemConfigKB: PAIR(23552, 20250) *MemConfigKB: PAIR(24576, 21150) *MemConfigKB: PAIR(25600, 22050) *MemConfigKB: PAIR(26624, 22950) *MemConfigKB: PAIR(27648, 23850) *MemConfigKB: PAIR(28672, 24750) *MemConfigKB: PAIR(29696, 25650) *MemConfigKB: PAIR(30720, 26550) *MemConfigKB: PAIR(31744, 27450) *MemConfigKB: PAIR(32768, 28350) *MemConfigKB: PAIR(33792, 29250) *MemConfigKB: PAIR(34816, 30150) *MemConfigKB: PAIR(35840, 31050) *MemConfigKB: PAIR(36864, 31950) *MemConfigKB: PAIR(37888, 32850) *MemConfigKB: PAIR(38912, 33750) *MemConfigKB: PAIR(39936, 34650) *MemConfigKB: PAIR(40960, 35550) *MemConfigKB: PAIR(41984, 36450) *MemConfigKB: PAIR(43008, 37350) *MemConfigKB: PAIR(44032, 38250) *MemConfigKB: PAIR(45056, 39150) *MemConfigKB: PAIR(46080, 40050) *MemConfigKB: PAIR(47104, 40950) *MemConfigKB: PAIR(48128, 41850) *MemConfigKB: PAIR(49152, 42750) *MemConfigKB: PAIR(50176, 43650) *MemConfigKB: PAIR(51200, 44550) *MemConfigKB: PAIR(52224, 45540) *MemConfigKB: PAIR(53248, 46350) *MemConfigKB: PAIR(54272, 47250) *MemConfigKB: PAIR(55296, 48150) *MemConfigKB: PAIR(56320, 49050) *MemConfigKB: PAIR(57344, 49950) *MemConfigKB: PAIR(58368, 50850) *MemConfigKB: PAIR(59392, 51750) *MemConfigKB: PAIR(60416, 52650) *MemConfigKB: PAIR(61440, 53550) *MemConfigKB: PAIR(62464, 54450) *MemConfigKB: PAIR(63488, 55350) *MemConfigKB: PAIR(64512, 56250) *MemConfigKB: PAIR(65536, 57150) *MemConfigKB: PAIR(66560, 58050) *MemConfigKB: PAIR(67584, 58950) } *Feature: Duplex { *rcNameID: =TWO_SIDED_PRINTING_DISPLAY *DefaultOption: NONE *Option: NONE { *rcNameID: =NONE_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.9 *Cmd: "<1B>&l0S" } } *Option: VERTICAL { *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.10 *Cmd: "<1B>&l1S" } } *Option: HORIZONTAL { *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.10 *Cmd: "<1B>&l2S" } } } *Feature: DuplexUnit { *FeatureType: PRINTER_PROPERTY *rcNameID: 429 *DefaultOption: Installed *Option: NotInstalled { *rcNameID: 444 *DisabledFeatures: LIST(Duplex) *Constraints: LIST(Duplex.VERTICAL, Duplex.HORIZONTAL) } *Option: Installed { *rcNameID: 443 } } *Feature: PageProtect { *rcNameID: =PAGE_PROTECTION_DISPLAY *DefaultOption: OFF *Option: ON { *rcNameID: =ON_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.1 *Cmd: "<1B>%%-12345X@PJL SET PAGEPROTECT=ON<0A>" } } *Option: OFF { *rcNameID: =OFF_DISPLAY *Command: CmdSelect { *Order: DOC_SETUP.1 *Cmd: "<1B>%%-12345X@PJL SET PAGEPROTECT=AUTO<0A>" } } } *Command: CmdStartDoc { *Order: DOC_SETUP.7 *Cmd: "<1B>&u600D<1B>*r0F" } *Command: CmdStartPage { *Order: PAGE_SETUP.1 *Cmd: "<1B>*b0M<0D>" } *Command: CmdEndJob { *Order: JOB_FINISH.1 *Cmd: "<1B>E<1B>%%-12345X" } *Command: CmdCopies { *Order: DOC_SETUP.13 *Cmd: "<1B>&l" %d[1,32767]{NumOfCopies}"X" } *RotateCoordinate?: TRUE *RotateRaster?: TRUE *RotateFont?: TRUE *TextCaps: LIST(TC_CR_90,TC_UA_ABLE) *MemoryUsage: LIST(FONT) *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE) *XMoveThreshold: 0 *YMoveThreshold: 0 *XMoveUnit: 600 *YMoveUnit: 600 *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" } *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" } *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" } *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" } *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" } *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" } *Command: CmdCR { *Cmd : "<0D>" } *Command: CmdLF { *Cmd : "<0A>" } *Command: CmdFF { *Cmd : "<0C>" } *Command: CmdBackSpace { *Cmd : "<08>" } *Command: CmdUniDirectionOn { *Cmd : "<00>" } *Command: CmdUniDirectionOff { *Cmd : "<00>" } *Command: CmdPushCursor { *Cmd : "<1B>&f0S" } *Command: CmdPopCursor { *Cmd : "<1B>&f1S" } *Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" } *EjectPageWithFF?: TRUE *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" } *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" } *Command: CmdEnableDRC { *Cmd : "<1B>*b3M" } *OutputDataFormat: H_BYTE *OptimizeLeftBound?: TRUE *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN *CursorYAfterSendBlockData: AUTO_INCREMENT *%DefaultFont: *DefaultCTT: 0 *CharPosition: BASELINE *TTFSEnabled?: TRUE *%DeviceFonts: *MinFontID: 16534 *MaxFontID: 32768 *switch: Resolution { *case: Option1 { *FontFormat: HPPCL_OUTLINE } *case: Option2 { *FontFormat: HPPCL_RES } } *Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" } *Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" } *Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" } *Command: CmdUnderlineOn { *Cmd : "<1B>&dD" } *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" } *Command: CmdWhiteTextOn { *Cmd : "<1B>*v1o1T" } *Command: CmdWhiteTextOff { *Cmd : "<1B>*v0o0T" } *MinGrayFill: 1 *MaxGrayFill: 100 *Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{(RectXSize / 2) }"A" } *Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{(RectYSize / 2) }"B" } *Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage }"g2P" } *Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" } *Command: CmdRectBlackFill { *Cmd : "<1B>*c0P" }