*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "5.0"
*GPDFileName: "BP850KN.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "实达存折打印机"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "START24RES.DLL"
*PrinterType: SERIAL
*FontCartSlots: 1

*% ========== Orientation ==========
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}

*% ========== InputBin ==========
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: MANUAL
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
    }

    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY
    }

}

*% ========== Resolution ==========
*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>%%1" %m{NumOfDataBytes / 3} }
    }
}

*% ========== PaperSize ==========
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4    
    
     *Option: A4
    {
        *rcNameID: =A4_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2932, 4088)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
        				{
            			*Order: DOC_SETUP.3
           				*Cmd: "<1B>6<1B>F<07><00>"
       	 				}
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2932, 4088)
                *PrintableOrigin: PAIR(44, 60)
            }
        }

    }

    *Option: P32KBIG
    {
        *rcNameID: =P32KBIG_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1344, 2148)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>%9<00><0C><1B>F<06><03>"			*% 按照1/10英寸设置换行量 refix by hl 2011-10-19 16:33:28
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1344, 2148)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_1
    {
        *rcNameID: =PENV_1_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1358, 2220)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<03><09>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1358, 2220)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_2
    {
        *rcNameID: =PENV_2_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1358, 2374)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>%9<00><0C><1B>F<06><09>"			*% 1/10 inch 换行量
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1358, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_3
    {
        *rcNameID: =PENV_3_DISPLAY
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1684, 2374)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				           *Order: DOC_SETUP.3
				           *Cmd: "<1B>%9<00><0C><1B>F<06><09>"			*% 1/10 inch 换行量
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1684, 2374)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_4
    {
        *rcNameID: =PENV_4_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1470, 2828)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				             *Cmd: "<1B>%9<00><0C><1B>F<08><02>"			*% 1/10 inch 换行量
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1470,2828)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: PENV_6
    {
        *rcNameID: =PENV_6_DISPLAY
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1612, 3140)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>%9<00><0C><1B>F<09><00>"					*% 1/10 inch 换行量
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1612, 3140)
                *PrintableOrigin: PAIR(44, 60)
            }
       }
    }

    *Option: PENV_7
    {
        *rcNameID: =PENV_7_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2180, 3140)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				           *Order: DOC_SETUP.3
				           *Cmd: "<1B>%9<00><0C><1B>F<09><00>"		*% 1/10 inch 换行量
				
				        }
             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2180, 3140)
                *PrintableOrigin: PAIR(44, 60)
             }
         }
    }

    *Option: PENV_8
    {
        *rcNameID: =PENV_8_DISPLAY
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1612, 4260)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<07><03>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1612, 4260)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }

    *Option: 10x11_inch
    {
        *rcNameID: =10X11_DISPLAY
        *PageDimensions: PAIR(3600, 3960)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512,3840)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<06><06>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512,3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

 *%  add papersize by hl 05-01-14
    *Option: 15x11
    {
        *Name: "15x11 inch (381x279.4 mm)"
        *PageDimensions: PAIR(5400, 3960)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4896, 3840)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<06><06>"
				        }
             }
            *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)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3960, 3840)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<06><06>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3960, 3840)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

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


    *Option: LETTER
    {
        *rcNameID: =LETTER_DISPLAY
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 3840)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<06><06>"
				        }

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

            }
        }
    }


    *Option: LEGAL
    {
        *rcNameID: =LEGAL_DISPLAY
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4920)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<08><04>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4920)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: TABLOID
    {
        *rcNameID: =TABLOID_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3870, 6000)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<0A><02>"
				        }
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3870, 6000)
                *PrintableOrigin: PAIR(44, 60)

            }
        }
    }


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

            }
        }
    }


    *Option: FOLIO
    {
        *rcNameID: =FOLIO_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<07><08>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }


    *Option: A3
    {
        *rcNameID: =A3_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4120, 5834)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<09><09>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4120, 5834)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: A5
    {
        *rcNameID: =A5_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2012, 2856)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>8<1B>F<06><06>"		*%1/8 inch 换行量
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2012, 2856)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2494, 3522)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>8<1B>F<08><01>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(2494, 3522)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: FANFOLD_STD_GERMAN
    {
        *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4200)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<07><02>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4200)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<07><08>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2972, 4560)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_9
    {
        *rcNameID: =ENV_9_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1308, 3078)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>8<1B>F<07><01>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1308, 3078)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }

    *Option: ENV_10
    {
        *rcNameID: =ENV_10_DISPLAY
        *%RotateSize? : TRUE
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1398, 3300)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<05><07>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1398, 3300)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_DL
    {
        *rcNameID: =ENV_DL_DISPLAY
        *%RotateSize? : TRUE
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1470, 2998)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<05><02>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1470, 2998)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: ENV_C5
    {
        *rcNameID: =ENV_C5_DISPLAY
        *%RotateSize? : TRUE
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2208, 3126)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>%9<00><0C><1B>F<09><00>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2208, 3126)
                *PrintableOrigin: PAIR(44, 60)
            }
         }
    }

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

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

    *Option: ENV_MONARCH
    {
        *rcNameID: =ENV_MONARCH_DISPLAY
        *%RotateSize? : TRUE
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1308, 2580)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<04><05>"
				        }
            }
            *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)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512,	1860)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<03><03>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512,	1860)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

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

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

    *Option: 10x3
    {
        *Name: "10x3 inch"
        *PageDimensions: PAIR(3600, 1080)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 960)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<01><08>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 960)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x3_5
    {
        *Name: "10x3.5 inch"
        *PageDimensions: PAIR(3600, 1260)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 1140)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<02><01>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 1140)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x4
    {
        *Name: "10x4 inch"
        *PageDimensions: PAIR(3600, 1440)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 1320)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<02><04>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 1320)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x6
    {
        *Name: "10x6 inch"
        *PageDimensions: PAIR(3600, 2160)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2040)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<03><06>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 2040)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x7
    {
        *Name: "10x7 inch"
        *PageDimensions: PAIR(3600, 2520)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2400)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<04><02>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 2400)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

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

    *Option: 10x8
    {
        *Name: "10x8 inch"
        *PageDimensions: PAIR(3600, 2880)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2760)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<04><08>"
				        }
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3512, 2760)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x8_5
    {
        *Name: "10x8.5 inch"
        *PageDimensions: PAIR(3600, 3060)
       
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 2940)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<05><01>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x10_5
    {
        *Name: "10x10.5 inch"
        *PageDimensions: PAIR(3600, 3780)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 3660)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<06><03>"
				        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3512, 3660)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: 10x70_6
    {
        *Name: "10x70/6 inch"
        *PageDimensions: PAIR(3600, 4200)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3512, 4080)
                *PrintableOrigin: PAIR(44, 60)
                *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<07><00>"
				        }
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(3512, 4080)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

    *Option: Card_148x105_mm
    {
        *Name: "Card 148x105 mm"
        *PageDimensions: PAIR(2098, 1488)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
              *PrintableArea: PAIR(2010, 1366)
        	    *PrintableOrigin: PAIR(44, 60)
        	    *Command: CmdSelect
			        {
			            *Order: DOC_SETUP.3
			            *Cmd: "<1B>8<1B>F<03><03>"		*% 以1/8 inch 设定换行量  add by hl 2005-4-28
			        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2010, 1366)
        	    *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

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

            }
        }
    }

 *Option: STATEMENT
    {
        *rcNameID: =STATEMENT_DISPLAY
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1892, 2940)
                *PrintableOrigin: PAIR(44, 60)
                 *Command: CmdSelect
				        {
				            *Order: DOC_SETUP.3
				            *Cmd: "<1B>6<1B>F<05><01>"
				        }
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(1892, 2940)
                *PrintableOrigin: PAIR(44, 60)
            }
        }
    }

 *Option: Fanfold_210x305_mm
    {
        *Name: "Fanfold 210x305 mm"
        *PageDimensions: PAIR(2977, 4320)
        
        *switch: InputBin
        {
            *case: TRACTOR
            {
              *PrintableArea: PAIR(2890, 4200)
        	    *PrintableOrigin: PAIR(44, 60)
        	    *Command: CmdSelect
			        {
			            *Order: DOC_SETUP.3
			            *Cmd: "<1B>6<1B>F<07><02>"
			        }
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2890, 4200)
        	    *PrintableOrigin: PAIR(44, 60)
            }
        }
    }
    
    *% rebuild papersize add by hl 2011-10-19 15:49:18    
    
   

    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(180, 180)
        *MaxSize: PAIR(5940, 32767)
        *MaxPrintableWidth: 4896
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *switch: InputBin
        {
            *case: MANUAL
            {
                *TopMargin: 72
                *BottomMargin: 256
            }
            *case: TRACTOR
            {
                *TopMargin: 0
                *BottomMargin: 0
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.3
                    *%Cmd: "<1B>F" %c[0,15]{(PhysPaperLength*8)/3600} %c[0,15]{(PhysPaperLength*8/360) MOD 10}
                    *Cmd: "<1B>6<1B>F" %c[0,15]{(PhysPaperLength*6)/3600} %c[0,15]{(PhysPaperLength*6/360) MOD 10}
                }
            }
        }
    }
}


