*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.03"
*GPDFileName: "TFES182.GPD"
*ModelName: "TOSHIBA e-STUDIO182"
*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: 265
        *OptionID: 265
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=3;"
        }
    }
    *Option: Option5
    {
        *rcNameID: 266
        *OptionID: 266
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=4;"
        }
    }
    *Option: Option6
    {
        *rcNameID: 267
        *OptionID: 267
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>PS=254;"
        }
    }
    *Option: Option7
    {
        *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=9540;<1B>PY=13644;<1B>LM=364;<1B>TM=0;<1B>FE=1;<1B>RS=476;<1B>TS=352;<1B>"
+ "SZ=0;<1B>XD=180;<1B>YD=324;"
        }
    }
    *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=9540;<1B>PY=15200;<1B>LM=384;<1B>TM=0;<1B>FE=0;<1B>SZ=1;<1B>XD=91;<1B>YD=0;"
        }
    }
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(9816, 12816)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=9816;<1B>PY=12816;<1B>LM=266;<1B>TM=0;<1B>FE=1;<1B>RS=888;<1B>TS=224;<1B>"
+ "SZ=2;<1B>XD=0;<1B>YD=182;"
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(9816, 16416)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=9816;<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=6612;<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=13644;<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=11760;<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=8220;<1B>PY=11760;<1B>LM=1076;<1B>TM=0;<1B>FE=1;<1B>RS=248;<1B>TS=1110;<1B>SZ=8;<1B>XD=0;<1B>YD=1076;"
        }
    }
    *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=12816;<1B>PY=20016;<1B>LM=888;<1B>TM=0;<1B>SZ=9;"
        }
    }
    *Option: 11X17
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12816, 20016)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=12816;<1B>PY=20016;<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=11752;<1B>PY=16416;<1B>LM=268;<1B>TM=0;<1B>FE=0;<1B>SZ=10;<1B>XD=0;<1B>YD=0;"
        }
    }
    *Option: STATEMENT
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(6216, 9816)
        *PrintableOrigin: PAIR(192, 192)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.6
            *Cmd: "<1B>PX=6216;<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=9816;<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;<1B>XD=190;<1B>YD=0;"
        }
    }
    *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=8832;<1B>PY=12376;<1B>LM=768;<1B>TM=0;<1B>FE=1;<1B>RS=1080;<1B>TS=760;<1B>SZ=22;<1B>XD=0;<1B>YD=760;"
        }
    }
}
*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
    }
}
*Feature: Duplex
{
     *Name: "2-sided printing"
     *DefaultOption: NONE
     *Option: NONE
     {
         *rcNameID: =NONE_DISPLAY
         *Command: CmdSelect
         {
             *Order: DOC_SETUP.3
             *Cmd: "<1B>DX=0;"
         }
     }
     *Option: VERTICAL
     {
         *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
         *Command: CmdSelect
         {
             *Order: DOC_SETUP.3
             *Cmd: "<1B>DX=1;"
         }
     }
     *Option: HORIZONTAL
     {
         *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
         *Command: CmdSelect
         {
             *Order: DOC_SETUP.3
             *Cmd: "<1B>DX=2;"
         }
     }
}
*%-------------------------------------------------------------------------
*% Collate
*%-------------------------------------------------------------------------
*Feature: Collate
{
   *Name: "Collate"

   *DefaultOption: OFF
   *Option: ON
   {
       *Name: "On"
       *Command: CmdSelect
       {
           *Order: DOC_SETUP.10
           *% Collate works with disk or Ram disk
           *% Printer will take care of collated copies
           *Cmd: "<1B>CT=" %d{NumOfCopies} ";"
       }
   }
   *Option: OFF
   {
       *Name: "Off"
       *Command: CmdSelect
       {
           *Order: DOC_SETUP.10
           *%Collation NOT selected in application.
           *Cmd: ""
       }
   }
}
*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;"
}
*%-------------------------------------------------------------------------
*% Only set number of copies if Collate is OFF -- otherwise, Printer or
*% Print Processor will take care of it (see *Feature: Collate)
*%-------------------------------------------------------------------------
*switch: Collate
{
   *case: OFF
   {
       *Command: CmdCopies
       {
   *Order: DOC_SETUP.9
   *Cmd: "<1B>CC=" %d{NumOfCopies}";"
       }
   }
   *case: ON
   {
       *Command: CmdCopies
       {
   *Order: DOC_SETUP.9
   *Cmd: "<1B>CC=1;"
       }
   }
}
*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)
    }
}
*Ifdef: WINNT_60
*PrintProcDuplexOptions: 1
*Endif: WINNT_60

*InvalidCombination: LIST(Duplex.HORIZONTAL,InputBin.Option6)
*InvalidCombination: LIST(Duplex.HORIZONTAL,InputBin.Option7)
*InvalidCombination: LIST(Duplex.VERTICAL,InputBin.Option6)
*InvalidCombination: LIST(Duplex.VERTICAL,InputBin.Option7)
