*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "2.0"
*GPDFileName: "TG6815Q.GPD"
*ModelName: "TG6815Q"
*MasterUnits: PAIR(1440, 1440)
*ResourceDLL: "WXP52V20.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: TRACTOR
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option5
    *Option: Option1
    {
        *Name: "FS - 60 x 72 " =DOTS_PER_INCH
        *DPI: PAIR(60, 72)
        *TextDPI: PAIR(60, 72)
        *MinStripBlankPixels: 100
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *Cmd : "<1B>DPI60X<1B>DPI72Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI60X<1B>DPI72Y"
        }
    }
    *Option: Option2
    {
        *Name: "FS - 72 x 72 " =DOTS_PER_INCH
        *DPI: PAIR(72, 72)
        *TextDPI: PAIR(72, 72)
        *MinStripBlankPixels: 50
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 50
        *Command: CmdSendBlockData { *Cmd : "<1B>DPI72X<1B>DPI72Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI72X<1B>DPI72Y"
        }
    }
    *Option: Option3
    {
        *Name: "HS - 120 x 96 " =DOTS_PER_INCH
        *DPI: PAIR(120, 96)
        *TextDPI: PAIR(120, 96)
        *MinStripBlankPixels: 300
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 170
        *Command: CmdSendBlockData { *Cmd : "<1B>HLFS<1B>DPI120X<1B>DPI96Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdEndBlockData { *Cmd : "<1B>HLFE" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI120X<1B>DPI96Y"
        }
    }
    *Option: Option4
    {
        *Name: "FS - 120 x 72 " =DOTS_PER_INCH
        *DPI: PAIR(120, 72)
        *TextDPI: PAIR(120, 72)
        *MinStripBlankPixels: 200
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>DPI120X<1B>DPI72Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI120X<1B>DPI72Y"
        }
    }
    *Option: Option5
    {
        *Name: "FS - 120 x 120 " =DOTS_PER_INCH
        *DPI: PAIR(120, 120)
        *TextDPI: PAIR(120, 120)
        *MinStripBlankPixels: 200
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>DPI120X<1B>DPI120Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI120X<1B>DPI120Y"
        }
    }
    *Option: Option6
    {
        *Name: "FS - 120 x 144 " =DOTS_PER_INCH
        *DPI: PAIR(120, 144)
        *TextDPI: PAIR(120, 144)
        *MinStripBlankPixels: 200
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 140
        *Command: CmdSendBlockData { *Cmd : "<1B>DPI120X<1B>DPI144Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI120X<1B>DPI144Y"
        }
    }
    *Option: Option7
    {
        *Name: "FS - 180 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        *MinStripBlankPixels: 400
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 200
        *Command: CmdSendBlockData { *Cmd : "<1B>HLFS<1B>DPI180X<1B>DPI180Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdEndBlockData { *Cmd : "<1B>HLFE" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI180X<1B>DPI180Y"
        }
    }
    *Option: Option8
    {
        *Name: "HS - 240 x 144 " =DOTS_PER_INCH
        *DPI: PAIR(240, 144)
        *TextDPI: PAIR(240, 144)
        *MinStripBlankPixels: 400
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 200
        *Command: CmdSendBlockData { *Cmd : "<1B>HLFS<1B>DPI240X<1B>DPI144Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdEndBlockData { *Cmd : "<1B>HLFE" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI240X<1B>DPI144Y"
        }
    }
    *Option: Option9
    {
        *Name: "HS - 240 x 240 " =DOTS_PER_INCH
        *DPI: PAIR(240, 240)
        *TextDPI: PAIR(240, 240)
        *MinStripBlankPixels: 400
        EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
        *SpotDiameter: 200
        *Command: CmdSendBlockData { *Cmd : "<1B>HLFS<1B>DPI240X<1B>DPI240Y<1B>PLT" %l{NumOfDataBytes} }
        *Command: CmdEndBlockData { *Cmd : "<1B>HLFE" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>DPI240X<1B>DPI240Y"
        }
    }    
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: LETTER
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12240, 15840)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML66"
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12240, 20160)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML84"
        }
    }
    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(11909, 16834)
        *PrintableOrigin: PAIR(0, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (11909->11904) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (16834->16820) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(11904, 16820)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (11909->11904) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (16834->16830) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(11904, 16830)
            }
            *case: Option3
            {
*% Warning: the following printable width is adjusted (11909->11904) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (16834->16820) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(11904, 16820)
            }
            *case: Option4
            {
*% Warning: the following printable width is adjusted (11909->11904) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (16834->16830) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(11904, 16830)
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML70"
        }
    }
    *Option: A3
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(16834, 23818)
        *PrintableOrigin: PAIR(0, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (16834->16824) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (23818->23800) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(16824, 23800)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (16834->16824) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (23818->23805) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(16824, 23805)
            }
            *case: Option3
            {
*% Warning: the following printable width is adjusted (16834->16824) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (23818->23800) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(16824, 23800)
            }
            *case: Option4
            {
*% Warning: the following printable width is adjusted (16834->16830) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (23818->23810) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(16830, 23810)
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML99"
        }
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(8395, 11909)
        *PrintableOrigin: PAIR(0, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (8395->8376) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (11909->11900) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(8376, 11900)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (8395->8388) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (11909->11895) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(8388, 11895)
            }
            *case: Option3
            {
*% Warning: the following printable width is adjusted (8395->8388) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (11909->11900) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(8388, 11900)
            }
            *case: Option4
            {
*% Warning: the following printable width is adjusted (8395->8394) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (11909->11900) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(8394, 11900)
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML49"
        }
    }
    *Option: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(10325, 14573)
        *PrintableOrigin: PAIR(0, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (10325->10320) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (14573->14560) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(10320, 14560)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (10325->10320) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (14573->14565) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(10320, 14565)
            }
            *case: Option3
            {
*% Warning: the following printable width is adjusted (10325->10320) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (14573->14560) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(10320, 14560)
            }
            *case: Option4
            {
*% Warning: the following printable width is adjusted (10325->10320) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (14573->14570) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(10320, 14570)
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML60"
        }
    }
    *Option: B4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(14573, 20635)
        *PrintableOrigin: PAIR(0, 0)
        *switch: Resolution
        {
            *case: Option1
            {
*% Warning: the following printable width is adjusted (14573->14568) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (20635->20620) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(14568, 20620)
            }
            *case: Option2
            {
*% Warning: the following printable width is adjusted (14573->14568) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (20635->20625) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(14568, 20625)
            }
            *case: Option3
            {
*% Warning: the following printable width is adjusted (14573->14568) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (20635->20620) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(14568, 20620)
            }
            *case: Option4
            {
*% Warning: the following printable width is adjusted (14573->14568) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (20635->20630) so it is divisible by the resolution Y scale.
                *PrintableArea: PAIR(14568, 20630)
            }
        }
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML86"
        }
    }
    *Option: FANFOLD_US
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
        *PrintableArea: PAIR(19584, 15840)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML66"
        }
    }
    *Option: Option9
    {
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(19008, 11520)
        *PrintableArea: PAIR(19008, 11520)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML48"
        }
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(2, 720)
        *MaxSize: PAIR(19584, 32767)
        *MaxPrintableWidth: 19584
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML" %d{(PhysPaperLength / 240) }
        }
    }
    *Option: FANFOLD_STD_GERMAN
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12240, 17280)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML72"
        }
    }
    *Option: FANFOLD_LGL_GERMAN
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PrintableArea: PAIR(12240, 18720)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML78"
        }
    }
    *Option: Option13
    {
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(7200, 11520)
        *PrintableArea: PAIR(7200, 11520)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML48"
        }
    }
    *Option: Option14
    {
        *rcNameID: 262
        *OptionID: 262
        *PageDimensions: PAIR(4320, 7200)
        *PrintableArea: PAIR(4320, 7200)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML30"
        }
    }
    *Option: Option15
    {
        *rcNameID: 263
        *OptionID: 263
        *PageDimensions: PAIR(7200, 4320)
        *PrintableArea: PAIR(7200, 4320)
        *PrintableOrigin: PAIR(0, 0)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.6
            *Cmd: "<1B>FML18"
        }
    }
}
*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
    *Cmd: "<1B>[%<20h<0D>"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<0D>"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<1B>[%<10h<0D>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,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: 0
*YMoveThreshold: 0
*XMoveUnit: 1440
*YMoveUnit: 1440
*Command: CmdXMoveAbsolute { *Cmd : "<1B>ABS" %d{DestX }"X" }
*Command: CmdYMoveAbsolute { *Cmd : "<1B>ABS" %d{DestY }"Y" }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*EjectPageWithFF?: TRUE
*Command: CmdEnableTIFF4 { *Cmd : "<1B>CMPS" }
*Command: CmdDisableCompression { *Cmd : "<1B>CMPE" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_CURSOR_X_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*DefaultFont: 9
*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,54,55,56,57,58,59,60,61,62,63)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
*Command: CmdBoldOn { *Cmd : "<1B>BOLD1" }
*Command: CmdBoldOff { *Cmd : "<1B>BOLD0" }
*Command: CmdItalicOn { *Cmd : "<1B>ITALIC1" }
*Command: CmdItalicOff { *Cmd : "<1B>ITALIC0" }
*Command: CmdUnderlineOn { *Cmd : "<1B>UNDER1" }
*Command: CmdUnderlineOff { *Cmd : "<1B>UNDER0" }
