*% Copyright 2008 Samsung Electronics Co., Ltd.
*% All Rights Reserved.

*%-------------------------------------------------------------------------
*% Version Section
*%-------------------------------------------------------------------------
*GPDFileName: "smc610.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "1.1"

*%-------------------------------------------------------------------------
*% Include Section
*%-------------------------------------------------------------------------
*%%% GPD files
*Include: "StdNames.gpd"
*Include: "ttfsub.gpd"
*Include: "pclxl.gpd"
*Include: "pjl.gpd"
*Include: "p6font.gpd"
*Include: "p6disp.gpd"
*Include: "smpclrc1.gpd"	

*%%% RESOURCE files
*ResourceDLL: "pclxl.dll"
*ResourceDLL: "smpclrc1.dll"  

*%-------------------------------------------------------------------------
*%% Model Specific Global Entries
*%-------------------------------------------------------------------------
*ModelName:   "Samsung CLP-610 Series PCL6"

*MasterUnits: PAIR(1200, 1200)
*CodePage: 1252
*PrinterType: PAGE
*Personality: =PERSONALITY_PCLXL
*rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
*MaxCopies: 999
*PrintRate: -1
*PrintRatePPM: -1
*PrintRateUnit: PPM

*BidiQueryFile: "saacuni.gdl"

*%-------------------------------------------------------------------------
*%%% JOB_SETUP, PAGE_FINISH
*%%% , JOB_FINISH
*%-------------------------------------------------------------------------

*Macros: PCLXLCommand
{
    *%=====================================================================
    *%%% PCL XL Stream Header
    *%=====================================================================
	PCLXL_StreamHeader: ") HP-PCL XL;2;0;"
+                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"

	PCLXL_OpenDataSource: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource

    *%=====================================================================
    *%%% BeginSession 
    *%%% Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
    *%=====================================================================

	PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
+ 	=eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession

	PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
+ 	=eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession

	PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
+ 	=eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession

	Width: %m{ RasterDataWidthInBytes }
	Height: %m{ RasterDataHeightInPixels }
	DataSize: %l{ NumOfDataBytes }
	FntHeight: %l{ FontHeight*600/TextYRes }
	FntNextGlyph: %l{ NextGlyph }

    *%=====================================================================
    *%%% BeginRaster
    *%%% ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
    *%%% SourceWidth(uint16) & SourceHeight(uint16)
    *%=====================================================================
	PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
+                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping        																																														
+                     =uint16 =Width =attr_ubyte =SourceWidth               																																														
+                     =uint16 =Height =attr_ubyte =SourceHeight             																																														
+                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize																																														
+                     =BeginImage                                           																																														
+                     =ubyte =eNoCompression =attr_ubyte =CompressMode      																																														
+                     =ubyte "<00>" =attr_ubyte =StartLine                  																																														
+                     =uint16 =Height =attr_ubyte =BlockHeight              																																														
+                     =ReadImage                                            																																														

	PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
	
	DestinationX: %l{DestX}
	DestinationY: %l{DestY}
	DestinationXRel: %l{DestYRel}
	DestinationYRel: %l{DestXRel}
	NumOfCopy: %l{NumOfCopies}
	PrintDir: %l{PrintDirInCCDegrees}
	FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
	
    *%=====================================================================
    *%%% Papersize
    *%=====================================================================
	eoficio: =ubyte "<06>" "OFICIO"
	eC6Envelope: =ubyte "<02>" "C6"
	eEnvNo9: =ubyte "<07>" "ENV NO9"
	eEnvPersonal: =ubyte "<0c>" "ENV PERSONAL"
	eStatement: =ubyte "<09>" "STATEMENT"
	ePostcard: =ubyte "<08>" "POSTCARD"

    *%=====================================================================
    *%%% Tray
    *%=====================================================================
    eTray4: "<08>"
}

*Macros: PJLCommand
{
	PJL_IMAGEQUALITY_1: "@PJL SET IMAGEQUALITY=1<0D0A>"
	PJL_IMAGEQUALITY_0: "@PJL SET IMAGEQUALITY=0<0D0A>"	
}

*%-------------------------------------------------------------------------
*% Resource 
*%-------------------------------------------------------------------------

*Feature: RESDLL
{
    *Name: "resource dll files"
    *ConcealFromUI?: TRUE

    *Option: SECSTR
    {
        *Name: "smpclrc1.dll"
    }

    *Option: MSSTR
    {
        *Name: "pclxl.dll"          *% MS provided resource DLL
    }
}


