*%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*%  METEOR SRL 80mm thermal printer driver 2.0
*% Aug. 2007
*% vincent <zmstone@gmail.com>
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%

*GPDSpecVersion: "1.0"
*GPDFileName: "Thermal80V2.GPD"
*GPDFileVersion: "2.0"
*Include: "StdNames.gpd"
*ModelName: "Zonerich Thermal 80 Series"

*MasterUnits: PAIR(406, 406)
*ResourceDLL: "Thermal80V2.dll"

*PrintRate: 100
*PrintRateUnit: LPM
*PrinterType: SERIAL

*Feature: Orientation
{
	*rcNameID: =ORIENTATION_DISPLAY
	*DefaultOption: PORTRAIT
	*Option: PORTRAIT
	{
		*rcNameID: =PORTRAIT_DISPLAY
	}
}
*Feature: InputBin
{
	*rcNameID: =PAPER_SOURCE_DISPLAY
	*DefaultOption: Option1
	*Option: Option1
	{
		*rcNameID: 270
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*CallbackID: 1000
		}
	}
}
*Feature: PaperSize
{
	*rcNameID: =PAPER_SIZE_DISPLAY
	*DefaultOption: PosPaper1
	*Option: PosPaper1
	{
		*rcNameID: 271
		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*PageDimensions: PAIR(1280, 4752)
				*PrintableArea: PAIR(1152, 4624)
				*PrintableOrigin: PAIR(64, 64)
				*CursorOrigin: PAIR(64, 64)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.10
					*CallbackID: 1000
				}
			}
		}
	}
	*Option: CUSTOMLENGTHV2
	{
		*rcNameID: 272
		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*PageDimensions: PAIR(1280, 8000)
				*PrintableArea: PAIR(1152, 7872)
				*PrintableOrigin: PAIR(64, 64)
				*CursorOrigin: PAIR(64, 64)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.10
					*CallbackID: 1000
				}
			}
		}
	}
}

*Feature: Resolution
{
	*rcNameID: =RESOLUTION_DISPLAY
	*DefaultOption: Option
	*Option: Option
	{
		*Name: "203 X 203 " =DOTS_PER_INCH
		*DPI: PAIR(203, 203)
		*TextDPI: PAIR(203, 203)
		*SpotDiameter: 100
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.6
			*CallbackID: 1000
		}
	}
}

*Feature: Halftone
{
	*rcNameID: =HALFTONING_DISPLAY
	*DefaultOption: NONE_2x2
	*Option: NONE_2x2
	{
		*rcNameID: =HT_AUTO_SELECT_DISPLAY
	}
	*Option: HT_PATSIZE_2x2
	{
		*Name: "NAME_HT_PATSIZE_2x2"
	}
	*Option: HT_PATSIZE_2x2_M
	{
		*Name: "NAME_HT_PATSIZE_2x2_M"
	}
	*Option: HT_PATSIZE_4x4
	{
		*Name: "NAME_HT_PATSIZE_4x4"
	}
	*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: JOB_SETUP.1
	*CallbackID: 1002
}

*Command: CmdStartDoc
{
	*Order: DOC_SETUP.7
	*CallbackID: 1003
}

*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*CallbackID: 1004
}

*Command: CmdEndPage
{
	*Order: PAGE_FINISH.1
	*CallbackID: 1005
}

*Command: CmdEndDoc
{
	*Order: DOC_FINISH.1
	*CallbackID: 1006
}

*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*CallbackID: 1007
}


*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*Command: CmdBeginRaster
{
	*CallbackID: 1000
}
*Command: CmdSendBlockData
{
	*Params: LIST(RasterDataWidthInBytes,RasterDataHeightInPixels,NumOfDataBytes)
       	*CallbackID: 1001
}
*Command: CmdEndRaster
{
	*CallbackID: 1000
}

*%
*%  Document setup
*%  Raster
*StripBlanks: TRAILING
*OptimizeLeftBound?: FALSE
*OutputDataFormat: H_BYTE

*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE

*% Cursor
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: NO_MOVE
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 203
*YMoveUnit: 203
*OutputDataFormat: H_BYTE
*RasterSendAllData?: FALSE
*SendMultipleRows?: FALSE
*UseExpColorSelectCmd?: TRUE

*% MaxMultipleRowBytes: 2

*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
