*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "5.0"
*GPDFileName: "HL-620K.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 936
*ModelName: "HENGLI HL-620K"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "HL24RES.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: MANUAL
*Option: MANUAL
  {
  *rcNameID: =MANUAL_FEED_DISPLAY
  }

*Option: TRACTOR
  {
  *rcNameID: =TRACTOR_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
   *switch: PrintCompress
   {
      *case: Compress_Close			
      {
     	*MinStripBlankPixels: 180
	EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
       }
       *default:					
      {
  	*MinStripBlankPixels: 0
	EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
      }
   }
 *SpotDiameter: 120
*% *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }       *% ESC/PK
*% *Command: CmdSendBlockData { *Cmd : "<1B>%%1" %m{NumOfDataBytes / 3} }   }     *% OKI
*Command: CmdSendBlockData { *Cmd : "" }
*Command: CmdSelect
  {
	*Order:JOB_SETUP.5
	*CallbackID: 30
  }
}
*Option: Option2
{
*Name: "120 x 180 dots per inch"
*DPI: PAIR(120, 180)
  *TextDPI: PAIR(120, 180)
    *PinsPerLogPass: 24
    *PinsPerPhysPass: 24
    *switch: PrintCompress
   {
      *case: Compress_Close			
      {
     	*MinStripBlankPixels: 120
	EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
       }
       *default:					
      {
  	*MinStripBlankPixels: 0
	EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
      }
   }
    *SpotDiameter: 100
    *%*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }		 *% ESC/PK
    *Command: CmdSendBlockData { *Cmd : "" }
    *Command: CmdSelect
     {
	  *Order:JOB_SETUP.5
	  *CallbackID: 31
      }
  }

*Option: Option3
  {
  *Name: "90 x 180 " =DOTS_PER_INCH
  *DPI: PAIR(90, 180)
  *TextDPI: PAIR(90, 180)
  *PinsPerLogPass: 24
   *PinsPerPhysPass: 24
  *switch: PrintCompress
   {
      *case: Compress_Close			
      {
     	*MinStripBlankPixels: 90
	EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
       }
       *default:					
      {
  	*MinStripBlankPixels: 0
	EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
      }
   }
    *SpotDiameter: 100
    *%*Command: CmdSendBlockData { *Cmd : "<1B>*&" %l{NumOfDataBytes / 3} }
     *Command: CmdSendBlockData { *Cmd : "" }
     *Command: CmdSelect
     {
	  *Order:JOB_SETUP.5
	  *CallbackID: 32
     }
  }

  *Option: Option4
    {
    *Name: "360 x 180 dots per inch"
    *DPI: PAIR(360, 180)
    *TextDPI: PAIR(360, 180)
      *PinsPerLogPass: 24
      *PinsPerPhysPass: 24
   *switch: PrintCompress
   {
      *case: Compress_Close			
      {
     	*MinStripBlankPixels: 360
	EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
       }
       *default:					
      {
  	*MinStripBlankPixels: 0
	EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
      }
   }
      *SpotDiameter: 120
    *% *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
     *Command: CmdSendBlockData { *Cmd : "" }
     *Command: CmdSelect
     {
	  *Order:JOB_SETUP.5
	  *CallbackID: 33
     }
    }

  *Option: Option5
    {
    *Name: "360 x 360 " =DOTS_PER_INCH
    *DPI: PAIR(360, 360)
    *TextDPI: PAIR(360, 360)
    *PinsPerLogPass: 48
    *PinsPerPhysPass: 24
    *switch: PrintCompress
   {
      *case: Compress_Close			
      {
     	*MinStripBlankPixels: 360
	EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
       }
       *default:					
      {
  	*MinStripBlankPixels: 0
	EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
      }
   }
     *SpotDiameter: 170
     *% *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
       *Command: CmdSendBlockData { *Cmd : "" }
       *Command: CmdSelect
       {
	  *Order:JOB_SETUP.5
	  *CallbackID: 34
        }
    }
}

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

