*GPDSpecVersion: "3.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.0"
*GPDFileName: "LKTXX.GPD"
*ModelName: "VENDOR THERMAL PRINTER"
*MasterUnits: PAIR(180, 180)
*ResourceDLL: "LKTXX.Dll"
*PrinterType: SERIAL
*MaxCopies: 9999
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "180x 180" =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>J<001D>v0<00>" %l{NumOfDataBytes}"<0100>" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.10
            *Cmd: ""
        }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(512, 2104)
        *PrintableArea: PAIR(512, 2104)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: "<1B>2"
        }
    }
    *Option: Option2
    {
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(512, 23208)
        *PrintableArea: PAIR(512, 23208)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: "<1B>2"
        }
    }
    *Option: Option3
    {
        *rcNameID: 267
        *OptionID: 267
        *PageDimensions: PAIR(512, 32767)
        *PrintableArea: PAIR(512, 32767)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: "<1B>2"
        }
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(6, 64)
        *MaxSize: PAIR(524, 32767)
        *MaxPrintableWidth: 512
        *MinLeftMargin: 6
        *CenterPrintable?: FALSE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: "<1B>2"
        }
    }
}
*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: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *CallbackID: 1
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *CallbackID: 3
}
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *CallbackID: 4
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
   *CallbackID: 2
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*XMoveThreshold: 1
*YMoveThreshold: 1
*XMoveUnit: 180
*YMoveUnit: 180
*Command: CmdXMoveAbsolute { *Cmd : "<001B>$" %l{DestX} }
*Command: CmdYMoveRelDown { *Cmd : "<001B>J" %c{DestYRel} }
*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<00>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultFont: 339
*DefaultCTT: 14
*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,54,55,56,57,58,59,60,61,62,63,64,
+                   65,66,67,68,69,70,71,72,73,74,75,76,77,78,339,340,
+                   341,342,343,344,345,346,347,348,349,350,351,352,
+                   353,354,355,356,357,358,839,840,841,842,843,844,
+                   539,540,541,542,543,544,545,546,547,548,
+                   549,550,551,552,553,554,555,556,557,558,
+                   559,560,561,562,563,564,565,566,567,568,
+                   569,570,571,572,573,574,575,576,577,578,
+                   845,846,847,848,849,850,851,852,853,854,855,856,857,858,
+                   1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,
+                   1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,
+                   1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,
+                   1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,
+                   1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,
+                   1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,
+                   1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,
+                   1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,
+                   1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,
+                   1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,
+                   1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,
+                   1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,
+                   1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,
+                   1169,1170,1171,1172,1173,1174)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
