*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "5.0"
*GPDFileName: "BP-850KOLI.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "实达BP-850KOLI"
*MasterUnits: PAIR(360, 720)
*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(TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>1A000" }
        *Command: CmdEndBlockData { *Cmd : "<1B>2" }

    }
}

*% ========== PaperSize ==========
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    
    *Option: A4
    {
        *rcNameID: =A4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q070<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	    					*PrintableArea: PAIR(2952, 8280)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {               
	    					*PrintableArea: PAIR(2952, 8280)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: LETTER
    {
        *rcNameID: =LETTER_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>&00<1B>Q066<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	   						*PrintableArea: PAIR(2952, 7800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2952, 7800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }


    *Option: LEGAL
    {
        *rcNameID: =LEGAL_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>&00<1B>Q084<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	    					*PrintableArea: PAIR(2952, 9960)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2952, 9960)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: TABLOID
    {
        *rcNameID: =TABLOID_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q102<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	    					*PrintableArea: PAIR(3960, 12120)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3960, 12120)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: EXECUTIVE
    {
        *rcNameID: =EXECUTIVE_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>&00<1B>Q063<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {               
                *PrintableArea: PAIR(2610, 7440)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2610, 7440)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: FOLIO
    {
        *rcNameID: =FOLIO_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>&00<1B>Q078<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	    					*PrintableArea: PAIR(2952, 9240)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2952, 9240)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: A3
    {
        *rcNameID: =A3_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>&00<1B>Q099<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {              
    	    			*PrintableArea: PAIR(3960, 11760)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3960, 11760)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: A5
    {
        *rcNameID: =A5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2            
						*Cmd: "<1B>&00<1B>Q049<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {                
	    					*PrintableArea: PAIR(2096, 5760)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2096, 5760)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: STATEMENT
    {
        *rcNameID: =STATEMENT_DISPLAY
         *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q051<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {               
	    					*PrintableArea: PAIR(1980, 6000)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(1980, 6000)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

  *%  新增纸型37种  add by hl  2015.4.1

		*Option: P32KBIG
    {
        *rcNameID: =P32KBIG_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q037<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1430, 4320)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1430, 4320)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: PENV_1
    {
        *rcNameID: =PENV_1_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q039<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1444, 4560)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1444, 4560)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: PENV_2
    {
        *rcNameID: =PENV_2_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q041<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1444, 4800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1444, 4800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: PENV_3
    {
        *rcNameID: =PENV_3_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q041<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1770, 4800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1770, 4800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: PENV_4
    {
        *rcNameID: =PENV_4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>&00<1B>Q049<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1558, 5760)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1558, 5760)
               *PrintableOrigin: PAIR(0, 0)
            }
        }
    }


    *Option: PENV_6
    {
        *rcNameID: =PENV_6_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>&00<1B>Q054<1B>Z"

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1700, 6360)
               *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1700, 6360)
               *PrintableOrigin: PAIR(0, 0)

            }
       }
    }

    *Option: PENV_7
    {
        *rcNameID: =PENV_7_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>&00<1B>Q054<1B>Z"

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2266, 6360)
               *PrintableOrigin: PAIR(0, 0)

             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2266, 6360)
               *PrintableOrigin: PAIR(0, 0)
             }
         }
    }

    *Option: PENV_8
    {
        *rcNameID: =PENV_8_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q073<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
               *PrintableArea: PAIR(1700, 8640)
               *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1700, 8640)
               *PrintableOrigin: PAIR(0, 0)
            }
         }
    }

