*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "1.00"
*GPDFileName: "SEALAND82-Series.GPD"
*ModelName: "SEALAND 82 Series"
*MasterUnits: PAIR(360, 360)
*ResourceDLL: "SEALAND82-Series.Dll"
*PrinterType: SERIAL
*PrintRateUnit: CPS
*PrintRate: 220

*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
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: ""
        }
    }
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.3
            *Cmd: ""
        }
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option3
    *Option: Option1
    {
        *Name: "360 x 360 " =DOTS_PER_INCH
        *DPI: PAIR(360, 360)
        *TextDPI: PAIR(360, 360)
        *PinsPerLogPass: 48
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 360
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,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>*(" %l{NumOfDataBytes / 3} }
    }
    *Option: Option2
    {
        *Name: "360 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(360, 180)
        *TextDPI: PAIR(360, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 240
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,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>*(" %l{NumOfDataBytes / 3} }
    }
    *Option: Option3
    {
        *Name: "180 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 180
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
    }
    *Option: Option4
    {
        *Name: "120 x 180 " =DOTS_PER_INCH
        *DPI: PAIR(120, 180)
        *TextDPI: PAIR(120, 180)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *MinStripBlankPixels: 60
        EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
        *SpotDiameter: 120
        *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    *Option: A6_ROTATED
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<19>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(2003, 1343)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2003, 1342)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2003->2002) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2002, 1342)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2003->2001) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2001, 1342)
                    }
                }
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2003, 1343)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2003, 1342)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2003->2002) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2002, 1342)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2003->2001) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1343->1342) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2001, 1342)
                    }
                }
            }
        }
    }
    *Option: B6_JIS
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C+"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(1715, 2398)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (1715->1714) so it is divisible by the resolution X scale.
                        *PrintableArea: PAIR(1714, 2398)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (1715->1713) so it is divisible by the resolution X scale.
                        *PrintableArea: PAIR(1713, 2398)
                    }
                }
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(1715, 2398)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (1715->1714) so it is divisible by the resolution X scale.
                        *PrintableArea: PAIR(1714, 2398)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (1715->1713) so it is divisible by the resolution X scale.
                        *PrintableArea: PAIR(1713, 2398)
                    }
                }
            }
        }
    }
    *Option: B6_JIS_ROTATED
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<1F>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(2482, 1667)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2482, 1666)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2482, 1666)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2482->2481) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2481, 1666)
                    }
                }
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2482, 1667)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2482, 1666)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2482, 1666)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2482->2481) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1667->1666) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2481, 1666)
                    }
                }
            }
        }
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C2"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(2013, 2857)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2013, 2856)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2003->2002) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2012, 2856)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2003->2001) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2010, 2856)
                    }
                }
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2013, 2857)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2013, 2856)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2003->2002) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2012, 2856)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2003->2001) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2829->2828) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2010, 2856)
                    }
                }
            }
        }
    }
    *Option: A5_ROTATED
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C#"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1919)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1919)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (1919->1918) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1918)
                    }
                }
            }
        }
    }
    *Option: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C="
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(2495, 3523)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2495, 3522)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2485->2484) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2494, 3522)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2485->2484) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2493, 3522)
                    }
                }
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2495, 3523)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2495, 3522)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2485->2484) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2494, 3522)
                    }
                    *case: Option4
                    {
*% Warning: the following printable width is adjusted (2485->2484) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3453->3452) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2493, 3522)
                    }
                }
            }
        }
    }
    *Option: B5_JIS_ROTATED
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C+"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 2401)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2976->2878) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
*% Warning: the following printable origin X is adjusted (381->382) so it is divisible by the resolution X scale.
                        *PrintableOrigin: PAIR(28, 60)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 2401)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2976->2878) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
*% Warning: the following printable origin X is adjusted (381->382) so it is divisible by the resolution X scale.
                        *PrintableOrigin: PAIR(28, 60)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (2401->2400) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 2400)
                    }
                }
            }
        }
    }
    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
				*PrintableArea: PAIR(2952, 4209)
				*PrintableOrigin: PAIR(28, 60)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>CF"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4209)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4209)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: B4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>CV"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 5039)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2976->2878) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
