*GPDSpecVersion: "3.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.0"
*CodePage: 936
*GPDFileName: "TP-130KII.GPD"
*ModelName: "实达TP-130KII"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "Sr9res.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: MANUAL
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_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
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1D><76><30><00>" %l{RasterDataWidthInBytes} "<18><00>"}
    }


}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option17
      *Option: Option13
    {	*% A4 length 58 x 297mm 36c
        *Name: "A4 length 58 x 297mm 36c"

        *PageDimensions: PAIR(464, 2374)
        *PrintableArea: PAIR(384, 2374)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option14
    {	*% B5 length 58 x 257mm 36c
        *Name:"B5 length 58 x 257mm 36c"

        *PageDimensions: PAIR(464, 2054)
        *PrintableArea: PAIR(384, 2054)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option15
    {	*% 6 in Page 2.28 x 6in 36c
        *Name: "6 in Page 2.28 x 6in 36c"

        *PageDimensions: PAIR(464, 1218)
        *PrintableArea: PAIR(384, 1218)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option16
    {	*% Letter length 2.28 x 11in 36c
        *Name: "Letter length 2.28 x 11in 36c"

        *PageDimensions: PAIR(464, 2233)
        *PrintableArea: PAIR(384, 2233)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option17
    {	*% Executive length 2.28x10.5in 36c
        *Name: "Executive length 2.28x10.5in 36c"

        *PageDimensions: PAIR(464, 2132)
        *PrintableArea: PAIR(384, 2132)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option18
    {	*% Receipt length 58 x 3276mm 36c
        *Name: "Receipt length 58 x 3276mm 36c"

        *PageDimensions: PAIR(464, 26182)
        *PrintableArea: PAIR(384, 26182)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option19
    {	*% A4 length 58 x 297mm 30c
        *Name: "A4 length 58 x 297mm 30c"

        *PageDimensions: PAIR(464, 2374)
        *PrintableArea: PAIR(359, 2374)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option20
    {	*% B5 length 58 x 257mm 30c
        *Name: "B5 length 58 x 257mm 30c"

        *PageDimensions: PAIR(464, 2054)
        *PrintableArea: PAIR(359, 2054)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option21
    {	*% 6 in Page 2.28 x 6in 30c
        *Name: "6 in Page 2.28 x 6in 30c"

        *PageDimensions: PAIR(464, 1218)
        *PrintableArea: PAIR(359, 1218)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option22
    {	*% Letter length 2.28 x 11in 30c
        *Name: "Letter length 2.28 x 11in 30c"

        *PageDimensions: PAIR(464, 2233)
        *PrintableArea: PAIR(359, 2233)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option23
    {	*% Executive length 2.28x10.5in 30c
        *Name: "Executive length 2.28x10.5in 30c"

        *PageDimensions: PAIR(464, 2132)
        *PrintableArea: PAIR(359, 2132)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option24
    {	*% Receipt length 58 x 3276mm 30c
        *Name: "Receipt length 58 x 3276mm 30c"

        *PageDimensions: PAIR(464, 26182)
        *PrintableArea: PAIR(359, 26182)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(20, 20)
        *MaxSize: PAIR(640, 32767)
        *MaxPrintableWidth: 575
        *MinLeftMargin: 16
        *CenterPrintable?: FALSE
    }


}
*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: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>@<1D>P<CBCB1B>R<001B>t<09><1D>b<01>"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1

}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<0000001B4A48>"
}
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *%*Cmd: "<1B>J<18>"			*% 页结束前添加一个纵向跳转指令来取代页结束指令 2006-2-22 03:23下午
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*%YMoveAttributes: LIST(SEND_CR_FIRST)
*%MaxLineSpacing: 255
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 203
*YMoveUnit: 203
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,765]{max_repeat(DestX)} }
*%Command: CmdYMoveAbsolute { *Cmd : "<1B>(V<0200>" %l{DestY} }
*%Command: CmdYMoveRelDown { *Cmd : "<1B>(v<0200>" %l{DestYRel} }
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel)} }
*%Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{LinefeedSpacing } }
*Command: CmdCR { *Cmd : "<000D>" }
*Command: CmdLF { *Cmd : "<000A>" }
*Command: CmdFF { *Cmd : "<00>" }    *%<0C> 屏蔽页结束指令 2006-2-22 03:23下午

*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE			*% 输出横向数据，这个是关键 2005-10-11 10:36上午
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultCTT: 2
