*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.10"
*GPDFileName: "KIOSK203_203.GPD"
*ModelName: "KIOSK203_203"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "KIOSK203_203.Dll"
*PrinterType: SERIAL

*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}

*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: UPPER
    *Option: UPPER
    {
        *rcNameID: =UPPER_TRAY_DISPLAY
    }
}

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "203 x 203 " =DOTS_PER_INCH
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "<16>" %l{NumOfDataBytes } }
    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option1
     *Option: Option1
    {
        *Name: "80mm x 297mm"
        *OptionID: 258
        *PageDimensions: PAIR(640, 2374)
        *PrintableArea: PAIR(640, 2334)
        *PrintableOrigin: PAIR(0, 40)
    }

   *Option: Option2
    {
        *Name: "80mm x 210mm"
        *OptionID: 259
         *PageDimensions: PAIR(640, 1679)
        *PrintableArea: PAIR(640, 1638)
        *PrintableOrigin: PAIR(0, 40)
    }
   *Option: Option3
    {
        *Name: "80mm x 200mm"
        *OptionID: 260
         *PageDimensions: PAIR(640, 1598)
        *PrintableArea: PAIR(640, 1574)
        *PrintableOrigin: PAIR(0, 24)
    }
    *Option: Option4
    {
        *Name: "80mm x 203mm"
        *OptionID: 261
        *PageDimensions: PAIR(640, 1624)
        *PrintableArea: PAIR(640, 1568)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option5
    {
        *Name: "A4(210mm x 297mm)"
        *OptionID: 279
        *PageDimensions: PAIR(1678, 2105)
        *PrintableArea: PAIR(1618, 2105)
        *PrintableOrigin: PAIR(40, 0)
    }
    *Option: CUSTOMSIZE
    {
        *Name: "User defined"
        *rcNameID:256 *% =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(8, 8)
        *MaxSize: PAIR(1780, 32767)
        *MaxPrintableWidth: 1780
        *MinLeftMargin: 0
        *CenterPrintable?: TRUE
        *TopMargin:0
        *BottomMargin:0
    }
}

*Feature: ColorMode
{
    *Name: "ColorMode"
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "Dithering Halftone"
        *DrvBPP: 1
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *IPCallbackID: 1
        *Color?: FALSE
    }
	*%*Option: Option2
    *%{
        *%*Name: "Dithering None"
        *%*DrvBPP: 1
        *%*DevNumOfPlanes: 1
        *%*DevBPP: 8
        *%*IPCallbackID: 2
        *%*Color?: FALSE
    *%}
}

*Feature: Halftone
{
    *Name: "Halftone"
    *DefaultOption: HT_PATSIZE_SUPERCELL_M
    *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
    }
}

*Feature: Conservation
{
    *Name: "Conservation"
    *DefaultOption: Option2
    *Option: Option1
    {
        *Name: "Disable"
        *OptionID: 288
    }
    *Option: Option2
    {
        *Name: "Enable"
        *OptionID: 289
    }
}
*switch: Conservation
{
 	*case: Option1
	{
		*EjectPageWithFF?: FALSE
	}
	*case: Option2
	{
		*EjectPageWithFF?: TRUE
	}
}

*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
}

*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
	*Cmd: "<1D>D<01>"
}

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
}

*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<150100><1D4F><1D>D<00>"
}

*Command: CmdCopies
{
    *Order: PAGE_SETUP.7
    *Cmd: "<1B>Q" %l[1,32767]{NumOfCopies}
}

*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_UA_ABLE,TC_RA_ABLE)
    }
}

*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveThreshold: *
*YMoveUnit: 203
*XMoveUnit: 203
*Command: CmdXMoveAbsolute
{
     *CallbackID: 101
     *Params:DestX
}
*Command: CmdYMoveRelDown { *Cmd : "<15>" %l[0,255]{max_repeat(DestYRel )} }
*Command: CmdCR { *Cmd : "<>" }
*Command: CmdLF { *Cmd : "<>" }
*Command: CmdFF { *Cmd : "<>" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultCTT: 0
