*% GPD file for Epson Color Inkjet Plug-in
*% Copyright (c) 2004 Seiko Epson Corporation
*Include: "EP0NGX5F.GPD"

*% Constraints for MediaType option. 
*InvalidCombination: LIST(PageBorderless.ON, MediaType.STANDARD, PagePreset.EPOPT_PRESET_ECONOMY)
*InvalidCombination: LIST(PageBorderless.ON, MediaType.InkJetPaper360dpi)
*InvalidCombination: LIST(PageBorderless.ON, MediaType.PhotoQualityInkJetPaper)
*InvalidCombination: LIST(PageBorderless.ON, MediaType.PhotographicFilm)
*InvalidCombination: LIST(PageBorderless.ON, MediaType.TRANSPARENCY)
*InvalidCombination: LIST(PageBorderless.ON, MediaType.ColorLifePhotoPaper)

*Feature: MediaType
{
	*rcNameID: =MEDIA_TYPE_DISPLAY
	*UpdateQualityMacro?: TRUE
	*DefaultOption: STANDARD
	*Option: STANDARD
	{
		*rcNameID: =EPN_RCID_PLAIN_PAPER
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: InkJetPaper360dpi
	{
		*rcNameID: =EPN_RCID_360DPI_INKJET_PAPER
		*OptionID: 257
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: PhotoQualityInkJetPaper
	{
		*rcNameID: =EPN_RCID_PHOTO_QUALITY_INKJET_PAPER
		*OptionID: 260
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: MattePaperHeavyWeight
	{
		*rcNameID: =EPN_RCID_MATTE_PAPER_HEAVYWEIGHT
		*OptionID: 271
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: Photographic
	{
		*rcNameID: =EPN_RCID_PHOTO_PAPER
		*OptionID: 258
		*PrintSchemaKeywordMap: "Photographic"
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: PhotographicGlossy
	{
		*rcNameID: =EPN_RCID_GLOSSY_PHOTO_PAPER
		*OptionID: 315
		*PrintSchemaKeywordMap: "PhotographicGlossy"
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: PremiumGlossyPhotoPaper
	{
		*rcNameID: =EPN_RCID_PREMIUM_GLOSSY_PHOTO_PAPER
		*OptionID: 272
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: PhotographicFilm
	{
		*rcNameID: =EPN_RCID_PHOTO_QUALITY_GLOSSY_FILM
		*OptionID: 259
		*PrintSchemaKeywordMap: "PhotographicFilm"
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: TRANSPARENCY
	{
		*rcNameID: =EPN_RCID_INKJET_TRANSPARENCIES
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
	*Option: ColorLifePhotoPaper
	{
		*rcNameID: =EPN_RCID_COLOR_LIFE_PHOTO_PAPER
		*OptionID: 304
		EXTERN_GLOBAL: *ChangeColorModeOnDoc?: TRUE
	}
}

*% Constraints for PaperSize option. 
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.B5)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.A5)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.A6)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.DBL_JAPANESE_POSTCARD)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.Photo4x6Perforated)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanChou3Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanChou4Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanYou1Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanYou2Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanYou3Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.JapanYou4Envelope)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.LETTER)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.LEGAL)
*InvalidCombination: LIST(PageScaling.None, PageBorderless.ON, PaperSize.CUSTOMSIZE)

*Feature: PaperSize
{
	*rcNameID: =PAPER_SIZE_DISPLAY
	*DefaultOption: A4

	*Option: A4
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*switch: PageBorderless
		{
			*case: ON
			{
				*PrintableArea:   PAIR(595200, 841800)
				*PrintableOrigin: PAIR(0, 0)
			}
			*default:
			{
				*PrintableArea:   PAIR(578400, 825000)
				*PrintableOrigin: PAIR(8400, 8400)
			}
		}
	}
	*Option: B5
	{	
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(499200, 711800)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: A5
	{	
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(402800, 578400)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: A6
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(280800, 402800)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: JAPANESE_POSTCARD
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*switch: PageBorderless
		{
			*case: ON
			{
				*PrintableArea:   PAIR(283400, 419600)
				*PrintableOrigin: PAIR(0, 0)
			}
			*default:
			{
				*PrintableArea:   PAIR(266600, 402800)
				*PrintableOrigin: PAIR(8400, 8400)
			}
		}
	}
	*Option: DBL_JAPANESE_POSTCARD
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(550200, 402800)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: Photo4x6Perforated
	{
		*rcNameID: =EPN_RCID_EPSON_PHOTOPAPER_4X6IN
		*PageDimensions:  PAIR(322000, 466000)
		*PrintableArea:   PAIR(305200, 449200)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: JapanLPhoto
	{
		*rcNameID: =EPN_RCID_LSIZE
		*PrintSchemaKeywordMap: "JapanLPhoto"
		*PageDimensions:  PAIR(252200, 360000)
		*switch: PageBorderless
		{
			*case: ON
			{
				*PrintableArea:   PAIR(252200, 360000)
				*PrintableOrigin: PAIR(0, 0)
			}
			*default:
			{
				*PrintableArea:   PAIR(235400, 343200)
				*PrintableOrigin: PAIR(8400, 8400)
			}
		}
	}
	*Option: Japan2LPhoto
	{
		*rcNameID: =EPN_RCID_LLSIZE
		*PrintSchemaKeywordMap: "Japan2LPhoto"
		*PageDimensions:  PAIR(360000, 504400)
		*switch: PageBorderless
		{
			*case: ON
			{
				*PrintableArea:   PAIR(360000, 504400)
				*PrintableOrigin: PAIR(0, 0)
			}
			*default:
			{
				*PrintableArea:   PAIR(343200, 487600)
				*PrintableOrigin: PAIR(8400, 8400)
			}
		}
	}
	*Option: JapanChou3Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_120X235MM
		*PrintSchemaKeywordMap: "JapanChou3Envelope"
		*PageDimensions:  PAIR(340200, 737000)
		*PrintableArea:   PAIR(323400, 649400)
		*PrintableOrigin: PAIR(8400, 79200)
	}
	*Option: JapanChou4Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_90X205MM
		*PrintSchemaKeywordMap: "JapanChou4Envelope"
		*PageDimensions:  PAIR(255200, 632200)
		*PrintableArea:   PAIR(238400, 564400)
		*PrintableOrigin: PAIR(8400, 59400)
	}
	*Option: JapanYou1Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_120X176MM
		*PrintSchemaKeywordMap: "JapanYou1Envelope"
		*PageDimensions:  PAIR(340200, 498800)
		*PrintableArea:   PAIR(323400, 482000)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: JapanYou2Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_114X162MM
		*PrintSchemaKeywordMap: "JapanYou2Envelope"
		*PageDimensions:  PAIR(323200, 459200)
		*PrintableArea:   PAIR(306400, 442400)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: JapanYou3Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_98X148MM
		*PrintSchemaKeywordMap: "JapanYou3Envelope"
		*PageDimensions:  PAIR(277800, 419600)
		*PrintableArea:   PAIR(261000, 402800)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: JapanYou4Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_105X235MM
		*PrintSchemaKeywordMap: "JapanYou4Envelope"
		*PageDimensions:  PAIR(297600, 666200)
		*PrintableArea:   PAIR(280800, 649400)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: LETTER
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(595200, 775200)
		*PrintableOrigin: PAIR(8400, 8400)
	}
	*Option: LEGAL
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(595200,  991200)
		*PrintableOrigin: PAIR(8400, 8400)
	}

	*Option: B4
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(711800, 1015000)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A3
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(825000, 1173800)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: OtherMetricA3Plus
	{
		*rcNameID: =EPN_RCID_A3NOBI
		*PrintSchemaKeywordMap: "OtherMetricA3Plus"
		*PageDimensions:  PAIR(932600, 1369200)
		*PrintableArea:   PAIR(915800, 1352400)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: JISB3
	{
		*rcNameID: =EPN_RCID_B3
		*PrintSchemaKeywordMap: "JISB3"
		*PageDimensions:  PAIR(1031800, 1457000)
		*PrintableArea:   PAIR(1015000, 1440200)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}
	*Option: A2
	{
		*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
		*PrintableArea:   PAIR(1173800, 1667000)
		*PrintableOrigin: PAIR(8400, 8400)
		*Constraints: PageScaling.None
	}

	*Option: CUSTOMSIZE
	{
		*rcNameID: =EPN_RCID_USER_DEFINED
		*MinSize: PAIR(252200, 85000)
		*MaxSize: PAIR(612200, 3168000)
		*MaxPrintableWidth: 595200
		*MinLeftMargin: 8400
		*CenterPrintable?: FALSE
		
		*TopMargin:    8400
		*BottomMargin: 8400

		*switch: Orientation
		{
			*case: PORTRAIT
			{
				*CustCursorOriginY:     %d{8400}
			}
			*case: LANDSCAPE_CC270
			{
				*CustCursorOriginY:     %d{PhysPaperLength - 8400}
			}
		}
		*CustCursorOriginX:     %d{8400}
		*CustPrintableOriginX:  %d{8400}
		*CustPrintableOriginY:  %d{8400}

		*CustPrintableSizeX: %d{ min(595200, PhysPaperWidth - 16800) }
		*CustPrintableSizeY: %d{ PhysPaperLength - 16800 }
	}
}