*%-------------------------------------------------------------------------
*% Features and Options
*%-------------------------------------------------------------------------

*%% Orientation
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}

*%-------------------------------------------------------------------------
*%%% JOB_SETUP
*%-------------------------------------------------------------------------

*%===================================
*%%% JOB_SETUP.1
*%%% START PLJ JOB
*%%% PAGEPROTECT
*%%% TIMEOUT
*%===================================
*Feature: PageProtect
{
    *rcNameID: =PAGE_PROTECTION_DISPLAY
    *DefaultOption: OFF
    *Option: ON
    {
        *rcNameID: =ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.1
            *Cmd: =PJL_STARTJOB =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
        }
    }
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.1
            *Cmd: =PJL_STARTJOB =PJL_PAGEPROTECT_OFF =PJL_TIMEOUT_90
        }
    }
}

*%===================================
*%%% JOB_SETUP.2
*%%% RGB Color
*%===================================
*Feature: RGBColor
{
    *rcNameID: =IDS_RGBCOLOR   
    *DefaultOption: Standard
    
    *Option: Standard
    {
        *rcNameID: =IDS_DEFAULT 
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.2
            *Cmd: "@PJL SET RGBCOLOR=STANDARD<0D0A>"
        }
    }
    *Option: Vivid
    {
        *rcNameID: =IDS_VIVID   
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.2
            *Cmd: "@PJL SET RGBCOLOR=VIVID<0D0A>"
        }
    }
    *Option: Device
    {
        *rcNameID: =IDS_DEVICE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.2
            *Cmd: "@PJL SET RGBCOLOR=DEVICE<0D0A>"
        }
    }
}

*%===================================
*%%% JOB_SETUP.4
*%%% Collate
*%===================================
*Feature: Collate
{
    *rcNameID: =COLLATOR_DISPLAY *% this shouldn't appear...

    *DefaultOption: ON
    *Option: ON
    {
        *rcNameID: =ON_DISPLAY
	    *Command: CmdSelect
        {
        	 *Order: JOB_SETUP.4
        	 *Cmd: ""
        }
    }
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.4
            *Cmd: ""
        }
    }
}

*%===================================
*%%% JOB_SETUP.5
*%%% BeginPage(0x43)
*%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38), MediaType
*%%%     ubyte               ubyte             ubyte
*%%%     MediaType
*%===================================
*Feature: MediaType
{
    *rcNameID: =MEDIA_TYPE_DISPLAY
    *DefaultOption: PrinterDefault

    *Option: PrinterDefault
    {
        *rcNameID: =PRINTER_DEFAULT_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=OFF<0D0A>"
        }
    }
    *Option: Plain
    {
        *rcNameID: =PLAIN_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=NORMAL<0D0A>"
        }
    }
    *Option: Thick
    {
        *rcNameID: =IDS_THICK
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=THICK<0D0A>"
        }
    }
    *Option: Thin
    {
        *rcNameID: =IDS_THIN
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=THIN<0D0A>"
        }
    }
    *Option: Bond
    {
        *rcNameID: =BOND_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=BOND<0D0A>"
        }
    }
    *Option: Color
    {
        *rcNameID: =COLOR_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=COLOR<0D0A>"
        }
    }
    *Option: CardStock
    {
        *rcNameID: =CARDSTOCK_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=CARD<0D0A>"
        }
    }
    *Option: Labels
    {
        *rcNameID: =LABELS_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=LABEL<0D0A>"
        }
    }
    *Option: Envelope
    {
        *rcNameID: =IDS_ENV
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=ENV<0D0A>"
        }
    }
    *Option: Preprinted
    {
        *rcNameID: =PREPRINTED_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=USED<0D0A>"
        }
    }
    *Option: Cotton
    {
        *rcNameID: =IDS_COTTON
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=COTTON<0D0A>"
        }
    }
    *Option: Recycled
    {
        *rcNameID: =IDS_RECYCLED
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=RECYCLED<0D0A>"
        }
    }
    *Option: Archive
    {
        *rcNameID: =IDS_ARCHIVE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.5
            *Cmd: "@PJL SET PAPERTYPE=ARCHIVE<0D0A>"
        }
    }
}

*%===================================
*%%% JOB_SETUP.6
*%%% Reverse Duplex Printing
*%===================================
*Feature: ReverseDuplex
{
    *rcNameID: =IDS_RDUPLEX
    *DefaultOption: OFF
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.6
            *Cmd: ""
        }
    }
    *Option: ON
    {
        *rcNameID: =ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.6
            *Cmd: ""
        }
    }
}

