*GPDFileName: "HiTiP72x.gpd"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*ModelName: "HiTi P72xL"
*MasterUnits: PAIR(300, 300)
*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 9999
*PrintRate: 8
*PrintRateUnit: PPM
*PrintRatePPM: 8
*OutputOrderReversed?: FALSE

*%******************************************************************************************
*%									  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: "300 x 300" =DOTS_PER_INCH
		*DPI: PAIR(300, 300)
		*TextDPI: PAIR(300, 300)
	*%	*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>*t300R"
	*%	}
	}
}

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

	*Option: 4X6
	{
		*Name: "6x4 / 152x100mm"
		*OptionID: 520
		*PageDimensions: PAIR(1240, 1844)
		*PrintableArea: PAIR(1240, 1844)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 5X7
	{
		*Name: "5x7 / 127x178mm"
		*OptionID: 523
		*PageDimensions: PAIR(1548, 2140)
		*PrintableArea: PAIR(1548, 2140)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

		*Command: CmdSelect
		{
			*Order: DOC_SETUP.10
			*Cmd: "<1B>&l523a<1B>*p0x0Y<1B>*c0t1548x2140Y"
		}
	}
	
	*Option: 6X8
	{
		*Name: "6x8 / 152x203mm"
		*OptionID: 521
		*PageDimensions: PAIR(1844, 2434)
		*PrintableArea: PAIR(1844, 2434)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 6X9
	{
		*Name: "6x9 / 152x229mm"
		*OptionID: 522
		*PageDimensions: PAIR(1844, 2740)
		*PrintableArea: PAIR(1844, 2740)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 6X4_SPLIT
	{
		*Name: "6x4-Split (6x2 2 prints)"
		*OptionID: 525
		*PageDimensions: PAIR(1244, 1848)
		*PrintableArea: PAIR(1240, 1844)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 6X9_SPLIT
	{
		*Name: "6x9/6x8-Split"
		*OptionID: 524
		*PageDimensions: PAIR(1844, 2492)
		*PrintableArea: PAIR(1844, 2492)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 5X7_2UP
	{
		*Name: "5x7-2UP"
		*OptionID: 529
		*PageDimensions: PAIR(1072, 1548)
		*PrintableArea: PAIR(1072, 1548)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

	*Option: 6X9_2UP
	{
		*Name: "6x9/6x8-2UP"
		*OptionID: 530
		*PageDimensions: PAIR(1248, 1852)
		*PrintableArea: PAIR(1240, 1844)
		*PrintableOrigin: PAIR(0, 0)
		*CursorOrigin: PAIR(0, 0)

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

*%******************************************************************************************
*%									  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
