*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "5.0"
*GPDFileName: "START24A.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "实达平推式票据打印机"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "START24RES.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: TRACTOR
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY

    }
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY

    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "180 x 180 dots per inch"
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 180
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        *SpotDiameter: 120
        *%Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
        *Command: CmdSendBlockData { *CallbackID: 15 }

    }
    *Option: Option2
    {
        *Name: "120 x 180 dots per inch"
        *DPI: PAIR(120, 180)
        *TextDPI: PAIR(120, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 120
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *%Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
        *Command: CmdSendBlockData { *CallbackID: 14 }

    }
    *Option: Option3
    {
        *Name: "90 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(90, 180)
        *TextDPI: PAIR(90, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 90
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *%Command: CmdSendBlockData { *Cmd : "<1B>*&" %l{NumOfDataBytes / 3} }
         *Command: CmdSendBlockData { *CallbackID: 13 }

    }

  *% add 360x180 dpi  add by hl 2009-2-24 11:21:24
    *Option: Option4
    {
        *Name: "360 x 180 dots per inch"
        *DPI: PAIR(360, 180)
        *TextDPI: PAIR(360, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 360
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        *SpotDiameter: 120
        *%Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
        *Command: CmdSendBlockData { *CallbackID: 16 }

    }

    *% add 360x360 dpi add by hl 2009.03.23
     *Option: Option5
    {
        *Name: "360 x 360 " =DOTS_PER_INCH
        *DPI: PAIR(360, 360)
        *TextDPI: PAIR(360, 360)
        *PinsPerLogPass: 48
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 360
        *SpotDiameter: 170
        *%Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
        *Command: CmdSendBlockData { *CallbackID: 17 }

    }

}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4

    *Option: A4
    {
        *rcNameID: =A4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>CF"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2932, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2932, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
        }

    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: P16K
    {
        *rcNameID: =P16K_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>0<1B>C<52>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2576,  3566)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2576,  3566)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }


    *Option: P32K                                           *% 屏蔽该纸型  mask by hl 2011.1.26
    {
        *rcNameID: =P32K_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<24>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1284, 2020)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1284, 2020)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: P32KBIG
    {
        *rcNameID: =P32KBIG_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<3F>"			*% refix by hl 20110303
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1344, 2148)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1344, 2148)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_1
    {
        *rcNameID: =PENV_1_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<27>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1358, 2220)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1358, 2220)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_2
    {
        *rcNameID: =PENV_2_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<45>"			*% 18/180 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1358, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1358, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_3
    {
        *rcNameID: =PENV_3_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>3<12><1B>C<45>"			*% 18/180 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1684, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1684, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_4
    {
        *rcNameID: =PENV_4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>3<12><1B>C<52>"			*% 18/180 inch 换行量

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1470, 2828)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1470,2828)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: PENV_5
    {
        *rcNameID: =PENV_5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<34>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1470, 2828)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1470, 2828)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: PENV_6
    {
        *rcNameID: =PENV_6_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<5A>"		*% 18/180 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1612, 3140)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1612, 3140)
                *PrintableOrigin: PAIR(44, 60)
            }
       }
    }

    *Option: PENV_7
    {
        *rcNameID: =PENV_7_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>3<12><1B>C<5A>"		*% 18/180 inch 换行量

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2180, 3140)
                *PrintableOrigin: PAIR(44, 60)
             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2180, 3140)
                *PrintableOrigin: PAIR(44, 60)
             }
         }
    }

    *Option: PENV_8
    {
        *rcNameID: =PENV_8_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<49>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1612, 4260)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1612, 4260)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: PENV_9
    {
        *rcNameID: =PENV_9_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<49>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3158, 4470)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3158, 4470)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: 10x11_inch
    {
        *rcNameID: =10X11_DISPLAY
        *PageDimensions: PAIR(3600, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512,3840)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512,3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock
{
    *Option: LETTER_TRANSVERSE				*% 屏蔽该纸型  mask by hl 2011.1.26
    {
        *rcNameID: =LETTER_TRANSVERSE_DISPLAY
        *Command: CmdSelect
        {
           *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<33>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2940,3872)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2940,3872)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
 *%  add papersize by hl 05-01-14
    *Option: 15x11
    {
        *Name: "15x11 inch (381x279.4 mm)"
        *PageDimensions: PAIR(5400, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4896, 3840)
                *PrintableOrigin: PAIR(44, 60)
             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4896, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 12.5x11
    {
        *Name: "12.5x11 inch (317.5x279.4 mm)"
        *PageDimensions: PAIR(4500, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3960, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3960, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 9.5x11
    {
        *Name: "9.5x11 inch (241x279.4 mm)"
        *PageDimensions: PAIR(3420, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2952, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2952, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }


    *Option: LETTER
    {
        *rcNameID: =LETTER_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 3840)
                *PrintableOrigin: PAIR(44, 60)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 3840)
                *PrintableOrigin: PAIR(44, 60)

            }
        }
    }


    *Option: LEGAL
    {
        *rcNameID: =LEGAL_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<54>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: TABLOID
    {
        *rcNameID: =TABLOID_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<66>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3870, 6000)
                *PrintableOrigin: PAIR(44, 60)

            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3870, 6000)
                *PrintableOrigin: PAIR(44, 60)

            }
        }
    }


    *Option: EXECUTIVE
    {
        *rcNameID: =EXECUTIVE_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<3F>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2522, 3660)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2522, 3660)
                *PrintableOrigin: PAIR(44, 60)

            }
        }
    }


    *Option: FOLIO
    {
        *rcNameID: =FOLIO_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<4E>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }


    *Option: A3
    {
        *rcNameID: =A3_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<63>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4120, 5834)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4120, 5834)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: Option21					*% A3 Transverse 420 x 297 mm
    {
        *rcNameID: 259
        *PageDimensions: PAIR(5954, 4208)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<75>"		*% 18/180 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4894, 4208)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4894, 3863)
                *PrintableOrigin: PAIR(0, 120)
            }
        }
    }
}

