*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.10"
*GPDFileName: "KIOSK203_L216.GPD"
*ModelName: "KIOSK203_L216"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "KIOSK203_L216.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)
        *Command: CmdSendBlockData { *Cmd : ""  }
        *switch: SpotOption
        {
 	*case: Option1
	{
		*SpotDiameter: 50
	}
	*case: Option2
	{
		*SpotDiameter: 70
	}
	*case: Option3
	{
		*SpotDiameter: 75
	}
	*case: Option4
	{
		*SpotDiameter: 80
	}
	*case: Option5
	{
		*SpotDiameter: 85
	}
	*case: Option6
	{
		*SpotDiameter: 90
	}
	*case: Option7
	{
		*SpotDiameter: 95
	}
	*case: Option8
	{
		*SpotDiameter: 100
	}
	*case: Option9
	{
		*SpotDiameter: 105	}
	*case: Option10
	{
		*SpotDiameter: 150
	}
       }

    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option8
    *Option: Option1
    {
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(1679, 792)
        *PrintableArea: PAIR(1679, 712)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option2
    {
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(1679, 1582)
        *PrintableArea: PAIR(1679, 1502)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option3
    {
        *Name: "A5(148mm x 210mm)"
        *OptionID: 278
        *PageDimensions: PAIR(1184, 1680)
        *PrintableArea: PAIR(1184, 1640)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option4
    {
        *rcNameID: 206
        *OptionID: 206
        *PageDimensions: PAIR(1726, 2233)
        *PrintableArea: PAIR(1726, 2153)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option5
    {
        *rcNameID:207
        *OptionID: 207
        *PageDimensions: PAIR(1726, 2842)
        *PrintableArea: PAIR(1726, 2762)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option6
    {
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(1679, 7992)
        *PrintableArea: PAIR(1679, 7912)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option7
    {
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(1679, 660)
        *PrintableArea: PAIR(1679, 580)
        *PrintableOrigin: PAIR(0, 40)
    }
    *Option: Option8
    {
        *Name: "A4(210mm x 297mm)"
        *OptionID: 279
        *PageDimensions: PAIR(1678, 2373)
        *PrintableArea: PAIR(1618, 2373)
        *PrintableOrigin: PAIR(40, 0)
    }
 *Option: CUSTOMSIZE
    {
        *Name: "User defined"
        *rcNameID:256 *% =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(800, 660)
        *MaxSize: PAIR(1780, 8000)
        *MaxPrintableWidth: 1780
        *MinLeftMargin: 0
        *CenterPrintable?: TRUE
        *TopMargin:0
        *BottomMargin:0
    }
}
*Feature: SpotOption
{
    *Name: "SpotOption"
    *DefaultOption: Option4
    *Option: Option1
    {
        *Name: "50"
    }
    *Option: Option2
    {
        *Name: "70"
    }
    *Option: Option3
    {
        *Name: "75"
    }
    *Option: Option4
    {
        *Name: "80"
    }
    *Option: Option5
    {
        *Name: "85"
    }
    *Option: Option6
    {
        *Name: "90"
    }
    *Option: Option7
    {
        *Name: "95"
    }
    *Option: Option8
    {
        *Name: "100"
    }
    *Option: Option9
    {
        *Name: "105"
    }
    *Option: Option10
    {
        *Name: "150"
    }
}

*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID:262
        *DrvBPP: 1
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *IPCallbackID: 1
        *Color?: FALSE
    }
    *Option: Option2
    {
        *rcNameID:263
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *DrvBPP: 8
        *Color? : FALSE
       *IPCallbackID: 2
     }
}

*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 : ""  }
*Command: CmdCR { *Cmd : "<>" }
*Command: CmdLF { *Cmd : "<>" }
*Command: CmdFF { *Cmd : "<>" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultCTT: 0
