*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "3.0"
*GPDFileName: "BS880K.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "BS-880K"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "BSRES.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} }
    }
    *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} }
    }
    *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} }
    }
}
*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(2880, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2880, 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>2<1B>C<24>"			*% refix by hl 20100519
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1340, 2020)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1340, 2020)
                *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(1354, 2220)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1354, 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<60>"		*% 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<60>"		*% 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: 13.6x11
    {
        *Name: "13.6x11 inch"
        *PageDimensions: PAIR(4896, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4808, 3840)
                *PrintableOrigin: PAIR(44, 60)
             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4808, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 8.5x11
    {
        *Name: "8.5x11 inch"
        *PageDimensions: PAIR(3060, 3960)
        *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: 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(2970, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2970, 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<45>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2520, 3660)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2520, 3660)
                *PrintableOrigin: PAIR(44, 60)

            }
        }
    }


    *Option: FOLIO
    {
        *rcNameID: =FOLIO_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<54>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2970, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2970, 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)
            }
        }
    }

  *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)
            }
        }
    }
*IgnoreBlock                                                  *% 屏蔽该纸型  mask by hl 2011.1.26
{
    *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<54>"
        }
        *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>3<1B>C<47>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1306, 3074)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1306, 3074)
                *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(1396, 3300)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1396, 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<60>"
        }
        *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<72>"
        }
        *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<41>"
        }
        *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<33>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1306, 2580)
                *PrintableOrigin: PAIR(44, 60)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1306, 2580)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
    *%add new papersize			add by hl 2005-6-16

    *Option: 10x5.5
    {
        *Name: "10 x 5.5 in"
        *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: "10 x 11/3 in"
        *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: "10 x 11/4 in"
        *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: "10 x 3 in"
        *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: "10 x 3.5 in"
        *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: "10 x 4 in"
        *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: "10 x 6 in"
        *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: "10 x 7 in"
        *PageDimensions: PAIR(3600, 2520)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<30>"
        }
        *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: "10 x 7.25 in"
        *PageDimensions: PAIR(3600, 2610)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>0<1B>C<40>"
        }
        *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: "10 x 8 in"
        *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: "10 x 8.5 in"
        *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: "10 x 10.5 in"
        *PageDimensions: PAIR(3600, 3780)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<45>"
        }
        *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: "10 x 14 in"
        *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: "10 x 70/6 in"
        *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 in"
        *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 148 x 105 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 210 x 305 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: PrintQuality
{
    *rcNameID: =TEXT_QUALITY_DISPLAY
    *%DefaultOption: Duble_QUALITY
    *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>"
        }
    }
}
*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>" }