*%===================================
*%%% JOB_SETUP.7
*%%%     SECForceRDCS
*%===================================
*Feature: SECForceRDCS
{
    *Name: "SECForceRDCS"
    *DefaultOption: On
    *Option: On
    {
        *rcNameID: =ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.7
            *Cmd: ""
        }
    }
}

*%===================================
*%%% JOB_SETUP.10
*%%% Darken Text
*%===================================
*Feature: DarkenText
{
    *rcNameID: =IDS_DARKEN_TEXT   
    *DefaultOption: On
    
    *Option: Off
    {
        *rcNameID: =IDS_OFF 
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.10
            *Cmd: "@PJL SET DARKENTEXT=OFF<0D0A>"
        }
    }
    *Option: On
    {
        *rcNameID: =IDS_ON   
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.10
            *Cmd: "@PJL SET DARKENTEXT=ON<0D0A>"
        }
    }
}

*%===================================
*%%% JOB_SETUP.11
*%%% Fine Edge
*%===================================
*Feature: FineEdge
{
    *rcNameID: =IDS_FINE_EDGE   
    *DefaultOption: Normal
    
    *Option: Off
    {
        *rcNameID: =IDS_OFF 
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET FINEEDGE=OFF<0D0A>"
        }
    }
    *Option: Minimum
    {
        *rcNameID: =IDS_MINIMUM   
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET FINEEDGE=MINIMUM<0D0A>"
        }
    }
    *Option: Normal
    {
        *rcNameID: =IDS_NORMAL   
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET FINEEDGE=NORMAL<0D0A>"
        }
    }
    *Option: Maximum
    {
        *rcNameID: =IDS_MAXIMUM   
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET FINEEDGE=MAXIMUM<0D0A>"
        }
    }    
}

*%===================================
*%%% JOB_SETUP.49 : RD PJL
*%%%     JCLBEGIN
*%%%     RDCSPJL
*%%%     QTY
*%%%     StaplePJL
*%%%     SERVICEDATE
*%===================================
*Command: CmdStartJob
{
    *Order: JOB_SETUP.49
    *CallbackID:22
}

*%===================================
*%%% JOB_SETUP.50
*%%%     RESOLUTION
*%%%     ENTER LANGUAGE=PCLXL
*%%%     PCL XL Stream Header
*%%%     BeginSession
*%%% CmdEndRaster
*%%%     EndImage
*%%% CmdSendBlockData
*%%%     EndImage
*%===================================
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Normal
    *Option: Normal
    {
        *rcNameID: =IDS_QUALITYNORMAL
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *Command: CmdBeginRaster
        {
            *Cmd : =PCLXL_CmdBeginRaster
        }

        *Command: CmdEndRaster { *Cmd : =EndImage }
        *Command: CmdSendBlockData
        {
            *Cmd: =PCLXL_CmdSendBlockData
        }
		*switch: Quality
        {
            *case: Best
            {
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.50
        		    *Cmd: =PJL_RESOLUTION_1200 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
        		}
        	}
            *case: Normal
            {
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.50
        		    *Cmd: =PJL_RESOLUTION_600 =PJL_IMAGEQUALITY_1 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
        		}
        	}
        	*case: Draft
            {
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.50
        		    *Cmd: =PJL_RESOLUTION_600 =PJL_IMAGEQUALITY_0 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
        		}
        	}
        }
    }
}

*Feature: Quality
{
    *rcNameID: =IDS_QUALITY
    *DefaultOption: Normal
    *Option: Best
    {
        *rcNameID: =IDS_QUALITYBEST
    }
    *Option: Normal
    {
        *rcNameID: =IDS_QUALITYNORMAL
    }
    *Option: Draft
    {
        *rcNameID: =IDS_QUALITYDRAFT
    }
}



*%===================================
*%%% JOB_SETUP.60
*%%% OpenDataSource(0x48)
*%%%     SourceType(ubyte) & DataOrg(ubyte)
*%%%     136(0x88)           130(0x82)
*%===================================
*Command: CmdStartDoc
{
    *Order: JOB_SETUP.60
    *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
}

*%-------------------------------------------------------------------------
*%%% PAGE_FINISH
*%-------------------------------------------------------------------------

*%===================================
*%%% PAGE_FINISH.1
*%===================================
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
*%    *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
    *CallbackID:11
    *Params:LIST(NumOfCopies)
}

