*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDFileName: "pp7epc.GPD"
*ModelName: "Posiflex XpPRT 3 inch 512 Partial Cut v3"
*MasterUnits: PAIR(180, 180)
*ResourceDLL: "pp7kres.Dll"
*PrinterType: SERIAL


*Feature: Posiflex4
{
    *Name: "Cmd1 feature"
    *FeatureType: PRINTER_PROPERTY
    *Option: cmd1
    {
    	*Name: "Cmd1 opt"
    	*Command: CmdSelect
		{
			*Order: JOB_SETUP.2
			*CallbackID: 41
		}
	}
}


*Feature: Posiflex5
{
    *Name: "Cmd2 feature"
    *FeatureType: PRINTER_PROPERTY
    *Option: cmd2
    {
    	*Name: "Cmd2 opt"
    	*Command: CmdSelect
		{
			*Order: DOC_SETUP.5
			*CallbackID: 42
		}
	}
}


*Feature: Posiflex6
{
    *Name: "Cmd3 feature"
    *FeatureType: PRINTER_PROPERTY
    *Option: cmd3
    {
    	*Name: "Cmd3 opt"
    	*Command: CmdSelect
		{
			*Order: DOC_FINISH.5
			*CallbackID: 43
		}
	}
}


*Feature: Posiflex7
{
    *Name: "Cmd4 feature"
    *FeatureType: PRINTER_PROPERTY
    *Option: cmd4
    {
    	*Name: "Cmd4 opt"
    	*Command: CmdSelect
		{
			*Order: PAGE_SETUP.5
			*CallbackID: 44
		}
	}
}


*Feature: Posiflex8
{
    *Name: "Cmd5 feature"
    *FeatureType: PRINTER_PROPERTY
    *Option: cmd5
    {
    	*Name: "Cmd5 opt"
    	*Command: CmdSelect
		{
			*Order: PAGE_FINISH.5
			*CallbackID: 45
		}
	}
}


*Feature: Posiflex1
{
    *Name: "Cash Drawer"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: drawer0
    *Option: drawer0
    {
    	*Name: "No"
    	*Command: CmdSelect
    	{
			*Order: DOC_SETUP.2
    		*CallbackID: 10
    	}
    }
    *Option: drawer1
    {
    	*Name: "CR1"
    	*Command: CmdSelect
    	{
			*Order: DOC_SETUP.2
    		*CallbackID: 11
    	}
    }
    *Option: drawer2
    {
    	*Name: "CR2"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.2
			*CallbackID: 12
		}
    }
}


*Feature: Posiflex2
{
    *Name: "Pulse Width"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: ms4
    *Option: ms1
    {
	    *Name: "50 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
			*CallbackID: 21
		}
    }
    *Option: ms2
    {
    	*Name: "100 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
		*CallbackID: 22
		}
    }
    *Option: ms3
    {
    	*Name: "150 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
		*CallbackID: 23
		}
    }
    *Option: ms4
    {
    	*Name: "200 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
		*CallbackID: 24
		}
    }
    *Option: ms5
    {
    	*Name: "250 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
		*CallbackID: 25
		}
    }
    *Option: ms6
    {
    	*Name: "300 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
		*CallbackID: 26
		}
    }
    *Option: ms7
    {
    	*Name: "350 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
			*CallbackID: 27
		}
    }
    *Option: ms8
    {
    	*Name: "400 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
			*CallbackID: 28
		}
    }
    *Option: ms9
    {
    	*Name: "450 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
			*CallbackID: 29
		}
    }
    *Option: ms10
    {
    	*Name: "500 ms"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.3
			*CallbackID: 30
		}
    }
}


*Feature: Posiflex3
{
    *Name: "Kick-out Drawer At"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: doc1
    *Option: doc1
	{
        *Name: "Docu Start"
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.4
			*CallbackID: 1
		}
	}
    *Option: doc2
	{
        *Name: "Docu End"
		*Command: CmdSelect
		{
			*Order: DOC_FINISH.4
			*CallbackID: 2
		}
	}
    *Option: page1
	{
        *Name: "Page Start"
		*Command: CmdSelect
		{
			*Order: PAGE_SETUP.4
			*CallbackID: 3
		}
	}
    *Option: page2
	{
        *Name: "Page End"
		*Command: CmdSelect
		{
			*Order: PAGE_FINISH.4
			*CallbackID: 4
		}
	}
}


*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 266
        *OptionID: 266
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option3
    *Option: Option1
    {
        *Name: "90 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(90, 180)
        *TextDPI: PAIR(90, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>J<001D>v01" }
    }
    *Option: Option2
    {
        *Name: "90 x 90 " =DOTS_PER_INCH
        *DPI: PAIR(90, 90)
        *TextDPI: PAIR(90, 90)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>J<001D>v03" }
    }
    *Option: Option3
    {
        *Name: "180 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>J<001D>v00" }
    }
    *Option: Option4
    {
        *Name: "180 x 90 " =DOTS_PER_INCH
        *DPI: PAIR(180, 90)
        *TextDPI: PAIR(180, 90)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>J<001D>v02" }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option3
    *Option: Option1
    {
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(565, 1080)
        *PrintableArea: PAIR(538, 1080)
        *PrintableOrigin: PAIR(27, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1080)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1080)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
        }
    }
    *Option: Option2
    {
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(565, 1890)
        *PrintableArea: PAIR(538, 1890)
        *PrintableOrigin: PAIR(27, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1890)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1890)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
        }
    }
    *Option: Option3
    {
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(565, 1980)
        *PrintableArea: PAIR(538, 1980)
        *PrintableOrigin: PAIR(27, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1980)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 1980)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
        }
    }
    *Option: Option4
    {
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(565, 23040)
        *PrintableArea: PAIR(538, 23040)
        *PrintableOrigin: PAIR(27, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 23040)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (538->536) so it is divisible by the resolution X scale.
                *PrintableArea: PAIR(536, 23040)
*% Warning: the following printable origin X is adjusted (27->28) so it is divisible by the resolution X scale.
                *PrintableOrigin: PAIR(28, 0)
            }
        }
    }
}
*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
    }
}
*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *Cmd: ""
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<000000>"
}
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>@<1B>=<011D>P<B4B41B>R<001B>t<021B>c3<041B>c4<001B>2"
}
*Command: CmdEndDoc
{
    *Order: DOC_FINISH.1
    *Cmd: ""
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: ""
}
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<000A1D>VB<10>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 180
*YMoveUnit: 180
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{DestX} }
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c{DestYRel } }
*Command: CmdCR { *Cmd : "<000D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultFont: 3
*DefaultCTT: 1
*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)
    }
    *case: LANDSCAPE_CC270
    {
        *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)
    }
}