*IgnoreBlock
{
    *Option: A4_TRANSVERSE				*% 屏蔽该纸型 mask by hl 2011.1.26
    {
        *rcNameID: =A4_TRANSVERSE_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B><30><1B>C<42>"		*%1/8 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2880, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2880, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: A5
    {
        *rcNameID: =A5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B><30><1B>C<42>"		*%1/8 inch 换行量
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2012, 2856)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2012, 2856)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: B4
    {
        *rcNameID: =B4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B><30><1B>C<70>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3454, 4884)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3454, 4884)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B><30><1B>C<51>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2494, 3522)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2494, 3522)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: Option28					*% Fanfold 14 7/8 x 11.69 in
    {
        *rcNameID: 261
        *PageDimensions: PAIR(5357, 4208)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<75>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(5270, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(5270, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}

*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: FANFOLD_US
    {
        *rcNameID: =FANFOLD_US_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(5270, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(5270, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: FANFOLD_STD_GERMAN
    {
        *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
  *Option: Fanfold_210mm_12in	*%Fanfold 210 mm x 12 in
    {
        *rcNameID: 262
        *PageDimensions: PAIR(2977, 4320)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2890, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2890, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: Option32		*%Fanfold 358 mm x 12 in
    {
        *rcNameID: 263
        *PageDimensions: PAIR(5072, 4320)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4984, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4984, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: Option33				*% Fanfold 15 x 12 in
    {
        *rcNameID: 264
        *PageDimensions: PAIR(5400, 4320)
        *Command: CmdSelect
        {
           *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(5312, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(5312, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<4E>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_9
    {
        *rcNameID: =ENV_9_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B><30><1B>C<47>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1308, 3078)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1308, 3078)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }

    *Option: ENV_10
    {
        *rcNameID: =ENV_10_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<39>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1398, 3300)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1398, 3300)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_DL
    {
        *rcNameID: =ENV_DL_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<34>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1470, 2998)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1470, 2998)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_C5
    {
        *rcNameID: =ENV_C5_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>3<12><1B>C<5A>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2208, 3126)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2208, 3126)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }

    *Option: ENV_C3
    {
        *rcNameID: =ENV_C3_DISPLAY
        *%otateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<6C>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4506, 6370)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(4506, 6370)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_B5
    {
        *rcNameID: =ENV_B5_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<3B>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2406, 3422)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2406, 3422)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_MONARCH
    {
        *rcNameID: =ENV_MONARCH_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<2D>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1308, 2580)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1308, 2580)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
    *%add new papersize			add by hl 2005-6-16

    *Option: 10x5.5
    {
        *Name: "10x5.5 inch"
        *PageDimensions: PAIR(3600, 1980)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<21>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512,	1860)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512,	1860)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x11_3
    {
        *Name: "10x11/3 inch"
        *PageDimensions: PAIR(3600, 1320)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<16>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512,	1200)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512,	1200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x11_4
    {
        *Name: "10x11/4 inch"
        *PageDimensions: PAIR(3600, 990)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>0<1B>C<16>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 870)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3512, 870)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x3
    {
        *Name: "10x3 inch"
        *PageDimensions: PAIR(3600, 1080)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<12>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 960)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 960)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x3_5
    {
        *Name: "10x3.5 inch"
        *PageDimensions: PAIR(3600, 1260)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<15>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 1140)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 1140)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x4
    {
        *Name: "10x4 inch"
        *PageDimensions: PAIR(3600, 1440)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<18>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 1320)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 1320)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x6
    {
        *Name: "10x6 inch"
        *PageDimensions: PAIR(3600, 2160)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<24>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2040)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 2040)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x7
    {
        *Name: "10x7 inch"
        *PageDimensions: PAIR(3600, 2520)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<2A>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2400)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 2400)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x7_25
    {
        *Name: "10x7.25 inch"
        *PageDimensions: PAIR(3600, 2610)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>0<1B>C<3A>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2490)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3512, 2490)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x8
    {
        *Name: "10x8 inch"
        *PageDimensions: PAIR(3600, 2880)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<30>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2760)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3512, 2760)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x8_5
    {
        *Name: "10x8.5 inch"
        *PageDimensions: PAIR(3600, 3060)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<33>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x10_5
    {
        *Name: "10x10.5 inch"
        *PageDimensions: PAIR(3600, 3780)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<3F>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 3660)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 3660)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: 10x14
    {
        *Name: "10x14 inch"
        *PageDimensions: PAIR(3600, 5040)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<54>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: 10x70_6
    {
        *Name: "10x70/6 inch"
        *PageDimensions: PAIR(3600, 4200)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<46>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 4080)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 4080)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *Option: 10x17
    {
        *Name: "10 x 17 inch"
        *PageDimensions: PAIR(3600, 6120)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<66>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 6000)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 6000)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
}
    *Option: Card_148x105_mm
    {
        *Name: "Card 148x105 mm"
        *PageDimensions: PAIR(2098, 1488)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>0<1B>C<21>"		*% 以1/8 inch 设定换行量  add by hl 2005-4-28
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2010, 1366)
        	    *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2010, 1366)
        	    *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: Envelope_6.75
    {
        *rcNameID: =ENV_PERSONAL_DISPLAY
        *%RotateSize? : TRUE
        *PageDimensions: PAIR(1307, 2340)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<27>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1220, 2220)
        	    *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                  *PrintableArea: PAIR(1220, 2220)
        	      *PrintableOrigin: PAIR(44, 60)

            }
        }
    }

 *Option: STATEMENT
    {
        *rcNameID: =STATEMENT_DISPLAY
         *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<33>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1892, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(1892, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

 *Option: Fanfold_210x305_mm
    {
        *Name: "Fanfold 210x305 mm"
        *PageDimensions: PAIR(2977, 4320)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2890, 4200)
        	    *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2890, 4200)
        	    *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(180, 180)
        *MaxSize: PAIR(5940, 32767)
        *MaxPrintableWidth: 4896
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *CursorOrigin:  PAIR(0, 0)
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *TopMargin: 60
                *BottomMargin: 60
            }
            *case: MANUAL
            {
                *TopMargin: 60
                *BottomMargin: 60
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
        }
    }
}