*%-------------------------------------------------------------------------
*%%% JOB_FINISH
*%-------------------------------------------------------------------------

*%===================================
*%%% JOB_FINISH.1
*%%% CmdEndJob
*%===================================
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: ""
*%    *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
}

*%-------------------------------------------------------------------------
*%%% PAGE_SETUP
*%-------------------------------------------------------------------------

*%===================================
*%%% PAGE_SETUP.2
*%%% BeginPage(0x43)
*%%%     Orientation(40), MediaSize(37), MediaSource(38)
*%%%     ubyte            ubyte          ubyte
*%===================================
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: LETTER
    *ConflictPriority: 1
    *Option: LETTER
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9792, 12792)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(206, 230)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9792, 12792)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(206, 12996)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: LEGAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageProtectMem: 5230
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9792, 16392)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(206, 210)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((210*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9792, 16392)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(206, 16596)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
   
    *Option: EXECUTIVE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8248, 12190)
                *PrintableOrigin: PAIR(226, 205)
                *CursorOrigin: PAIR(206, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8248, 12190)
                *PrintableOrigin: PAIR(226, 205)
                *CursorOrigin: PAIR(200, 12395)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: A4
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
        *PageProtectMem: 4249
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9508, 13622)
                *PrintableOrigin: PAIR(208, 203)
                *CursorOrigin: PAIR(206, 250)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((250*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9508, 13622)
                *PrintableOrigin: PAIR(208, 203)
                *CursorOrigin: PAIR(206, 13825)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: A5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 2125
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6508, 9508)
                *PrintableOrigin: PAIR(244, 208)
                *CursorOrigin: PAIR(206, 250)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eA5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((250*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6508, 9508)
                *PrintableOrigin: PAIR(244, 208)
                *CursorOrigin: PAIR(206, 9716)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eA5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: B5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 3198
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8174, 11724)
                *PrintableOrigin: PAIR(215, 200)
                *CursorOrigin: PAIR(206, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8174, 11724)
                *PrintableOrigin: PAIR(215, 200)
                *CursorOrigin: PAIR(195, 11924)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((195*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: FOLIO 
    { 
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME 
        *PrintableArea: PAIR(9792, 15192)
        *PrintableOrigin: PAIR(204, 204)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CursorOrigin: PAIR(206, 230)
                *Command: CmdSelect 
                { 
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation 
+                         =ubyte "<18>" =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                } 
             } 
             *case: LANDSCAPE_CC90
             {
                *CursorOrigin: PAIR(200, 15396)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation 
+                         =ubyte "<18>" =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: ENV_10
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4542, 10992)
                *PrintableOrigin: PAIR(207, 204)
                *CursorOrigin: PAIR(206, 220)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((220*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4542, 10992)
                *PrintableOrigin: PAIR(207, 204)
                *CursorOrigin: PAIR(206, 11196)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: ENV_DL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4726, 9982)
                *PrintableOrigin: PAIR(235, 205)
                *CursorOrigin: PAIR(206, 210)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((210*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4726, 9982)
                *PrintableOrigin: PAIR(235, 205)
                *CursorOrigin: PAIR(206, 10187)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: ENV_C5
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7222, 10406)
                *PrintableOrigin: PAIR(217, 203)
                *CursorOrigin: PAIR(206, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7222, 10406)
                *PrintableOrigin: PAIR(217, 203)
                *CursorOrigin: PAIR(210, 10609)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((210*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    
    *Option: ENV_C6
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4980, 7256)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(204, 250)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eC6Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((250*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4980, 7256)
                *PrintableOrigin: PAIR(204, 204)
                *CursorOrigin: PAIR(195, 7456)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eC6Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((195*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_MONARCH
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
        *Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *PageProtectMem: 4109
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4236, 8580)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(200, 250)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((250*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4236, 8580)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(195, 8790)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((195*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: A6
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4536, 6576)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 230)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eA6Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4536, 6576)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 6786)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eA6Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
    *Option: ENV_B5
    {
        *rcNameID: =IDS_ISOB5
        *%rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*Constraints: Duplex.VERTICAL
        *Constraints: Duplex.HORIZONTAL
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7864, 11400)
                *PrintableOrigin: PAIR(226, 210)
                *CursorOrigin: PAIR(206, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
				    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte =eB5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin

                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7864, 11400)
                *PrintableOrigin: PAIR(226, 210)
                *CursorOrigin: PAIR(206, 11610)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
		    		*Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte =eB5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }  
     
    *Option: OFICIO
    {
        *rcNameID: =IDS_OFICIO
		*PageDimensions: PAIR(10200,16200)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9800,15800)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+		          		  =ubyte_array =eoficio=attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9800,15800)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(195, 16000)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                    	  =ubyte_array =eoficio=attr_ubyte =MediaSize =BeginPage 
+                         =sint16_xy %l{((195*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

   *Option: STATEMENT
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6192, 9792)
                *PrintableOrigin: PAIR(203, 200)
                *CursorOrigin: PAIR(200, 206)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eStatement =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6192, 9792)
                *PrintableOrigin: PAIR(203, 200)
                *CursorOrigin: PAIR(203, 9992)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eStatement =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((203*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }  
    
    *Option: ENV_9
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4230, 10230)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 230)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eEnvNo9 =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4230, 10230)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 10440)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eEnvNo9 =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }    

    *Option: ENV_PERSONAL
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(3930, 7380)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 230)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eEnvPersonal =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(3930, 7380)
                *PrintableOrigin: PAIR(210, 210)
                *CursorOrigin: PAIR(206, 7590)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =ubyte_array =eEnvPersonal =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((206*TextXRes)/1200)}%l{((206*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }  
      
    *Option: CUSTOMSIZE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1255
        *MinSize: PAIR(3600, 6000)
        *MaxSize: PAIR(10200, 32767)
        *MaxPrintableWidth: 10200
        *MinLeftMargin: 100
        *CenterPrintable?: FALSE
        *PageProtectMem: 1692
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 300 }
                *CustCursorOriginY:   %d{140 }
                *CustPrintableOriginX:  %d{300 }
                *CustPrintableOriginY:  %d{300}
                *CustPrintableSizeX:   %d{ PhysPaperWidth - 600 }
                *CustPrintableSizeY:  %d{ PhysPaperLength - 600 }
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
+                         =uint16_xy %l{(PhysPaperWidth*254 / 12000)}%l{(PhysPaperLength*254 / 12000)} =attr_ubyte =CustomMediaSize
+                         =ubyte =eMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
+                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 200 }
                *CustCursorOriginY:   %d{16560 }
                *CustPrintableOriginX:  %d{200 }
                *CustPrintableOriginY:  %d{240}
                *CustPrintableSizeX:   %d{ PhysPaperWidth - 480 }
                *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.2
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
+                         =uint16_xy %l{(PhysPaperWidth*254 / 12000)}%l{(PhysPaperLength*254 / 12000)} =attr_ubyte =CustomMediaSize
+                         =ubyte =eMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
+                         =sint16_xy %l{((210*TextXRes)/1200)}%l{((230*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }
}

*ChangeColorModeOnDoc?: FALSE

*%===================================
*%%% PAGE_SETUP.1
*%%% BeginPage(0x43)
*%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
*%%%     ubyte               ubyte             ubyte
*%%%     MediaSource
*%===================================
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: AUTO
    *Option: AUTO
    {
        *rcNameID: =AUTO_SELECT_DISPLAY  *% Automatically Select
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.1
			*Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
        }
    }
    *Option: MANUAL
    {
        *rcNameID: =IDS_MF *% Manual Paper feed
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.1
			*Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
        }
    }    
    *Option: MP
    {
        *rcNameID: =MP_TRAY_DISPLAY  *% MP Tray
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.1
			*Cmd: =ubyte =eMultiPurposeTray =attr_ubyte =MediaSource
        }
    }  
    *Option: UPPER
    {
        *rcNameID: =TRAY1_DISPLAY *% Upper Paper tray
        *Constraints: LIST(PaperSize.Statement,PaperSize.A6,PaperSize.ENV_MONARCH,PaperSize.ENV_C6,PaperSize.ENV_C5,PaperSize.ENV_DL,PaperSize.ENV_10)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.1
			*Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
        }
    }
    *Option: LOWER
    {
        *rcNameID: =TRAY2_DISPLAY *% Lower Paper tray
        *Constraints: LIST(PaperSize.Statement,PaperSize.A6,PaperSize.ENV_MONARCH,PaperSize.ENV_C6,PaperSize.ENV_C5,PaperSize.ENV_DL,PaperSize.ENV_10)
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.1
			*Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
        }
    }    
}