*% ========== 添加打印方向指令 ==========

*Feature: PrintDirectory
{
    *Name: "打印方向"
    *DefaultOption: Unidirectional_Print
    *Option: AutoSelect
    {
        *%Name: "Auto Select"
         *Name: "自动选择"
    }
    *Option:Kduplex_Print
    {
        *%Name: "UniDirection Off"
        *Name: "双向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>%%B"
        }
    }
    *Option: Unidirectional_Print
    {
        *%Name: "UniDirection On"
        *Name: "单向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>%%U"
        }
    }
}

*% ========== PrintQuality ==========
*Feature: PrintQuality
{
    *rcNameID: =TEXT_QUALITY_DISPLAY
    *DefaultOption: LETTER_QUALITY
    *Option: LETTER_QUALITY
    {
        *rcNameID: =LETTER_QUALITY_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>I"
        }
    }
    *Option: DRAFT_QUALITY
    {
        *rcNameID: =DRAFT_QUALITY_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>0"
        }
    }
}

*% ========== Halftone ==========
*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
    }
}

*% ========== Job control command ==========
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<18><1B>l"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<0D>"
}

*% ========== Printer Capabilities  ==========
*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)
    }
}

*% ========== Cursor Control ==========
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*MaxLineSpacing: 255
*XMoveThreshold: *
*YMoveThreshold: *
*XMoveUnit: 180
*YMoveUnit: 120
*Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
*Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
*Command: CmdYMoveRelDown { *Cmd : "<1B>%%5" %c[0,255]{max_repeat((DestYRel / 3) )} }
*Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
*EjectPageWithFF?: TRUE

*% ========== Raster Data Emission ==========
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE

*% ========== Text Printing ==========
*DefaultCTT: 0

*% ========== Font Simulation ==========
*Command: CmdBoldOn { *Cmd : "<1B>i" }
*Command: CmdBoldOff { *Cmd : "<1B>j" }
*Command: CmdUnderlineOn { *Cmd : "<1B>X" }
*Command: CmdUnderlineOff { *Cmd : "<1B>Y" }

*DefaultFont: 1
*DeviceFonts: LIST(1,2,3,4,5,6)