*Option: A4
  {
  *rcNameID: =A4_DISPLAY

  *PrintableArea: PAIR(2952, 4140)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<46>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<07><00>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: A4_TRANSVERSE
  {
  *rcNameID: =A4_TRANSVERSE_DISPLAY

  *PrintableArea: PAIR(2952, 4088)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<32>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><00>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: LETTER
{
*rcNameID: =LETTER_DISPLAY
*PrintableArea: PAIR(2952, 3900)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<42>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><06>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: LEGAL
{
*rcNameID: =LEGAL_DISPLAY
*PrintableArea: PAIR(2952, 4980)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<54>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<08><04>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: TABLOID
{
*rcNameID: =TABLOID_DISPLAY
*PrintableArea: PAIR(3960, 6060)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<66>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<0A><02>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: EXECUTIVE
{
*rcNameID: =EXECUTIVE_DISPLAY
*PrintableArea: PAIR(2610, 3720)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<3F>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><03>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: FOLIO
{
*rcNameID: =FOLIO_DISPLAY
*PrintableArea: PAIR(2952, 4620)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<4E>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {

            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<07><08>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: A3
{
*rcNameID: =A3_DISPLAY
*PrintableArea: PAIR(3960, 5880)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<63>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<09><09>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: A5
{
*rcNameID: =A5_DISPLAY
*PrintableArea: PAIR(2096, 2880)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<31>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<04><09>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: STATEMENT
{
*rcNameID: =STATEMENT_DISPLAY
*PrintableArea: PAIR(1980, 3000)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<33>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><01>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

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

*Option: PENV_1
  {
  *rcNameID: =PENV_1_DISPLAY
  *PrintableArea: PAIR(1444, 2280)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<27>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<03><09>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_2
  {
  *rcNameID: =PENV_2_DISPLAY
  *PrintableArea: PAIR(1444, 2400)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<29>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<04><01>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_3
  {
  *rcNameID: =PENV_3_DISPLAY
  *PrintableArea: PAIR(1770, 2400)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<29>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<04><01>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_4
  {
  *rcNameID: =PENV_4_DISPLAY
  *PrintableArea: PAIR(1558, 2880)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<31>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<04><09>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_6
  {
  *rcNameID: =PENV_6_DISPLAY
  *PrintableArea: PAIR(1700, 3180)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<36>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<05><04>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_7
  {
  *rcNameID: =PENV_7_DISPLAY
  *PrintableArea: PAIR(2266, 3180)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<36>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<05><04>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: PENV_8
  {
  *rcNameID: =PENV_8_DISPLAY
  *PrintableArea: PAIR(1700, 4320)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<49>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
                *Cmd: "<1B>6<1B>F<07><03>"
                }
              }
            *case: MANUAL
              {
              }
          }
        }
    }
  }

*Option: 10x11_inch
  {
  *rcNameID: =10X11_DISPLAY
  *PageDimensions: PAIR(3600, 3960)
  *PrintableArea: PAIR(3600,3900)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<42>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><06>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 15x11_inch
  {
  *Name:"15x11 inch (381x279.4 mm)"
  *PageDimensions: PAIR(5400, 3960)
  *PrintableArea: PAIR(4902,3900)
              *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<42>"

              }
          }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><06>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 12.5x11_inch
  {
  *Name:"12.5x11 inch (317.5x279.4 mm)"
  *PageDimensions: PAIR(4500, 3960)
  *PrintableArea: PAIR(4500,3900)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
              *Command: CmdSelect
                {
                *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<42>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><06>"
                }
              }
            *case: MANUAL
              {

        }
    }
  }
  }
}

*Option: 9.5x11_inch
  {
  *Name:"9.5x11 inch (241x279.4 mm)"
  *PageDimensions: PAIR(3420,3960)
  *PrintableArea: PAIR(3420,3900)
              *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<42>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><06>"
              }
          }
          *case: MANUAL
            {

        }
    }
  }
  }
}

*Option: B5
  {
  *rcNameID: =B5_DISPLAY
  *PrintableArea: PAIR(2578,3540)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<3C>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><00>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: FANFOLD_STD_GERMAN
{
*rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
*PrintableArea: PAIR(3060, 4260)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<48>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<07><02>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: FANFOLD_LGL_GERMAN
{
*rcNameID: =FANFOLD_LGL_GERMAN_DISPLAY
*PrintableArea: PAIR(3060, 4260)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<4E>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<07><08>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_9
{
*rcNameID: =ENV_9_DISPLAY
*PrintableArea: PAIR(1394, 3120)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<35>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><03>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_10
{
*rcNameID: =ENV_10_DISPLAY
*PrintableArea: PAIR(1484, 3360)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<39>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><07>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_DL
{
*rcNameID: =ENV_DL_DISPLAY
*PrintableArea: PAIR(1558, 3000)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<33>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {

            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><02>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_C5
{
*rcNameID: =ENV_C5_DISPLAY
*PrintableArea: PAIR(2296, 3180)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
  *Command: CmdSelect
  {
  *Order: PAGE_SETUP.2
  *Cmd: "<1B>2<1B>C<36>"
  }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
  {
    *case: TRACTOR
      {

            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><04>"
              }
        }
      *case: MANUAL
        {

            }
        }
      }
  }
}

*Option: ENV_C3
{
*rcNameID: =ENV_C3_DISPLAY
*PrintableArea: PAIR(4592, 6420)
        *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<6C>"
        }
    }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {

            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<0A><08>"
              }
  }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_B5
  {
  *rcNameID: =ENV_B5_DISPLAY
  *PrintableArea: PAIR(2494, 3480)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<3B>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><09>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: ENV_MONARCH
{
*rcNameID: =ENV_MONARCH_DISPLAY
*PrintableArea: PAIR(1394, 2640)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<2D>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<04><05>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: Card_148x105_mm
{
*Name: "Card 148x105 mm"
*PageDimensions: PAIR(2098, 1488)
  *PrintableArea: PAIR(2096, 1380)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<18>"
        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<02><04>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x5.5_inch
  {
  *Name:"10x5.5 inch"
  *PageDimensions: PAIR(3600,1980)
  *PrintableArea: PAIR(3600,1920)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<21>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<03><03>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x11_3_inch
  {
  *Name:"10x11/3 inch"
  *PageDimensions: PAIR(3600,1320)
  *PrintableArea: PAIR(3600,1260)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<16>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<02><02>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x11_4_inch
  {
  *Name:"10x11/4 inch"
  *PageDimensions: PAIR(3600,990)
  *PrintableArea: PAIR(3600, 900)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<10>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<01><06>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x3_inch
  {
  *Name:"10x3 inch"
  *PageDimensions: PAIR(3600,1080)
  *PrintableArea: PAIR(3600, 1020)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<12>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<01><08>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x3_5_inch
  {
  *Name:"10x3.5 inch"
  *PageDimensions: PAIR(3600,1260)
  *PrintableArea: PAIR(3600, 1200)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<15>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<02><01>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x4_inch
  {
  *Name:"10x4 inch"
  *PageDimensions: PAIR(3600,1440)
  *PrintableArea: PAIR(3600, 1380)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<18>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<02><04>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x6_inch
  {
  *Name:"10x6 inch"
  *PageDimensions: PAIR(3600,2160)
  *PrintableArea: PAIR(3600, 2100)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<24>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<03><06>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x7_inch
  {
  *Name:"10x7 inch"
  *PageDimensions: PAIR(3600,2520)
  *PrintableArea: PAIR(3600, 2460)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<2A>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<04><02>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x7_25_inch
  {
  *Name:"10x7.25 inch"
  *PageDimensions: PAIR(3600,2610)
  *PrintableArea: PAIR(3600, 2520)
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<2B>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<04><03>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

*Option: 10x8_inch
  {
  *Name:"10x8 inch"
  *PageDimensions: PAIR(3600,2880)
  *PrintableArea: PAIR(3600, 2820)  
  *PrintableOrigin: PAIR(0, 0)

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: PAGE_SETUP.2
        *Cmd: "<1B>2<1B>C<30>"

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<04><08>"
              }
            }
          *case: MANUAL
            {

            }
        }
      }
  }
}

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

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<05><01>"
              }
            }
          *case: MANUAL
            {
            }
        }
      }
  }
}

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

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><03>"
              }
            }
          *case: MANUAL
            {
            }
        }
      }
  }
}

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

        }
      }
    *case:CMD_OKI
      {
      *switch: InputBin
        {
          *case: TRACTOR
            {
            *Command: CmdSelect
              {
              *Order: PAGE_SETUP.2
              *Cmd: "<1B>6<1B>F<06><03>"
              }
            }
          *case: MANUAL
            {
            }
        }
      }
  }
}

