*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.10"
*GPDFileName: "SK1-21S.GPD"
*ModelName: "SANEI SK1-21S"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "SK1-21S.Dll"
*PrinterType: SERIAL
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
*%       *Name: "Roll Paper(58 x 200mm)"
       *rcNameID: 262
       *OptionID: 262
       *PageDimensions: PAIR(463, 1598)
       *PrintableArea: PAIR(431, 1598)
       *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option2
    {
*%       *Name: "Roll Paper(60 x 200mm)"
       *rcNameID: 264
       *OptionID: 264
       *PageDimensions: PAIR(479, 1598)
       *PrintableArea: PAIR(447, 1598)
       *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option3
    {
*%       *Name: "Roll Paper(58 x 30m)"
       *rcNameID: 263
       *OptionID: 263
       *PageDimensions: PAIR(463, 240000)
       *PrintableArea: PAIR(431, 240000)
       *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option4
    {
*%       *Name: "Roll Paper(60 x 30m)"
       *rcNameID: 265
       *OptionID: 265
       *PageDimensions: PAIR(479, 240000)
       *PrintableArea: PAIR(447, 240000)
       *PrintableOrigin: PAIR(32, 0)
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(463, 80)
        *MaxSize: PAIR(479, 240000)
        *MaxPrintableWidth: 447
        *MinLeftMargin: 32
        *CenterPrintable?: FALSE
    }
}
*Feature: InputBin
{
*%  *Name: "Page Length"
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
*%      *Name: "壜曄挿"
        *rcNameID: 327
        *OptionID: 327
    }
    *Option: Option2
    {
*%屌掕挿偱愝掕偟偨偔側偄梡巻僒僀僘傪婯惂乮30m僔儕乕僘乯
        *Constraints: PaperSize.Option3
        *Constraints: PaperSize.Option4
*%      *Name: "屌掕挿"
        *rcNameID: 328
        *OptionID: 328
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "100% Size"
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        *PinsPerLogPass:24
        *SpotDiameter: 100
*%        *Command: CmdSendBlockData { *Cmd : "<12>V<1800>" }
	*switch: PaperSize
	{
*%巻暆俆俉
	    *case: Option1
	    {
		*Command: CmdSendBlockData { *Cmd : "<1b>b<36><1800>" }
	    }
*%巻暆俇侽
	    *case: Option2
	    {
		*Command: CmdSendBlockData { *Cmd : "<1B>b<38><1800>" }
	    }
*%巻暆俆俉
	    *case: Option3
	    {
		*Command: CmdSendBlockData { *Cmd : "<1b>b<36><1800>" }
	    }
*%巻暆俇侽
	    *case: Option4
	    {
		*Command: CmdSendBlockData { *Cmd : "<1B>b<38><1800>" }
	    }
*%僇僗僞儉偼巻暆壜曄乮梡巻暆-2mm乯
	    *default
	    {
		*%*Command: CmdSendBlockData { *Cmd : "<1B>b<38><1800>" }
		*Command: CmdSendBlockData { *Cmd : "<1B>b" %c{NumOfDataBytes / 24} "<1800>" }
	    }
	}
        *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c{LinefeedSpacing} }
    }
}
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: ImageControl
{
*%  *rcNameID: =IMAGECONTROL_DISPLAY
*%  *rcNameID: 300
*%  *OptionID: 300
    *Name: "Upper Margin"
    *DefaultOption: Option10
    *Option: Option1
    {
        *rcNameID: 302
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<1B>j<38>"
*%            *Cmd: "<1B>j<6C>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 305
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<1B>j<10>"
*%            *Cmd: "<1B>j<44>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 307
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<1B>J<18>"
*%            *Cmd: "<1B>j<1C>"
        }
    }
    *Option: Option14
    {
        *rcNameID: 309
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<1B>J<40>"
*%            *Cmd: "<1B>J<0c>"
        }
    }
    *Option: Option15
    {
        *rcNameID: 310
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<1B>J<68>"
*%            *Cmd: "<1B>J<34>"
        }
    }
}
*Feature: OutputBin
{
*%  *rcNameID: =OUTPUTBIN_DISPLAY
*%  *rcNameID: 329
*%  *OptionID: 329
    *Name: "Lower Margin"
*%  *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option10
    *Option: Option1
    {
        *rcNameID: 330
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.4
            *Cmd: "<1B>J<14>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 331
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.4
            *Cmd: "<1B>J<3C>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 332
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.4
            *Cmd: "<1B>J<64>"
        }
    }
    *Option: Option14
    {
        *rcNameID: 333
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.4
            *Cmd: "<1B>J<8C>"
        }
    }
    *Option: Option15
    {
        *rcNameID: 334
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.4
            *Cmd: "<1B>J<B4>"
        }
    }
}
*Feature: PrintQuality
{
    *rcNameID: =TEXT_QUALITY_DISPLAY
    *DefaultOption: Option10
    *Option: Option6
    {
        *rcNameID: 271
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<3C>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 273
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<50>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 276
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<64>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 278
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<78>"
        }
    }
    *Option: Option14
    {
        *rcNameID: 280
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<8C>"
        }
    }
    *Option: Option16
    {
        *rcNameID: 282
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<12>~<A0>"
        }
    }
}

*Feature: AutoCut
{
   *Name: "Auto Cut"
   *rcNameID: 296
    *DefaultOption: Option2
    *Option: Option1
    {
        *Name: "No Cut"
    }
    *Option: Option2
    {
        *Name: "Partial Cut"
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.5
            *Cmd: "<1B>m"
        }
    }
    *Option: Option3
    {
        *Name: "Full Cut"
        *Command: CmdSelect
        {
            *Order: PAGE_FINISH.5
            *Cmd: "<1B>i"
        }
    }
}
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *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: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<1B>Jd"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST()
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*MaxLineSpacing: 0
*YMoveThreshold: *
*YMoveUnit: 203
*Command: CmdYMoveRelDown { *Cmd : "<12>W" %c[0,255]{max_repeat(DestYRel )} }
*Command: CmdYMoveRelUp { *Cmd : "<1B>j" %c[0,255]{max_repeat(DestYRel )} }
*Command: CmdCR { *Cmd : "<>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<>" }
*EjectPageWithFF?: TRUE
*switch: InputBin
{
    *case: Option2
    {
        *EjectPageWithFF?: FALSE
    }
}
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultFont: 2
*DefaultCTT: -1
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1,2)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST(1,2)
    }
}
