*GPDFileName: "TM690.dat"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*CodePage: 936
*ModelName: "TM690 Printer Driver"
*MasterUnits: PAIR(609,609)
*ResourceDLL: "unires.dll"
*PrinterType: SERIAL
*MaxCopies: 1
*PrintRate: 16
*PrintRateUnit: PPM
*PrintRatePPM: 16
*%******************************************************************************************
*%                                      Orientation
*%******************************************************************************************
*Feature:Orientation 
{ 
	*rcNameID: =ORIENTATION_DISPLAY
	*DefaultOption: PORTRAIT	
	*Option: PORTRAIT
	{ 
		*rcNameID: =PORTRAIT_DISPLAY
		*switch: Resolution 
		{ 
			*case: Option1
			{
				*Command:CmdSelect 
				{ 
					*Order:DOC_SETUP.1
					*CallbackID:0
				} 
			}
			*default
			{
				*Command:CmdSelect 
				{ 
					*Order:DOC_SETUP.1
					*CallbackID:1
				} 
			}
		}
	} 	
	*Option:LANDSCAPE_CC270
	{ 
		*rcNameID: =LANDSCAPE_DISPLAY
		*switch: Resolution 
		{ 
			*case: Option1
			{
				*Command:CmdSelect 
				{ 
					*Order:DOC_SETUP.1
					*CallbackID:10
				} 
			}
			*default
			{
				*Command:CmdSelect 
				{ 
					*Order:DOC_SETUP.1
					*CallbackID:11
				} 
			}
		}
	}
} 
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: UPPER
    *Option: UPPER
    {
        *rcNameID: =UPPER_TRAY_DISPLAY
    }
}

*%******************************************************************************************
*%                                      Collate Type
*%******************************************************************************************
*Feature: Collate
{
    *Name: "Collate"
    *DefaultOption: OFF
    *Option: OFF
    {
        *Name: "Collated"
    }
    *Option: ON
    {
        *Name: "Uncollated"
    }
}
*%******************************************************************************************
*%                                      Resolution
*%******************************************************************************************
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option2
    *Option: Option1
    {
        *Name: "DPI:609*609"
        *DPI: PAIR(609, 609)
        *TextDPI: PAIR(609, 609)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 100
        *SpotDiameter: 100
    }
   *Option: Option2
    {
        *Name: "DPI:203*203"
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 100
        *SpotDiameter: 100
    }
}


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

    *Option: S2
    {
        *Name:"S3: 56m*150mm"
        *PageDimensions: PAIR(1342, 3596)
        *PrintableArea: PAIR(1342, 3596)
        *CursorOrigin: PAIR(0, 0)
        *PrintableOrigin: PAIR(0, 0)
       *Command: CmdSendBlockData { *Cmd : "" }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: ""
        }
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(200, 100)
        *MaxSize: PAIR(80000,100000)
        *MaxPrintableWidth: 80000
        *MinLeftMargin: 10
        *CenterPrintable?: FALSE
        *TopMargin: 0
        *BottomMargin: 0
	*InsertBlock: =PaperConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: ""
        }
    }


}
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.S2)



*%******************************************************************************************
*%                                      Color Mode
*%******************************************************************************************
*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: 24bpp
	*Option: 24bpp
	{
		*rcNameID: =24BPP_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*DrvBPP: 24
		*IPCallbackID: 5
		*PaletteSize: 256
		*PaletteProgrammable? : TRUE
		*Command: CmdEnableDRC { *Cmd : "" }
		*Command: CmdDefinePaletteEntry { *Cmd : "" }
		*Command: CmdSelectPaletteEntry { *Cmd : "" }
		*Command: CmdSetSrcBmpWidth { *Cmd : "" }
		*Command: CmdSelect
		{
			*Order: PAGE_SETUP.16
			*Cmd: ""
		}
	}
}

*%******************************************************************************************
*%                                      HalfTone
*%******************************************************************************************
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_SUPERCELL_M
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }

}
*%******************************************************************************************
*%                                      Doc setup commands
*%******************************************************************************************
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.9
    *Cmd: ""
}
*Command: CmdEndDoc
{
    *Order: DOC_FINISH.2
    *Cmd: ""
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.2
    *Cmd: ""
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: ""
}
*Command: CmdCopies
{
    *Order: DOC_SETUP.13
    *Cmd: ""
}




*%******************************************************************************************
*%                        Cursor and Page Commands
*%******************************************************************************************
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 609
*YMoveUnit: 609
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
+                   17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
+                   33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
+                   49,50,51,52,53,54,56,57,58,59)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
*DefaultCTT: 1
