Printer Driver(OEMUNI): Black Output
- From: "Majid" <majid.jahanshahi@xxxxxxxxx>
- Date: Sun, 18 Jun 2006 04:03:00 GMT
i am developing a printer driver and i just want to output bitmap data
to the printer so i used the following gpd
but i just receive a black output(zeros) for that.
i just used imageprocessing function and redirected output to a file.
does my gdp file have any problems or should i do anything special?
thanks
*GPDFileName: "oem.gpd"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*ModelName: "Band dump Bitmap Driver"
*MasterUnits: PAIR(1200, 1200)
*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 99
*PrintRate: 8
*PrintRateUnit: PPM
*PrintRatePPM: 8
*Feature: Orientation
{
*rcNameID: =ORIENTATION_DISPLAY
*DefaultOption: PORTRAIT
*Option: PORTRAIT
{
*rcNameID: =PORTRAIT_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.6
*Cmd: ""
}
}
*Option: LANDSCAPE_CC90
{
*rcNameID: =LANDSCAPE_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.6
*Cmd: ""
}
}
}
*Feature: InputBin
{
*rcNameID: =PAPER_SOURCE_DISPLAY
*DefaultOption: UPPER
*Option: UPPER
{
*rcNameID: =UPPER_TRAY_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.9
*Cmd: ""
}
}
}
*Feature: Resolution
{
*rcNameID: =RESOLUTION_DISPLAY
*DefaultOption: Option1
*Option: Option1
{
*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 : "" }
*Command: CmdEndRaster { *Cmd : "" }
*Command: CmdSendBlockData { *Cmd : "" }
*Command: CmdSelect
{
*Order: DOC_SETUP.4
*Cmd: ""
}
}
*Option: Option2
{
*Name: "150 x 150 " =DOTS_PER_INCH
*DPI: PAIR(150, 150)
*TextDPI: PAIR(300, 300)
*MinStripBlankPixels: 32
EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : "" }
*Command: CmdEndRaster { *Cmd : "" }
*Command: CmdSendBlockData { *Cmd : "" }
*Command: CmdSelect
{
*Order: DOC_SETUP.4
*Cmd: ""
}
}
}
*Feature: PaperSize
{
*rcNameID: =PAPER_SIZE_DISPLAY
*DefaultOption: LETTER
*Option: LETTER
{
*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
*switch: Orientation
{
*case: PORTRAIT
{
*%(9600, 12648)
*% *PrintableArea: PAIR(9600, 12648)
*PrintableArea: PAIR(9564, 12600)
*% *PrintableArea: PAIR(5000,5000)
*PrintableOrigin: PAIR(300, 300)
*% *PrintableOrigin: PAIR(300, 500)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable width is adjusted (9600->9592) so
it isdivisible by the resolution X scale.
*% Warning: the following printable length is adjusted (12648->12640)
so itis divisible by the resolution Y scale.
*PrintableArea: PAIR(9592, 12640)
*% Warning: the following printable origin X is adjusted (300->304) so
it isdivisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (300->304) so
it isdivisible by the resolution Y scale.
*PrintableOrigin: PAIR(304, 304)
}
}
*CursorOrigin: PAIR(300, 180)
*Command: CmdSelect
{
*%5760 -- 7560
*Order: DOC_SETUP.10
*Cmd: ""
}
}
*case: LANDSCAPE_CC90
{
*%(9720, 12648)
*PrintableArea: PAIR(9760, 12688)
*PrintableOrigin: PAIR(200, 272)
*CursorOrigin: PAIR(200, 12960)
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: ""
}
}
}
}
*Option: LEGAL
{
*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
*switch: Orientation
{
*case: PORTRAIT
{
*PrintableArea: PAIR(9540, 16248)
*PrintableOrigin: PAIR(300, 300)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable width is adjusted (9600->9592) so
it isdivisible by the resolution X scale.
*% Warning: the following printable length is adjusted (16248->16240)
so itis divisible by the resolution Y scale.
*PrintableArea: PAIR(9592, 16240)
*% Warning: the following printable origin X is adjusted (300->304) so
it isdivisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (300->304) so
it isdivisible by the resolution Y scale.
*PrintableOrigin: PAIR(304, 304)
}
}
*CursorOrigin: PAIR(300, 180)
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: ""
}
}
*case: LANDSCAPE_CC90
{
*PrintableArea: PAIR(9760, 16288)
*PrintableOrigin: PAIR(200, 272)
*CursorOrigin: PAIR(200, 16560)
*Command: CmdSelect
{
*Order: DOC_SETUP.10
*Cmd: ""
}
}
}
}
}
*Feature: MediaType
{
*rcNameID: =MEDIA_TYPE_DISPLAY
*DefaultOption: STANDARD
*Option: STANDARD
{
*rcNameID: =PLAIN_PAPER_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.14
*Cmd: ""
}
}
*Option: TRANSPARENCY
{
*rcNameID: =TRANSPARENCY_DISPLAY
*Command: CmdSelect
{
*Order: DOC_SETUP.14
*Cmd: ""
}
}
}
*Feature: ColorMode
{
*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
*HelpIndex: 12004
*DefaultOption: 24bpp
*Option: 24bpp
{
*rcNameID: =24BPP_DISPLAY
*DevNumOfPlanes: 0
*DevBPP: 0
*DrvBPP: 24
*IPCallbackID: 24
*Command: CmdEnableDRC { *Cmd : "" }
*PaletteSize: 256
*PaletteProgrammable? : TRUE
*Command: CmdDefinePaletteEntry { *Cmd : "" }
*Command: CmdSelectPaletteEntry { *Cmd : "" }
*Command: CmdSetSrcBmpWidth { *Cmd : "" }
*Command: CmdSelect
{
*Order: PAGE_SETUP.16
*Cmd: ""
}
}
}
*Feature: Halftone
{
*rcNameID: =HALFTONING_DISPLAY
*HelpIndex: 12005
*DefaultOption: HT_PATSIZE_AUTO
*Option: HT_PATSIZE_AUTO
{
*rcNameID: =HT_AUTO_SELECT_DISPLAY
}
*Option: HT_PATSIZE_SUPERCELL_M
{
*rcNameID: =HT_SUPERCELL_DISPLAY
}
*Option: HT_PATSIZE_6x6_M
{
*rcNameID: =HT_DITHER6X6_DISPLAY
}
*Option: HT_PATSIZE_8x8_M
{
*rcNameID: =HT_DITHER8X8_DISPLAY
}
}
*Command: CmdStartDoc
{
*Order: DOC_SETUP.5
*Cmd: ""
}
*Command: CmdStartPage
{
*Order: PAGE_SETUP.1
*Cmd: ""
}
*Command: CmdEndJob
{
*Order: JOB_FINISH.1
*Cmd: ""
}
*Command: CmdCopies
{
*Order: DOC_SETUP.11
*Cmd: ""
}
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_RA_ABLE)
*MemoryUsage: LIST(FONT)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 300
*YMoveUnit: 300
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }
*DefaultCTT: 0
.
- Follow-Ups:
- Re: Printer Driver(OEMUNI): Black Output
- From: Jürgen Hollfelder
- Re: Printer Driver(OEMUNI): Black Output
- From: Majid
- Re: Printer Driver(OEMUNI): Black Output
- Prev by Date: Re: 25 microseconds?
- Next by Date: RE: Getting Encryption Req from OID_802_11_BSSID_LIST query?
- Previous by thread: Getting Encryption Req from OID_802_11_BSSID_LIST query?
- Next by thread: Re: Printer Driver(OEMUNI): Black Output
- Index(es):
Relevant Pages
|