*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDFileName: "ZYNX-95.GPD"
*ModelName: "ZYNX-95"
*MasterUnits: PAIR(160, 144)
*ResourceDLL: "ZYNX-95.Dll"
*PrinterType: SERIAL
*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: MANUAL
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "160 x 144 " =DOTS_PER_INCH
        *DPI: PAIR(160, 144)
        *TextDPI: PAIR(160, 144)
        *PinsPerLogPass: 16
        *PinsPerPhysPass: 16
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
*% Warning: this resolution has RES_BO_NO_ADJACENT set in GPC, which is ignored by GPD. Custom code is needed.
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "<1B>*<01>" %l{NumOfDataBytes/2 } }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option3
    *Option: Option1
    {
        *rcNameID: 801
        *OptionID: 801
        *PageDimensions: PAIR(365, 1684)
        *PrintableArea: PAIR(300, 1684)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option2
    {
        *rcNameID: 802
        *OptionID: 802
        *PageDimensions: PAIR(365, 32767)
        *PrintableArea: PAIR(300, 32767)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option3
    {
        *rcNameID: 803
        *OptionID: 803
        *PageDimensions: PAIR(479, 1684)
        *PrintableArea: PAIR(450, 1684)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option4
    {
        *rcNameID: 804
        *OptionID: 804
        *PageDimensions: PAIR(479, 32767)
        *PrintableArea: PAIR(450, 32767)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(200, 200)
        *MaxSize: PAIR(450, 32767)
        *MaxPrintableWidth: 450
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
    }
}

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

*Feature: ZONEWIN_CASH
{
		*rcNameID: 805
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 806
    }
    *Option: Option2
    {
        *rcNameID: 807
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>p<0019FF>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 808
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B>p<0019FF>"
        }
    }
}

*Feature: ZONEWIN_CUTTER
{
		*rcNameID: 809
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option2
    *Option: Option1
    {
        *rcNameID: 810
    }
    *Option: Option2
    {
        *rcNameID: 811
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.5
            *Cmd: "<1D>VB<00>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 812
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.5
            *Cmd: "<1D>VB<00>"
        }
    }
}

*Feature: ZONEWIN_SETUP_FEED_MM
{
		*rcNameID: 900
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 901
    }
    *Option: Option2
    {
        *rcNameID: 902
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><0B>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 903
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><17>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 904
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><22>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 905
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><2D>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 906
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><39>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 907
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><44>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 908
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><4F>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 909
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><5B>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 910
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><66>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 911
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4A><71>"
        }
    }
}

*Feature: ZONEWIN_SETUP_FEED_LINE
{
		*rcNameID: 1000
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 1001
    }
    *Option: Option2
    {
        *rcNameID: 1002
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><01>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 1003
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><02>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 1004
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><03>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 1005
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><04>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 1006
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><05>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 1007
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><06>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 1008
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><07>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 1009
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><08>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 1010
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><09>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 1011
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><0A>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 1012
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4A><0B>"
        }
    }
}

*Feature: ZONEWIN_SETUP_BACK_MM
{
		*rcNameID: 1100
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 1101
    }
    *Option: Option2
    {
        *rcNameID: 1102
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><0B>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 1103
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><17>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 1104
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><22>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 1105
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><2D>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 1106
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><39>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 1107
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><44>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 1108
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><4F>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 1109
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><5B>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 1110
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><66>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 1111
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: "<1B><4B><71>"
        }
    }
}

*Feature: ZONEWIN_SETUP_BACK_LINE
{
		*rcNameID: 1200
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 1201
    }
    *Option: Option2
    {
        *rcNameID: 1202
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><01>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 1203
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><02>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 1204
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><03>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 1205
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><04>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 1206
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><05>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 1207
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><06>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 1208
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><07>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 1209
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><08>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 1210
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><09>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 1211
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><0A>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 1212
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B><4B><0B>"
        }
    }
}

*Feature: ZONEWIN_FINISH_FEED_MM
{
		*rcNameID: 1300
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 1301
    }
    *Option: Option2
    {
        *rcNameID: 1302
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><0B>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 1303
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><17>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 1304
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><22>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 1305
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><2D>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 1306
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><39>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 1307
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><44>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 1308
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><4F>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 1309
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><5B>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 1310
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><66>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 1311
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><71>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 1312
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><7D>"
        }
    }
    *Option: Option13
    {
        *rcNameID: 1313
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><88>"
        }
    }
    *Option: Option14
    {
        *rcNameID: 1314
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><93>"
        }
    }
    *Option: Option15
    {
        *rcNameID: 1315
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><9F>"
        }
    }
    *Option: Option16
    {
        *rcNameID: 1316
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.2
            *Cmd: "<1B><4A><AA>"
        }
    }
}

*Feature: ZONEWIN_FINISH_FEED_LINE
{
		*rcNameID: 1400
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 1401
    }
    *Option: Option2
    {
        *rcNameID: 1402
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><01>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 1403
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><02>"
        }
    }
    *Option: Option4
    {
        *rcNameID: 1404
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><03>"
        }
    }
    *Option: Option5
    {
        *rcNameID: 1405
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><04>"
        }
    }
    *Option: Option6
    {
        *rcNameID: 1406
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><05>"
        }
    }
    *Option: Option7
    {
        *rcNameID: 1407
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><06>"
        }
    }
    *Option: Option8
    {
        *rcNameID: 1408
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><07>"
        }
    }
    *Option: Option9
    {
        *rcNameID: 1409
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><08>"
        }
    }
    *Option: Option10
    {
        *rcNameID: 1410
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><09>"
        }
    }
    *Option: Option11
    {
        *rcNameID: 1411
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><0A>"
        }
    }
    *Option: Option12
    {
        *rcNameID: 1412
        *Command: CmdSelect
        {
            *Order: JOB_FINISH.3
            *Cmd: "<1B><4A><0B>"
        }
    }
}

*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>@"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.4
    *Cmd: "<0C>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 160
*YMoveUnit: 144
*% Error: the above *YMoveUnit value is wrong. It should be dependent on the resolution. Correct it manually.
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{DestX}}
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat(DestYRel )} }
*Command: CmdCR { *Cmd : "<>" }
*Command: CmdLF { *Cmd : "<>" }
*Command: CmdFF { *Cmd : "<>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultCTT: -1