*% Constraints for PagePhysicalMediaSize option. 
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JISB5)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.ISOA5)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.ISOA6)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanDoubleHagakiPostcard)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.Photo4x6Perforated)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanChou3Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanChou4Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanYou1Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanYou2Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanYou3Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.JapanYou4Envelope)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.NorthAmericaLetter)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.NorthAmericaLegal)
*InvalidCombination: LIST(PageScaling.CustomSquare, PageBorderless.ON, PagePhysicalMediaSize.CustomMediaSize)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JISB5)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.ISOA5)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.ISOA6)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanDoubleHagakiPostcard)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.Photo4x6Perforated)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanChou3Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanChou4Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanYou1Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanYou2Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanYou3Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.JapanYou4Envelope)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.NorthAmericaLetter)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.NorthAmericaLegal)
*InvalidCombination: LIST(PageScaling.FitPage,  PageBorderless.ON, PagePhysicalMediaSize.CustomMediaSize)

*Feature: PagePhysicalMediaSize
{
	*FeatureType: DOC_PROPERTY
	*rcNameID: =EPN_RCID_PHYPAPERSIZE
	*DefaultOption: ISOA4

	*Option: ISOA4
	{
		*rcNameID: =EPN_RCID_A4
	}
	*Option: JISB5
	{	
		*rcNameID: =EPN_RCID_B5
	}
	*Option: ISOA5
	{	
		*rcNameID: =EPN_RCID_A5
	}
	*Option: ISOA6
	{
		*rcNameID: =EPN_RCID_A6
	}
	*Option: JapanHagakiPostcard
	{
		*rcNameID: =EPN_RCID_JAPANESE_POSTCARD
	}
	*Option: JapanDoubleHagakiPostcard
	{
		*rcNameID: =EPN_RCID_DBL_JAPANESE_POSTCARD
	}
	*Option: Photo4x6Perforated
	{
		*rcNameID: =EPN_RCID_EPSON_PHOTOPAPER_4X6IN
	}
	*Option: JapanLPhoto
	{
		*rcNameID: =EPN_RCID_LSIZE
	}
	*Option: Japan2LPhoto
	{
		*rcNameID: =EPN_RCID_LLSIZE
	}
	*Option: JapanChou3Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_120X235MM
	}
	*Option: JapanChou4Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_90X205MM
	}
	*Option: JapanYou1Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_120X176MM
	}
	*Option: JapanYou2Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_114X162MM
	}
	*Option: JapanYou3Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_98X148MM
	}
	*Option: JapanYou4Envelope
	{
		*rcNameID: =EPN_RCID_ENVELOPE_105X235MM
	}
	*Option: NorthAmericaLetter
	{
		*rcNameID: =EPN_RCID_LETTER
	}
	*Option: NorthAmericaLegal
	{
		*rcNameID: =EPN_RCID_LEGAL
	}
	*Option: CustomMediaSize
	{
		*rcNameID: =EPN_RCID_USER_DEFINED
	}
}
