*GPDFileName: "CTLJP30D.gpd"
*GPDFileVersion: "1.0"
*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*ModelName: "CTLJP30D"
*MasterUnits: PAIR(1200, 1200)
*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 999
*PrintRate: 30
*PrintRateUnit: PPM
*PrintRatePPM: 30

*%******************************************************************************************
*%                                      Orientation
*%******************************************************************************************
*Feature: Orientation
{
	*rcNameID: =ORIENTATION_DISPLAY
	*DefaultOption: PORTRAIT
	*Option: PORTRAIT
	{
		*rcNameID: =PORTRAIT_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.6
			*Cmd: ""
		}
	}
	*Option: LANDSCAPE_CC90
	{
		*rcNameID: =LANDSCAPE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.8
			*Cmd: ""
		}
	}
}

*%******************************************************************************************
*%                                      Input Bin
*%******************************************************************************************
*Feature: InputBin
{
	*rcNameID: =PAPER_SOURCE_DISPLAY
	*DefaultOption: AUTO
	*Option: AUTO
	{
		*rcNameID: =AUTO_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.11
			*Cmd: ""
		}
	}
	*Option: UPPER
	{
		*rcNameID: =MANUAL_FEED_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.11
			*Cmd: ""
		}
	}
}

*%******************************************************************************************
*%                                      Resolution
*%******************************************************************************************
*Feature: Resolution
{
	*rcNameID: =RESOLUTION_DISPLAY
	*DefaultOption: Option1
	*Option: Option1
	{
		*Name: "600 " =DOTS_PER_INCH
		*DPI: PAIR(600, 600)
		*TextDPI: PAIR(600, 600)
		*MinStripBlankPixels: 32
		EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
		*SpotDiameter: 100
		*Command: CmdBeginRaster { *Cmd : "" }
		*Command: CmdEndRaster { *Cmd : "" }
		*Command: CmdSendBlockData { *Cmd : "" }
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.7
			*Cmd: ""
		}
	}
}

*%******************************************************************************************
*%                                      Paper Size
*%******************************************************************************************
*Feature: PaperSize
{
	*rcNameID: =PAPER_SIZE_DISPLAY
	*DefaultOption: A4
	*Option: LETTER			*% physical page (10200, 13200 - 8.5" x 11.0")
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*PrintableArea: PAIR(9632, 12800)
				*PrintableOrigin: PAIR(284, 200)
				*CursorOrigin: PAIR(284, 200)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
			*case: LANDSCAPE_CC90
			{
				*PrintableArea: PAIR(9632, 12800)
				*PrintableOrigin: PAIR(284, 200)
				*CursorOrigin: PAIR(284, 13000)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
		}
	}
    *Option: LEGAL                                  *% physical page (10200, 16800 - 8.5" x 14.0"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9800, 16400)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9800, 16400)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 16600)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
            }
        }
    }
	*Option: EXECUTIVE				*% physical page (8700, 12600 - 7.25" x 10.5")
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*PrintableArea: PAIR(8300, 12200)
				*PrintableOrigin: PAIR(200, 200)
				*CursorOrigin: PAIR(200, 200)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
			*case: LANDSCAPE_CC90
			{
				*PrintableArea: PAIR(8300, 12200)
				*PrintableOrigin: PAIR(200, 200)
				*CursorOrigin: PAIR(200, 12400)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
		}
	}
	*Option: A4			*% physical page (9920, 14030 - 8.2677" x 11.693")
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*PrintableArea: PAIR(9520, 13558)
				*PrintableOrigin: PAIR(200, 236)
				*CursorOrigin: PAIR(200, 236)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
			*case: LANDSCAPE_CC90
			{
				*PrintableArea: PAIR(9520, 13558)
				*PrintableOrigin: PAIR(200, 236)
				*CursorOrigin: PAIR(200, 13794)
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.12
					*Cmd: ""
				}
			}
		}
	}
    *Option: ENV_10                                 *% physical page (4948, 11400 - 4.125" x 9.5"))
    {                                               
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4548, 11000)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4548, 11000)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 11200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: ENV_DL                                 *% physical page (5196, 10392 - 4.3307" x 8.6614")
    {                                               
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4796, 9992)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4796, 9992)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 10192)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: ENV_MONARCH                            *% physical page (4648, 9000 - 3.875" x 7.50")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4248, 8600)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4248, 8600)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 8800)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: ENV_B5                                 *% physical page (8314, 11810 - 6.9291" x 9.8425"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7914, 11338)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 236)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7914, 11338)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 11574)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: A5                                      *% physical page (6992, 9920 - 5.8268" x 8.2677")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6592, 9520)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6592, 9520)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 9720)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: B5                                      *% B5 (JIS) physical page (8598, 12140 - 7.1653" x 10.118")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8126, 11740)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8126, 11740)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 11940)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: ENV_C5                                 *% physical page (7652, 10818 - 6.3779" x 9.0157"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7252, 10346)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 236)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7252, 10346)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10582)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }

    *Option: DBL_JAPANESE_POSTCARD_ROTATED          *% physical page (6992, 9448 - 5.8268" x 7.874")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6592,9048)
                *PrintableOrigin: PAIR(200, 200)                
                *CursorOrigin: PAIR(200, 200)  
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6592,9048)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 9248)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }
    
    *%  Addition of Wide Paper Sizes ends here
    *Option: CUSTOMSIZE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *MinSize: PAIR(3600, 6000)                      *% min page (3" x 5")
        *MaxSize: PAIR(14040, 21240)                    *% max page (11.7"x 17.7")
        *MaxPrintableWidth: 14040
        *MinLeftMargin: 100
        *CenterPrintable?: FALSE
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX: %d{200}
                *CustCursorOriginY: %d{200 }
                *CustPrintableOriginX: %d{200}
                *CustPrintableOriginY: %d{200}
                *CustPrintableSizeX: %d{PhysPaperWidth - 400}
                *CustPrintableSizeY: %d{PhysPaperLength - 400}

                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
            *case: LANDSCAPE_CC90
            {

                *CustCursorOriginX: %d{200}
                *CustCursorOriginY: %d{PhysPaperLength + 200}
                *CustPrintableOriginX: %d{200}
                *CustPrintableOriginY: %d{200}
                *CustPrintableSizeX: %d{PhysPaperWidth - 400}
                *CustPrintableSizeY: %d{PhysPaperLength - 400}

                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.12
                    *Cmd: ""
                }
            }
        }
    }
}