*Feature: PrintDir
{
    *%rcNameID: =TEXT_QUALITY_DISPLAY
    *%DefaultOption: Duble_QUALITY
    *Name: "打印方向"
    *DefaultOption: Uni_Duble_QUALITY
    *Option: Option1
    {
        *Name: "打印机设置"
    }
    *Option:Duble_QUALITY
    {
        *Name: "双向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<00>"
        }
    }
    *Option: Uni_Duble_QUALITY
    {
        *Name: "单向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<01>"
        }
    }
}
*% 新增打印方式			add  by hl 2014.01.16
*Feature: PrintStyle
{
    *Name: "打印方式"
    *%DefaultOption: Duble_QUALITY
    *DefaultOption: STYLE_NORMAL
    *Option: STYLE_NORMAL
    {
        *Name: "正常打印"
         *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *CallbackID: 18
        }
    }
    *Option:STYLE_STRENGTHEN
    {
        *Name: "加重打印"
         *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *CallbackID: 19
        }
    }
}

*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>@<1B>t<011B>6<1B>R<001B>r<00>"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<0D>"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *%Cmd: "<1B>@"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_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: 60
*YMoveUnit: 180
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel/2) )} }
*Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: 3
*DefaultCTT: 1
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1,2,3,4,6,7,8,41,42,44,48,49,52)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
*Command: CmdBoldOn { *Cmd : "<1B>E" }
*Command: CmdBoldOff { *Cmd : "<1B>F" }
*Command: CmdItalicOn { *Cmd : "<1B>4" }
*Command: CmdItalicOff { *Cmd : "<1B>5" }
*Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
*Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