*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: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *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) }      
          }
        }
      *case:CMD_OKI
        {
        *switch: InputBin
        {
          *case: MANUAL
            {
              *TopMargin: 0
              *BottomMargin: 0
            }
          *case: TRACTOR
            {
              *TopMargin: 0
              *BottomMargin: 0
            *Command: CmdSelect
              {
              *Order: DOC_SETUP.3
              *Cmd: "<1B>6<1B>F" %c[0,15]{(PhysPaperLength*6)/3600} %c[0,15]{(PhysPaperLength*6/360) MOD 10}
                }
              }
          }
        }
    }
  }
}

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

*Option: Printer_Default
  {
  *Name: "打印机默认"
  }
*Option:Kduplex_Print
  {
  *Name: "双向打印"

  *switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: DOC_SETUP.2
        *Cmd: "<1B>U<00>"
        }
      }
    *case:CMD_OKI
      {
      *Command: CmdSelect
        {
        *Order: DOC_SETUP.2
        *Cmd: "<1B>%%B"
        }
      }
  }
}
*Option: Unidirectional_Print
{
*Name: "单向打印"

*switch: PrintCMDMode
  {
    *case: CMD_ESC
      {
      *Command: CmdSelect
        {
        *Order: DOC_SETUP.2
        *Cmd: "<1B>U<01>"
        }
      }
    *case:CMD_OKI
      {
      *Command: CmdSelect
        {
        *Order: DOC_SETUP.2
        *Cmd: "<1B>%%U"
        }
      }
  }
}
}