*%Following Papersizes cannot be duplexed
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_10)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_DL)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_C5)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_MONARCH)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_B5)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.EXECUTIVE)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.A5)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.B5)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.A6)
*InvalidCombination: LIST(Duplex.VERTICAL, PaperSize.ENV_C6)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_10)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_DL)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_C5)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_MONARCH)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_B5)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.EXECUTIVE)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.A5)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.B5)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.A6)
*InvalidCombination: LIST(Duplex.HORIZONTAL, PaperSize.ENV_C6)


*%===================================
*%%% JOB_SETUP.8
*%%% DuplexPageMode(53(0x35))
*%===================================
*Feature: Duplex
{
    *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
    *DefaultOption: NONE
    *Option: NONE
    {
        *rcNameID: =NONE_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.8
            *Cmd: "@PJL SET DUPLEX=OFF<0D0A>"
        }
    }
    *Option: VERTICAL
    {
        *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
        *switch: ReverseDuplex
        {
        	*case: OFF
        	{
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.8
        		    *Cmd: "@PJL SET DUPLEX=ON<0D0A>@PJL SET BINDING=LONGEDGE<0D0A>"
        		}
        	}
        	*case: ON
        	{
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.8
        		    *Cmd: "@PJL SET DUPLEX=ON<0D0A>@PJL SET BINDING=REVERSE_LONGEDGE<0D0A>"
        		}
        	}
		}        	
    }
    *Option: HORIZONTAL
    {
        *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
        *switch: ReverseDuplex
        {
        	*case: OFF
        	{
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.8
        		    *Cmd: "@PJL SET DUPLEX=ON<0D0A>@PJL SET BINDING=SHORTEDGE<0D0A>"
        		}
        	}
        	*case: ON
        	{
        		*Command: CmdSelect
        		{
        		    *Order: JOB_SETUP.8
        		    *Cmd: "@PJL SET DUPLEX=ON<0D0A>@PJL SET BINDING=REVERSE_SHORTEDGE<0D0A>"
        		}
        	}
        }	
    }
}
*InvalidCombination: LIST(Duplex.NONE, ReverseDuplex.ON)