*% Warning: the following printable origin X is adjusted (381->382) so it is divisible by the resolution X scale.
                        *PrintableOrigin: PAIR(28, 60)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 5039)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
                    }
                    *case: Option3
                    {
*% Warning: the following printable width is adjusted (2976->2878) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
*% Warning: the following printable origin X is adjusted (381->382) so it is divisible by the resolution X scale.
                        *PrintableOrigin: PAIR(28, 60)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (4989->4988) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 5039)
                    }
                }
            }
        }
    }
    *Option: EXECUTIVE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C?"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
                *PrintableArea: PAIR(2514, 3600)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
                *PrintableArea: PAIR(2514, 3600)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>CB"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 3840)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 3840)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (3785->3784) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 3838)
                    }
                }
            }
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>CT"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4920)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4920)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (4895->4894) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 4918)
                    }
                }
            }
        }
    }
    *Option: ENV_10
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *RotateSize? : TRUE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<19>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1485)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                }
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1485)
                *PrintableOrigin: PAIR(28, 60)
                *switch: Resolution
                {
                    *case: Option2
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                    *case: Option3
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                    *case: Option4
                    {
*% Warning: the following printable length is adjusted (1339->1338) so it is divisible by the resolution Y scale.
                        *PrintableArea: PAIR(2952, 1484)
                    }
                }
            }
        }
    }
    *Option: Option14
    {
*%  9 * 11/4 inch
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(3240, 990)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>0<1B>C<16>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 990)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 990)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option15
    {
*%  9 * 11/3 inch
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(3240, 1320)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<16>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1320)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1320)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option16
    {
*%  9 * 4 inch
        *rcNameID: 273
        *OptionID: 273
        *PageDimensions: PAIR(3240, 1440)
        *PrintableOrigin: PAIR(28, 60)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<18>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1440)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1440)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option17
    {
*%  9 * 5 1/2 inch (9 * 5.5 inch)
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(3240, 1980)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<21>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1980)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1980)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option18
    {
*%  9 1/2 * 5 1/2 inch (9.5 * 5.5 inch)
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(3420, 1980)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<21>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1980)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 1980)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option19
    {
*%  9 * 11 inch
        *rcNameID: 262
        *OptionID: 262
        *PageDimensions: PAIR(3240, 3960)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<42>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 3960)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 3960)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: Option20
    {
*%  9 * 12 inch
        *rcNameID: 263
        *OptionID: 263
        *PageDimensions: PAIR(3240, 4320)
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C<48>"
        }
        *switch: InputBin
        {
            *case: MANUAL
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4320)
                *PrintableOrigin: PAIR(28, 60)
            }
            *case: TRACTOR
            {
*% Warning: this paper size exceeds the MaxWidth, imageable width is truncated .
                *PrintableArea: PAIR(2952, 4320)
                *PrintableOrigin: PAIR(28, 60)
            }
        }
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(360, 360)
        *MaxSize: PAIR(5960, 32767)
        *MaxPrintableWidth: 2952
        *MinLeftMargin: 0
        *CenterPrintable?: FALSE
        *switch: InputBin
        {
            *case: MANUAL
            {
								*CustCursorOriginX: %d{28}
								*CustCursorOriginY: %d{60}
								*CustPrintableOriginX: %d{28}
								*CustPrintableOriginY: %d{60}
								*CustPrintableSizeX: %d{min(2952,PhysPaperWidth-56)}
								*CustPrintableSizeY: %d{PhysPaperLength-120}
            }
            *case: TRACTOR
            {
								*CustCursorOriginX: %d{28}
								*CustCursorOriginY: %d{0}
								*CustPrintableOriginX: %d{28}
								*CustPrintableOriginY: %d{0}
								*CustPrintableSizeX: %d{min(2952,PhysPaperWidth-56)}
								*CustPrintableSizeY: %d{PhysPaperLength}
            }
        }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.4
            *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
        }
    }
}
*InvalidCombination: LIST(InputBin.MANUAL, PaperSize.Option14)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A6_ROTATED)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B6_JIS)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B6_JIS_ROTATED)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A5)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A5_ROTATED)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B5)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B5_JIS_ROTATED)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.A4)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.B4)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.EXECUTIVE)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.LETTER)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.LEGAL)
*InvalidCombination: LIST(InputBin.TRACTOR, PaperSize.ENV_10)

*Feature: PrintQuality
{
    *rcNameID: =TEXT_QUALITY_DISPLAY
    *DefaultOption: Option3
    *Option: Option1
    {
        *rcNameID: 277
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<02>"
        }
    }
    *Option: Option2
    {
        *rcNameID: 276
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<01>"
        }
    }
    *Option: Option3
    {
        *rcNameID: 278
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.2
            *Cmd: "<1B>U<00>"
        }
    }
}
*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>@<1B>t<011B>6<1B>R<001B>r<001B>U<01>"
}
*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*Cmd: "<0D>"
}
*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*Cmd: "<1B>@"
}
*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)
*MaxLineSpacing: 255
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 60
*YMoveUnit: 180
*Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l{(DestX / 6) } }
*Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
*Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
*Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: 119
*DefaultCTT: 3
*switch: Orientation
{
	*case: PORTRAIT
	{
		*DeviceFonts: LIST(117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,
+		135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157)
	}
	*case: LANDSCAPE_CC270
	{
		*DeviceFonts: LIST()
	}
}
*Command: CmdBoldOn { *Cmd : "<1B>E" }
*Command: CmdBoldOff { *Cmd : "<1B>F" }
*Command: CmdItalicOn { *Cmd : "<1B>4" }
*Command: CmdItalicOff { *Cmd : "<1B>5" }
*Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
*Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