*Feature: PrintCMDMode
{
*Name: "仿真模式"
*DefaultOption: CMD_ESC

*Option: CMD_ESC
{
*Name: "LQ-1600K+"
*Command: CmdSelect
  {
  *Order: JOB_SETUP.1
    *CallbackID: 21
  }
}
*Option:CMD_OKI
{
*Name: "OKI 5330SC"
*Constraints: LIST(Resolution.Option2,Resolution.Option3)
  *% *Constraints: LIST(Resolution.Option2,Resolution.Option3,Resolution.Option4,Resolution.Option5) 
  *Command: CmdSelect
    {
    *Order: JOB_SETUP.1
      *CallbackID: 22
    }
  }
}

*Feature: PrintCompress
{
*Name: "压缩打印"
*DefaultOption: Compress_Close

*Option: Compress_Close
  {
  *Name: "关闭"
  *Command: CmdSelect
    {
     *Order: DOC_SETUP.1
     *CallbackID: 40
    }
  }
*Option:Compress_95
  {
  *rcNameID: 270
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 41
    }
  }
*Option:Compress_90
  {
   *rcNameID: 271
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 42
    }
  }
*Option:Compress_85
  {
  *rcNameID: 272
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 43
    }
  }
*Option:Compress_80
  {
  *rcNameID: 273
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 44
    }
  }
*Option: Compress_75
  {
    *rcNameID: 274
     *Command: CmdSelect
    {
     *Order: DOC_SETUP.1
     *CallbackID: 45
    }
  }
*Option:Compress_70
  {
  *rcNameID: 275
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 46
    }
  }
*Option:Compress_65
  {
   *rcNameID: 276
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 47
    }
  }
*Option:Compress_60
  {
  *rcNameID: 277
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 48
    }
  }
*Option:Compress_55
  {
  *rcNameID: 278
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 49
    }
  }
*Option:Compress_50
  {
  *rcNameID: 279
  *Command: CmdSelect
    {
    *Order: DOC_SETUP.1
      *CallbackID: 50
    }
  }
}

*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
  }
}

*switch: PrintCMDMode
{
*case: CMD_ESC
{
*Command: CmdStartDoc
  {
  *Order: DOC_SETUP.1
  *Cmd: "<1B>@<1B>t<011B>6<1B>R<001B>r<00>"
  }
}
*case:CMD_OKI
{
*Command: CmdStartDoc
  {
  *Order: DOC_SETUP.1
  *Cmd: "<18>"
  }
}
}

*Command: CmdStartPage
{
*Order: PAGE_SETUP.1
*Cmd: "<0D>"
}

*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)

*switch: PrintCMDMode
{
*case: CMD_ESC
{
  *MaxLineSpacing: 255
  *XMoveThreshold: 0
  *YMoveThreshold: *
  *XMoveUnit: 60
  *YMoveUnit: 180

   *switch: PrintCompress
   {
     *case: Compress_Close
      {
	*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
      }
     *default:
     {
	*Command: CmdXMoveAbsolute { *Cmd :"" }
      }
  }

*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel/2) )} }
*Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  }
*case:CMD_OKI
  {
    *MaxLineSpacing: 255
    *XMoveThreshold: *
    *YMoveThreshold: *
    *XMoveUnit: 180
    *YMoveUnit: 120

     *switch: PrintCompress
     {
        *case: Compress_Close
        {
	 *Command: CmdXMoveRelRight { *Cmd : "<1B>%%3" %m[0,255]{max_repeat((DestXRel / 2) )} }
             *Command: CmdXMoveRelLeft { *Cmd : "<1B>%%4" %m[0,255]{max_repeat((DestXRel / 2) )} }
         }
        *default:
        {
	*Command: CmdXMoveAbsolute { *Cmd :"" }
        }
     }

    *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>" }

*switch: PrintCMDMode
{
*case: CMD_ESC
{
*Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
}
*case:CMD_OKI
{
*Command: CmdUniDirectionOn { *Cmd : "<1B>%%U" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>%%B" }
}
}

*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE

*switch: PrintCMDMode
{
*case: CMD_ESC
{
  *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>" }
  }
*case:CMD_OKI
  {
    *% ========== 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)
  }
}