*% =========================================================
*%  Duplex - MediaType
*% =========================================================
*InvalidCombination: LIST(MediaType.Thick, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Thick, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Thin, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Thin, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Bond, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Bond, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Envelope, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Envelope, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Labels, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Labels, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.CardStock, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.CardStock, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Cotton, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Cotton, Duplex.HORIZONTAL)
*InvalidCombination: LIST(MediaType.Archive, Duplex.VERTICAL)
*InvalidCombination: LIST(MediaType.Archive, Duplex.HORIZONTAL)

*% =========================================================
*%  Envelope(PaperSize) - MediaType
*% =========================================================		

*% Env10
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_10, MediaType.Cotton)

*% EnvDL
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_DL, MediaType.Cotton)
		
*% EnvC5
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_C5, MediaType.Cotton)
			
*% EnvC6
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_C6, MediaType.Cotton)
	
*% EnvMonarch
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, MediaType.Cotton)
		
*% Env9
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_9, MediaType.Cotton)
			
*% EnvPersonal
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.PrinterDefault)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Plain)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Thick)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Thin)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Bond)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Color)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.CardStock)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Labels)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Preprinted)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Recycled)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, MediaType.Cotton)	

*% =========================================================
*%  PageSize - Envelope(MediaType)
*% =========================================================
*InvalidCombination: LIST(PaperSize.LETTER, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.LEGAL, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.OFICIO, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.FOLIO, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.A4, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.ENV_B5, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.B5, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.EXECUTIVE, MediaType.Envelope)
*InvalidCombination: LIST(PaperSize.STATEMENT, MediaType.Envelope)

*% =========================================================
*%  Envelope(PageSize) - InputSlot(Only MP & Manual Feeder)
*% =========================================================		
*InvalidCombination: LIST(PaperSize.ENV_10, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_10, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_DL, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_DL, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_C5, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_C5, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_C6, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_C6, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_9, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_9, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, InputBin.UPPER)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, InputBin.LOWER)

*% =========================================================  
*%  MediaType - InputSlot(only MP & Manual Feeder)  
*% =========================================================  
*InvalidCombination: LIST(MediaType.Envelope, InputBin.UPPER)
*InvalidCombination: LIST(MediaType.Envelope, InputBin.LOWER)
*InvalidCombination: LIST(MediaType.Labels, InputBin.UPPER)
*InvalidCombination: LIST(MediaType.Labels, InputBin.LOWER)
*InvalidCombination: LIST(MediaType.CardStock, InputBin.UPPER)
*InvalidCombination: LIST(MediaType.CardStock, InputBin.LOWER)

