*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.10"
*GPDFileName: "TKIOSK203_203S.GPD"
*ModelName: "TKIOSK203_203"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "TKIOSK203_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)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option1
     *Option: Option1
    {
        *Name: "80mm x 297mm"
        *OptionID: 258
        *PageDimensions: PAIR(640, 2374)
        *PrintableArea: PAIR(640, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option2
    {
        *Name: "82.5mm x 297mm"
        *OptionID: 259
        *PageDimensions: PAIR(640, 2374)
        *PrintableArea: PAIR(640, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
   *Option: Option3
    {
        *Name: "76mm x 297mm"
        *OptionID: 260
         *PageDimensions: PAIR(607, 2374)
        *PrintableArea: PAIR(607, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
   *Option: Option4
    {
        *Name: "69.5mm x 297mm"
        *OptionID: 261
         *PageDimensions: PAIR(556, 2374)
        *PrintableArea: PAIR(556, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option5
    {
        *Name: "57.5mm x 297mm"
        *OptionID: 262
        *PageDimensions: PAIR(460, 2374)
        *PrintableArea: PAIR(460, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option6
    {
        *Name: "80mm x 257mm"
        *OptionID: 263
        *PageDimensions: PAIR(640, 2054)
        *PrintableArea: PAIR(640, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option7
    {
        *Name: "82.5mm x 257mm"
        *OptionID: 264
        *PageDimensions: PAIR(640, 2054)
        *PrintableArea: PAIR(640, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option8
    {
       *Name: "76mm x 257mm"
        *OptionID: 265
        *PageDimensions: PAIR(608, 2054)
        *PrintableArea: PAIR(608, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option9
    {
        *Name: "69.5mm x 257mm"
        *OptionID: 266
        *PageDimensions: PAIR(556, 2054)
        *PrintableArea: PAIR(556, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }

    *Option: Option10
    {
        *Name: "57.5mm x 257mm"
        *OptionID: 267
        *PageDimensions: PAIR(460, 2054)
        *PrintableArea: PAIR(460, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option11
    {
        *Name: "80mm x 3276mm"
        *OptionID: 268
        *PageDimensions: PAIR(640, 26182)
        *PrintableArea: PAIR(640, 26182)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option12
    {
        *Name: "82.5mm x 3276mm"
        *OptionID: 269
        *PageDimensions: PAIR(640, 26182)
        *PrintableArea: PAIR(640, 26182)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option13
    {
        *Name: "69.5mm x 3276mm"
        *OptionID: 270
        *PageDimensions: PAIR(556, 26182)
        *PrintableArea: PAIR(556, 26182)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option14
    {
        *Name: "76mm x 3276mm"
        *OptionID: 271
        *PageDimensions: PAIR(607, 26182)
        *PrintableArea: PAIR(607, 26182)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option15
    {
        *Name: "57.5mm x 3276mm"
        *OptionID: 272
        *PageDimensions: PAIR(460, 26182)
        *PrintableArea: PAIR(460, 26182)
        *PrintableOrigin: PAIR(0, 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
    }
}

*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
    *Cmd: "<>"
}

*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<1B>c9<00>"
}

*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<0A>"
}

*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: *
*XMoveUnit: 203
*YMoveUnit: 203
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{DestX } }
*Command: CmdYMoveRelDown { *Cmd : "<1B>3" %c[0,255]{max_repeat(DestYRel )}"<0A>" }
*Command: CmdCR { *Cmd : "<>" }
*Command: CmdLF { *Cmd : "<>" }
*Command: CmdFF { *Cmd : "<>" }
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultCTT: -1
