*GPDFileName: "HiTiS4xx.gpd"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*ModelName: "HiTi S400 series"
*MasterUnits: PAIR(403, 403)
*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 99
*PrintRate: 1
*PrintRateUnit: PPM
*PrintRatePPM: 1

*%******************************************************************************************
*%									  Orientation
*%******************************************************************************************
*Feature: Orientation
{
	*rcNameID: =ORIENTATION_DISPLAY
	*DefaultOption: PORTRAIT
	*Option: PORTRAIT
	{
		*rcNameID: =PORTRAIT_DISPLAY
	*%	*Command: CmdSelect
	*%	{
	*%		*Order: DOC_SETUP.6
	*%		*Cmd: "<1B>&l0O"
	*%	}
	}
	*Option: LANDSCAPE_CC270
	{
		*rcNameID: =LANDSCAPE_DISPLAY
	*%	*Command: CmdSelect
	*%	{
	*%		*Order: DOC_SETUP.8
	*%		*Cmd: "<1B>&l1O"
	*%	}
	}
}

*%******************************************************************************************
*%									  Input Bin
*%******************************************************************************************
*Feature: InputBin
{
	*rcNameID: =PAPER_SOURCE_DISPLAY
	*DefaultOption: AUTO
	*Option: AUTO
	{
		*rcNameID: =AUTO_DISPLAY
	*%	*Command: CmdSelect
	*%	{
	*%		*Order: DOC_SETUP.11
	*%		*Cmd: "<1B>&l0H"
	*%	}
	}
}

*%******************************************************************************************
*%									  Resolution
*%******************************************************************************************
*Feature: Resolution
{
	*rcNameID: =RESOLUTION_DISPLAY
	*DefaultOption: Option1
	*Option: Option1
	{
		*Name: "403 x 403" =DOTS_PER_INCH
		*DPI: PAIR(403, 403)
		*TextDPI: PAIR(403, 403)
	*%	*MinStripBlankPixels: 32
	*%	EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED, TRAILING)
		*SpotDiameter: 100
	*%	*PinsPerLogPass: 64
	*%	*PinsPerPhysPass: 64

*%		*Command: CmdBeginRaster { *Cmd : "" }
*%		*Command: CmdEndRaster { *Cmd : "" }
*%		*Command: CmdSendBlockData { *Cmd : "" }

		*Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
		*Command: CmdEndRaster { *Cmd : "<1B>*rC" }
		*Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
	*%	*Command: CmdSelect
	*%	{
	*%		*Order: DOC_SETUP.7
	*%		*Cmd: "@PJL SET RESOLUTION=300<0A>@PJL ENTER LANGUAGE=PCL<0A0D1B>E<1B>*t403R"
	*%	}
	}
}

*%******************************************************************************************
*%									  Paper Size
*%******************************************************************************************
*Feature: PaperSize
{
	*rcNameID: =PAPER_SIZE_DISPLAY
	*DefaultOption: 4X6

	*Option: 4X6PHOTO
	{
		*Name: "HiTi 4x6 Photo Paper"
		*OptionID: 513
		*PageDimensions: PAIR(1632, 2448)
		*PrintableArea: PAIR(1632, 2448)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

		*Command: CmdSelect
		{
			*Order: DOC_SETUP.10
			*Cmd: "<1B>&l513a<1B>*p0x0Y<1B>*c0t1632x2448Y"
		}
	}

	*Option: 4X6STICKER
	{
		*Name: "HiTi 4x6 Sticker 1X1"
		*OptionID: 514
		*PageDimensions: PAIR(1640, 2456)
		*PrintableArea: PAIR(1632, 2448)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

		*Command: CmdSelect
		{
			*Order: DOC_SETUP.10
			*Cmd: "<1B>&l514a<1B>*p0x0Y<1B>*c0t1632x2448Y"
		}
	}

	*Option: 4X6STICKER424
	{
		*Name: "HiTi 4x6 Sticker 4/2/4"
		*OptionID: 515
		*PageDimensions: PAIR(768, 1136)
		*PrintableArea: PAIR(768, 1136)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

		*Command: CmdSelect
		{
			*Order: DOC_SETUP.10
			*Cmd: "<1B>&l515a<1B>*p0x0Y<1B>*c0t768x1136Y"
		}
	}

	*Option: 4X6STICKER4X4
	{
		*Name: "HiTi 4x6 Sticker 4X4"
		*OptionID: 516
		*PageDimensions: PAIR(368, 540)
		*PrintableArea: PAIR(368, 540)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

		*Command: CmdSelect
		{
			*Order: DOC_SETUP.10
			*Cmd: "<1B>&l516a<1B>*p0x0Y<1B>*c0t368x540Y"
		}
	}
}

*%******************************************************************************************
*%									  Color Mode
*%******************************************************************************************
*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: 24bpp

	*Option: 24bpp
	{
		*rcNameID: =24BPP_DISPLAY
		*DevNumOfPlanes: 1
		*DevBPP: 24
		*DrvBPP: 24
		*PaletteSize: 256
		*PaletteProgrammable? : FALSE
	}
}

*%******************************************************************************************
*%									  Doc setup commands
*%******************************************************************************************
*Command: CmdStartDoc
{
	*Order: DOC_SETUP.1
	*Cmd: "<1B>*r0F"
}
*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*Cmd: "<1B>*b0M"
}
*Command: CmdEndPage
{
	*Order: PAGE_FINISH.1
	*Cmd: "<1B>&r0F"
}
*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*Cmd: "<1B>%%-12345X"
}
*Command: CmdCopies
{
	*Order: DOC_SETUP.13
	*Cmd: "<1B>&l" %d{NumOfCopies}"X"
}

*%******************************************************************************************
*%									  Cursor, Page and Color Commands
*%******************************************************************************************

*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)

*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }

*OutputDataFormat: H_BYTE
*RasterSendAllData?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