*% =========================================================  
*%  PageSize - Duplex  
*% ========================================================= 
*InvalidCombination: LIST(PaperSize.EXECUTIVE, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.EXECUTIVE, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.A5, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.A5, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.B5, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.B5, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_10, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_10, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_DL, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_DL, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_C5, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_C5, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_C6, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_C6, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_B5, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_B5, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_MONARCH, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.A6, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.A6, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_9, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_9, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.ENV_PERSONAL, Duplex.HORIZONTAL)
*InvalidCombination: LIST(PaperSize.STATEMENT, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.STATEMENT, Duplex.HORIZONTAL)

*% =========================================================  
*%  PageSize - InputSlot (Tray2)
*% ========================================================= 
*InvalidCombination: LIST(PaperSize.STATEMENT, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.A5, InputBin.LOWER)
*InvalidCombination: LIST(PaperSize.A6, InputBin.LOWER)

*% =========================================================  
*%  MediaType - InputSlot (Tray2)
*% ========================================================= 
*InvalidCombination: LIST(MediaType.Thick, InputBin.LOWER)
*InvalidCombination: LIST(MediaType.Bond, InputBin.LOWER)
*InvalidCombination: LIST(MediaType.Cotton, InputBin.LOWER)
*InvalidCombination: LIST(MediaType.Archive, InputBin.LOWER)

*% =========================================================  
*%  CustomPageSize - Duplex  
*% ========================================================= 
*InvalidCombination: LIST(PaperSize.CUSTOMSIZE, Duplex.VERTICAL)
*InvalidCombination: LIST(PaperSize.CUSTOMSIZE, Duplex.HORIZONTAL)

*%===================================
*%%% Feature
*%%% Memory
*%===================================


*%===================================
*%%% Device fonts
*%===================================

*DefaultFont: =RC_FONT_COURIERR
*DefaultCTT: 0

*DeviceFonts: LIST(
+    =RC_FONT_ALBERTX,
+    =RC_FONT_AOLIVEB,
+    =RC_FONT_AOLIVER,
+    =RC_FONT_ARIALB,
+    =RC_FONT_ARIALI,
+    =RC_FONT_ARIALJ,
+    =RC_FONT_ARIALR,
+    =RC_FONT_COURIERB,
+    =RC_FONT_COURIERI,
+    =RC_FONT_COURIERJ,
+    =RC_FONT_COURIERR,
+    =RC_FONT_LETGOTHB,
+    =RC_FONT_LETGOTHI,
+    =RC_FONT_LETGOTHR,
+    =RC_FONT_MARGOLDR,
+    =RC_FONT_TIMESNRB,
+    =RC_FONT_TIMESNRI,
+    =RC_FONT_TIMESNRJ,
+    =RC_FONT_TIMESNRR,
+    =RC_FONT_WINGDINGS,
+    =RC_FONT_SYMBOL)

*TTFS: AlbertusX
{
  *TTFontName: "Albertus Extra Bold"
  *DevFontName: "Albertus Extra Bold"
}
*TTFS: AntiqueOlive
{
  *TTFontName: "Antique Olive"
  *DevFontName: "Antique Olive"
}
*TTFS: LetterGothic
{
  *TTFontName: "Letter Gothic"
  *DevFontName: "Letter Gothic"
}
*TTFS: Marigold
{
  *TTFontName: "Marigold"
  *DevFontName: "Marigold"
}

*%===================================
*%% Optional Tray2
*%===================================
*Feature: OptTray2
{
    *rcNameID: =TRAY2_DISPLAY *% Lower Paper tray
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: FALSE
    *Option: FALSE
    {
        *rcNameID: =NOT_INSTALLED_DISPLAY
    }
    *Option: TRUE
    {
        *rcNameID: =INSTALLED_DISPLAY
    }
}
*InvalidCombination: LIST(OptTray2.FALSE,InputBin.LOWER)

*%===================================
*%% Optional Duplex Unit
*%===================================
*Feature: DuplexUnit
{
    *FeatureType: PRINTER_PROPERTY
    *rcNameID: =DUPLEX_UNIT_DISPLAY
    *DefaultOption: FALSE
    *Option: FALSE
    {
        *rcNameID: =NOT_INSTALLED_DISPLAY
        *DisabledFeatures: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
    }

    *Option: TRUE
    {
        *rcNameID: =INSTALLED_DISPLAY
    }
}
*InvalidCombination: LIST(DuplexUnit.FALSE,Duplex.VERTICAL)
*InvalidCombination: LIST(DuplexUnit.FALSE,Duplex.HORIZONTAL)