*%******************************************************************************************
*%                                      Media Type
*%******************************************************************************************
*Feature: MediaType
{
	*rcNameID: =MEDIA_TYPE_DISPLAY
	*DefaultOption: PLAIN
	*Option: PLAIN
	{
		*rcNameID: =PLAIN_PAPER_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.15
			*Cmd: ""
		}
	}
	*Option: TRANSPARENCY
	{
		*rcNameID: =TRANSPARENCY_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.15
			*Cmd: ""
		}
	}
}


*%******************************************************************************************
*%                                      Color Mode
*%******************************************************************************************
*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: Mono
	*Option: Mono
	{
		*rcNameID: =MONO_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*IPCallbackID: 1
		*Color?: FALSE
	}
}

*%******************************************************************************************
*%                                      HalfTone
*%******************************************************************************************
*Feature: Halftone
{
	*rcNameID: =HALFTONING_DISPLAY
	*DefaultOption: HT_PAT_HALFT_CT
	*Option: HT_PATSIZE_8x8_M
	{
		*rcNameID: =HT_DITHER8X8_DISPLAY
		*HTCallbackID: 1
	}
 	*Option: HT_PAT_HALFT_CT
  {
		*Name: "CT_ENHANCE"
		*HTPatternSize: PAIR(8, 8)
		*HTNumPatterns: 1
		*HTCallbackID: 2
  } 
}

*%******************************************************************************************
*%                                      Duplex Unit
*%******************************************************************************************
*Feature: DuplexUnit
{
	*rcNameID: 429
	*FeatureType: PRINTER_PROPERTY
	*DefaultOption: FALSE
	*Option: FALSE
	{
		*rcNameID: 444
	}
	*Option: TRUE
	{
		*rcNameID: 443
	}
}

*%******************************************************************************************
*%                                      Duplex Type
*%******************************************************************************************
*Feature: Duplex
{
	*rcNameID: =TWO_SIDED_PRINTING_DISPLAY
	*DefaultOption: NONE
	*Option: NONE
	{
		*rcNameID: =NONE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
	*Option: VERTICAL
	{
		*rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
	*Option: HORIZONTAL
	{
		*rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
}

*%******************************************************************************************
*%                                      Doc setup commands
*%******************************************************************************************
*Command: CmdStartDoc
{
	*Order: DOC_SETUP.7
	*Cmd: ""
}
*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*Cmd: ""
}
*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*Cmd: ""
}
*Command: CmdCopies
{
	*Order: DOC_SETUP.13
	*Cmd: ""
}

*%******************************************************************************************
*%                                      Cursor and Page Commands
*%******************************************************************************************
*CharPosition: BASELINE     *% character positioning keyword must be present even if device font are not present
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
*MemoryUsage: LIST(FONT, RASTER, VECTOR)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 1200
*YMoveUnit: 1200
*EjectPageWithFF?: FALSE
*OutputDataFormat: H_BYTE
*%*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT

*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }
