*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.01"
*GPDFileName: "TFES166.GPD"
*ModelName: "TOSHIBA e-STUDIO166"
*MasterUnits: PAIR(1200, 1200)
*ResourceDLL: "WilDM2K.Dll"
*PrinterType: SERIAL
*MaxCopies: 32767
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>PR=0;"
        }
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>PR=270;"
        }
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "Auto (Printer Select)"
        *OptionID: 262
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=0;"
        }
    }
    *Option: Option2
    {
        *rcNameID: 263
        *OptionID: 263
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=1;"
        }
    }
    *Option: Option3
    {
        *rcNameID: 264
        *OptionID: 264
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=2;"
        }
    }
    *Option: Option4
    {
        *rcNameID: 267
        *OptionID: 267
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=254;"
        }
    }
    *Option: Option5
    {
        *rcNameID: 268
        *OptionID: 268
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=255;"
        }
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option2
    *Option: Option1
    {
        *Name: "300 x 300 " =DOTS_PER_INCH
        *DPI: PAIR(300, 300)
        *TextDPI: PAIR(300, 300)
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd : "<1B>" %d{NumOfDataBytes}"=" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.5
            *Cmd: "<1B>FR=33;"
        }
    }
    *Option: Option2
    {
        *Name: "600 x 600 " =DOTS_PER_INCH
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd : "<1B>" %d{NumOfDataBytes}"=" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.5
            *Cmd: "<1B>FR=66;"
        }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(9540, 13644)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=9920;<1B>PY=13644;<1B>LM=416;<1B>TM=0;<1B>FE=1;<1B>RS=476;<1B>TS=352;<1B>"
+ "SZ=0;"
        }
    }
    *Option: FOLIO_210x300
    {
        *Name: "Folio "
        *PageDimensions: PAIR(9924, 15600)
        *PrintableArea: PAIR(9540, 15200)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=15204;<1B>LM=500;<1B>TM=0;<1B>FE=0;<1B>SZ=1;"
        }
    }
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(9816, 12816)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=12816;<1B>LM=276;<1B>TM=0;<1B>FE=1;<1B>RS=888;<1B>TS=224;<1B>"
+ "SZ=2;"
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(9816, 16416)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=16416;<1B>LM=276;<1B>TM=0;<1B>FE=0;<1B>SZ=3;"
        }
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(6612, 9540)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=9924;<1B>PY=9540;<1B>LM=1880;<1B>TM=0;<1B>FE=0;<1B>SZ=4;"
        }
    }
    *Option: A3
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(13644, 19464)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=14028;<1B>PY=19464;<1B>LM=472;<1B>TM=0;<1B>FE=0;<1B>SZ=6;"
        }
    }
    *Option: B4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(11760, 16812)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=12144;<1B>PY=16812;<1B>LM=268;<1B>TM=0;<1B>FE=0;<1B>SZ=7;"
        }
    }
    *Option: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(8220, 11760)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=9296;<1B>PY=11760;<1B>LM=1076;<1B>TM=0;<1B>FE=1;<1B>RS=248;<1B>TS=1110;<1B>SZ=8;"
        }
    }
    *Option: LEDGER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12816, 20016)
        *PrintableOrigin: PAIR(192, 192)
        *RotateSize?:TRUE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=14032;<1B>PY=20400;<1B>LM=888;<1B>TM=0;<1B>SZ=9;"
        }
    }
    *Option: COMPUTER
    {
        *Name: "Computer "
        *PageDimensions: PAIR(12136, 16800)
        *PrintableArea: PAIR(11752, 16416)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=12136;<1B>PY=16416;<1B>LM=268;<1B>TM=0;<1B>FE=0;<1B>SZ=10;"
        }
    }
    *Option: STATEMENT
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(6216, 9816)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=9816;<1B>LM=2076;<1B>TM=0;<1B>FE=0;<1B>SZ=11;"
        }
    }
    *Option: 13_INCH_LEGAL
    {
        *Name: "13inch Legal"
        *PageDimensions: PAIR(10200, 15600)
        *PrintableArea: PAIR(9816, 15216)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=15216;<1B>LM=276;<1B>TM=0;<1B>FE=0;<1B>SZ=18;"
        }
    }
    *Option: K8
    {
        *Name: "8K"
        *PageDimensions: PAIR(12760, 18420)
        *PrintableArea: PAIR(12376, 18036)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=12376;<1B>PY=18036;<1B>LM=1000;<1B>TM=0;<1B>FE=0;<1B>SZ=20;"
        }
    }
    *Option: K16
    {
        *Name: "16K"
        *PageDimensions: PAIR(9216, 12760)
        *PrintableArea: PAIR(8832, 12376)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=10200;<1B>PY=12606;<1B>LM=768;<1B>TM=0;<1B>FE=1;<1B>RS=880;<1B>TS=760;<1B>SZ=22;"
        }
    }
}
*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: CmdStartJob
{
    *Order: DOC_SETUP.1
    *Cmd: "ES00"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<1B>SP;"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<1B>ED;"
}
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<1B>EP;"
}
*Command: CmdCopies
{
    *Order: DOC_SETUP.9
    *Cmd: "<1B>CC=" %d{NumOfCopies}";"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*TextCaps: LIST(TC_RA_ABLE)
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 1200
*YMoveUnit: 1200
*Command: CmdXMoveAbsolute { *Cmd : "<1B>XP=" %d{DestX}";" }
*Command: CmdYMoveAbsolute { *Cmd : "<1B>YP=" %d{DestY}";" }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<1B>FF;" }
*EjectPageWithFF?: TRUE
*Command: CmdEnableTIFF4 { *Cmd : "<1B>EM=1;" }
*Command: CmdDisableCompression { *Cmd : "<1B>EM=0;" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: 1
*DefaultCTT: -1
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST(1)
    }
}