*% 自定义纸型  add by hl 2015/4/2 10:31:31
    *Option: 10x11_inch
    {
        *rcNameID: =10X11_DISPLAY
        *PageDimensions: PAIR(3600, 7920)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q066<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600,7800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600,7800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }


    *Option: 15x11
    {
        *Name: "15x11 inch (381x279.4 mm)"
        *PageDimensions: PAIR(5400, 7920)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q066<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4902,7800)
                *PrintableOrigin: PAIR(0, 0)

             }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4902,7800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 12.5x11
    {
        *Name: "12.5x11 inch (317.5x279.4 mm)"
        *PageDimensions: PAIR(4500, 7920)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q066<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                 *PrintableArea: PAIR(4500,7800)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(4500,7800)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 9.5x11
    {
        *Name: "9.5x11 inch (241x279.4 mm)"
        *PageDimensions: PAIR(3420, 7920)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q066<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3420,7800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3420,7800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }


    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q060<1B>Z"

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                 *PrintableArea: PAIR(2578,7080)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2578,7080)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }



    *Option: FANFOLD_STD_GERMAN
    {
        *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q072<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3060, 8520)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3060, 8520)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }


    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q078<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
               *PrintableArea: PAIR(3060, 9240)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3060, 9240)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: ENV_9
    {
        *rcNameID: =ENV_9_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
              *Cmd: "<1B>&00<1B>Q053<1B>Z"

        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1394, 6240)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1394, 6240)
                *PrintableOrigin: PAIR(0, 0)
            }
         }
    }

    *Option: ENV_10
    {
        *rcNameID: =ENV_10_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q057<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1484, 6720)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1484, 6720)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: ENV_DL
    {
        *rcNameID: =ENV_DL_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q051<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1558, 6000)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1558, 6000)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: ENV_C5
    {
        *rcNameID: =ENV_C5_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q054<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2296, 6360)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2296, 6360)
                *PrintableOrigin: PAIR(0, 0)
            }
         }
    }

    *Option: ENV_C3
    {
        *rcNameID: =ENV_C3_DISPLAY
        *%otateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q108<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4592, 12840)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(4592, 12840)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: ENV_B5
    {
        *rcNameID: =ENV_B5_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q059<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2494, 6960)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2494, 6960)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: ENV_MONARCH
    {
        *rcNameID: =ENV_MONARCH_DISPLAY
        *%RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q045<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1394, 5280)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1394, 5280)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 10x5.5
    {
        *Name: "10x5.5 inch"
        *PageDimensions: PAIR(3600, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q033<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600,	3840)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600,	3840)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 10x11_3
    {
        *Name: "10x11/3 inch"
        *PageDimensions: PAIR(3600, 2640)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q022<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600,	2520)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600,	2520)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 10x11_4
    {
        *Name: "10x11/4 inch"
        *PageDimensions: PAIR(3600, 1980)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q016<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 1800)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                 *PrintableArea: PAIR(3600, 1800)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 10x3
    {
        *Name: "10x3 inch"
        *PageDimensions: PAIR(3600, 2160)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q018<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
	    					*PrintableArea: PAIR(3600, 2040)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600, 2040)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

    *Option: 10x3_5
    {
        *Name: "10x3.5 inch"
        *PageDimensions: PAIR(3600, 2520)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q021<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 2400)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

                *PrintableArea: PAIR(3600, 2400)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x4
    {
        *Name: "10x4 inch"
        *PageDimensions: PAIR(3600, 2880)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q024<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {

                *PrintableArea: PAIR(3600, 2760)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

                *PrintableArea: PAIR(3600, 2760)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x6
    {
        *Name: "10x6 inch"
        *PageDimensions: PAIR(3600, 4320)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q036<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {

                *PrintableArea: PAIR(3600, 4200)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600, 4200)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x7
    {
        *Name: "10x7 inch"
        *PageDimensions: PAIR(3600, 5040)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q042<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {

                *PrintableArea: PAIR(3600, 4920)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

                *PrintableArea: PAIR(3600, 4920)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x7_25
    {
        *Name: "10x7.25 inch"
        *PageDimensions: PAIR(3600, 5220)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q043<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {

                *PrintableArea: PAIR(3600, 5040)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

                *PrintableArea: PAIR(3600, 5040)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x8
    {
        *Name: "10x8 inch"
        *PageDimensions: PAIR(3600, 5760)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q048<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {

                *PrintableArea: PAIR(3600, 5640)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600, 5640)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x8_5
    {
        *Name: "10x8.5 inch"
        *PageDimensions: PAIR(3600, 6120)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q051<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 6000)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600, 6000)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x10_5
    {
        *Name: "10x10.5 inch"
        *PageDimensions: PAIR(3600, 7560)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q063<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 7440)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

                *PrintableArea: PAIR(3600, 7440)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: 10x70_6
    {
        *Name: "10x70/6 inch"
        *PageDimensions: PAIR(3600, 8400)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q070<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 8280)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600, 8280)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }

    *Option: Card_148x105_mm
    {
        *Name: "Card 148x105 mm"
        *PageDimensions: PAIR(2098, 2976)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q024<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2096, 2760)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2096, 2760)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

 *Option: Fanfold_210x305_mm
    {
        *Name: "Fanfold 210x305 mm"
        *PageDimensions: PAIR(2977, 8640)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>&00<1B>Q072<1B>Z"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2976, 8520)
        	    *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2976, 8520)
        	    *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

*%    *****  新增纸型列表到此为止   ******

    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(180, 360)
        *MaxSize: PAIR(5940, 15840)
        *MaxPrintableWidth: 4896
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *TopMargin: 0
        *BottomMargin: 0
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B>&00<1B>Q" %3d[6,255]{max_repeat((PhysPaperLength / 180) )}"<1B>Z"

        }
    }
}

*Feature: PrintDirectory
{
    *Name: "打印方向"
    *DefaultOption: Printer_Default

    *Option: Printer_Default
    {
         *Name: "打印机默认"
    }
    *Option:Kduplex_Print
    {
        *Name: "双向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>%%B"
        }
    }
    *Option: Unidirectional_Print
    {
        *Name: "单向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>%%U"
        }
    }
}

*% ========== 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: "<1B>!G1"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *CallbackID: 12
     *Params: LIST(PhysPaperLength)
    *%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: 0
*YMoveThreshold: 0
*%XMoveUnit: 120
*YMoveUnit: 240
*%Command: CmdXMoveAbsolute { *Cmd : "<1B>|A" %3d[0,999]{max_repeat((DestX / 3) )} }    *% 屏蔽横向定位命令 mask by hl 2015/4/2 8:51:34
*%Command: CmdYMoveAbsolute { *Cmd : "<1B>/1" %4d{ (DestY / 3) } }
*Command: CmdYMoveAbsolute
 {
	*CallbackID: 18
	*Params: LIST(DestY )
}
*Command: CmdSetLineSpacing { *Cmd : "<1B>%%9" %m[0,255]{(LinefeedSpacing / 3) } }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<1B>O" }
*%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: CmdUnderlineOn: "<1B>*0"
*Command: CmdUnderlineOff: "<1B>+"
*Command: CmdBoldOn: "<1B>("
*Command: CmdBoldOff: "<1B>)"

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