*%===================================
*%%% Printing attributes
*%===================================
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*EjectPageWithFF?: FALSE

*TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
*MemoryUsage: LIST(FONT)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 1200
*YMoveUnit: 1200

*%%% *MinGrayFill: 1
*%%% *MaxGrayFill: 100

*%%% *OutputDataFormat: H_BYTE
*%%% *OptimizeLeftBound?: TRUE

*%===================================
*%%% Color
*%===================================
*Feature: ColorMode
{
	*ConcealFromUI?: TRUE
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: 24bpp
    *Option: Mono
    {
    	*rcNameID: =MONO_DISPLAY
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *Color? : FALSE
        *PaletteSize: 1
        *PaletteProgrammable? : TRUE
        *Command: CmdDefinePaletteEntry { *Cmd: "" }
    }
    *Option: 24bpp
   {
        *rcNameID: =24BPP_DISPLAY
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *PaletteSize: 256
        *PaletteProgrammable? : TRUE
        *Command: CmdDefinePaletteEntry { *Cmd: "" }
    }
}

*%===================================
*%%% PAGE_SETUP.35
*%%% SetPageOrigin
*%%%     PageOrigin
*%%% SetPageScale
*%===================================
*switch: ColorMode
{
    *case: Mono
    {
        *Command: CmdStartPage
        {
        *Order: PAGE_SETUP.35
        *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
+             =ubyte =eGray =attr_ubyte =ColorSpace =SetColorSpace
         }
    }
    *case: 24bpp
    {
        *Command: CmdStartPage
        {
        *Order: PAGE_SETUP.35
        *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
+             =ubyte =eRGB =attr_ubyte =ColorSpace =SetColorSpace
        }
    }
}

*%===================================
*%%% TrueType fonts
*%===================================

*CharPosition: BASELINE
*TTFSEnabled?: TRUE
*FontFormat: OEM_CALLBACK
*MinFontID: 1
*MaxFontID: 65535
*MinGlyphID: 1
*MaxGlyphID: 1000

*%===================================
*%%% Cursor commands
*%===================================

*Command: CmdCR { *Cmd: =CR}
*Command: CmdLF { *Cmd: =LF}
*Command: CmdFF { *Cmd: =FF}

*%%% SetCursor(0x6b)
*%%%     Point(76(0x40c)) uint_16
*%%% SetCursorRel(0x6c)
*%%%     Point(76(0x40c)) uint_16
*Command: CmdXMoveAbsolute
{
    *Cmd: ""
}
*Command: CmdXMoveRelRight
{
    *Cmd: ""
    *Params: LIST(DestXRel, TextXRes)
}
*Command: CmdXMoveRelLeft
{
    *Cmd: ""
    *Params: LIST(DestXRel, TextXRes)
}
*Command: CmdYMoveAbsolute
{
    *Cmd: ""
    *Params: LIST(DestY, TextYRes)
}
*Command: CmdYMoveRelDown
{
    *Cmd: ""
    *Params: LIST(DestYRel, TextYRes)
}
*Command: CmdYMoveRelUp
{
    *Cmd: ""
    *Params: LIST(DestYRel, TextYRes)
}
*%%% *Command: CmdPushCursor
*%%% *Command: CmdPopCursor

*%===================================
*%%% Font commands
*%===================================

*Command: CmdSetFontID { *Cmd : "" }
*Command: CmdSelectFontID
{
    *Cmd: ""
    *Params: LIST(FontHeight, CurrentFontID, TextYRes)
}

*Command: CmdSetCharCode
{
    *Cmd : ""
}

*Command: CmdBoldOn
{
    *Cmd : ""
}
*Command: CmdBoldOff
{
    *Cmd : ""
}
*%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
*%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
*%%% *Command: CmdWhiteTextOn:
*%%% *Command: CmdWhiteTextOff:
*%%% *Command: CmdSelectSingleByteMode:
*%%% *Command: CmdSelectDoubleByteMode:
*Command: CmdSetAnyRotation
{
    *Cmd: ""
    *Params: LIST(PrintDirInCCDegrees)
}
*Command: CmdSetSimpleRotation
{
    *Cmd: ""
    *Params: LIST(PrintDirInCCDegrees)
}