*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "5.0"
*GPDFileName: "BP-780K.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "实达BP-780K"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "START24RES.DLL"
*PrinterType: SERIAL

*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: TRACTOR
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY

    }
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY

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

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

    *% add 360x360 dpi add by hl 2009.03.23
     *Option: Option5
    {
        *Name: "360 x 360 " =DOTS_PER_INCH
        *DPI: PAIR(360, 360)
        *TextDPI: PAIR(360, 360)
        *PinsPerLogPass: 48
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 360
         EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 170
        *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>C<46>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
	    					*PrintableArea: PAIR(2952, 4140)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
	    					*PrintableArea: PAIR(2952, 4140)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

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


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

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

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

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

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

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

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

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

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

    *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(1444, 2280)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(1444, 2280)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

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

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

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

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


    *Option: PENV_6
    {
        *rcNameID: =PENV_6_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
             *Cmd: "<1B>2<1B>C<36>"

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

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

            }
       }
    }

    *Option: PENV_7
    {
        *rcNameID: =PENV_7_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
           *Cmd: "<1B>2<1B>C<36>"

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

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

    *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(1700, 4320)
               *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1700, 4320)
               *PrintableOrigin: PAIR(0, 0)
            }
         }
    }

    *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(3600,3900)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3600,3900)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

 *%  add papersize by hl 05-01-14
    *Option: 15x11
    {
        *Name: "15x11 inch (381x279.4 mm)"
        *PageDimensions: PAIR(5400, 3960)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(4902,3900)
                *PrintableOrigin: PAIR(0, 0)

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

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

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

            }
        }
    }

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


    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<3C>"

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

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

            }
        }
    }



    *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(3060, 4260)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(3060, 4260)
                *PrintableOrigin: PAIR(0, 0)

            }
        }
    }


    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<4E>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
               *PrintableArea: PAIR(3060, 4620)
                *PrintableOrigin: PAIR(0, 0)

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

            }
        }
    }

    *Option: ENV_9
    {
        *rcNameID: =ENV_9_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
              *Cmd: "<1B>2<1B>C<35>"

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

    *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(1484, 3360)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
               *PrintableArea: PAIR(1484, 3360)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

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

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

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

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

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

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

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

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

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

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

            }
            *case: MANUAL
            {

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

            }
        }
    }

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

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

            }
            *case: MANUAL
            {

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

            }
        }
    }

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

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

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

            }
        }
    }

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

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

            }
            *case: MANUAL
            {

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

            }
        }
    }

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

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

            }
            *case: MANUAL
            {

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

            }
        }
    }

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

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

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

            }
        }
    }

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

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

            }
        }
    }

    *Option: 10x10_5
    {
        *Name: "10x10.5 inch"
        *PageDimensions: PAIR(3600, 3780)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<3F>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 3720)
                *PrintableOrigin: PAIR(0, 0)

            }
            *case: MANUAL
            {

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

            }
        }
    }

    *Option: 10x70_6
    {
        *Name: "10x70/6 inch"
        *PageDimensions: PAIR(3600, 4200)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<46>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(3600, 4140)
                *PrintableOrigin: PAIR(0, 0)

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

            }
        }
    }

    *Option: Card_148x105_mm
    {
        *Name: "Card 148x105 mm"
        *PageDimensions: PAIR(2098, 1488)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C<18>"
        }
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2096, 1380)
                *PrintableOrigin: PAIR(0, 0)
            }
            *case: MANUAL
            {
                *PrintableArea: PAIR(2096, 1380)
                *PrintableOrigin: PAIR(0, 0)
            }
        }
    }

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

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


    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(180, 180)
        *MaxSize: PAIR(5040, 7920)		*% 自定义纸型高度超过22英寸将无法在Word纸型列表中显示。
        *MaxPrintableWidth: 4900     		*%  start printer maxwidth is 346mm。
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *CursorOrigin:  PAIR(0, 0)
        *switch: InputBin
        {
            *case: TRACTOR
            {
                *TopMargin: 0
                *BottomMargin: 0
            }
            *case: MANUAL
            {
                *TopMargin: 0
                *BottomMargin: 0
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }      *% PhysPaperLength / 60 ：页长(inch) x 360 / 60 = 行数（以1/6inch描述页长的行数）
        }
    }
}

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

    *Option: Printer_Default
    {
         *Name: "打印机默认"
    }
    *Option:Kduplex_Print
    {
        *Name: "双向打印"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<00>"
        }
    }
    *Option: Unidirectional_Print
    {
        *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) } }       *% 屏蔽横向定位命令		mask by hl 2015/4/1 16:25:41
*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>" }
