*% ***********************************************************
*%   Canon Inkjet Printer Driver for Microsoft Windows Vista
*%   Version 1.01
*%   Copyright CANON INC. 2006-2007 All Rights Reserved
*% ***********************************************************


*%
*% FILE NAME:
*%        Canon PIXUS 320i
*%


*%---------------------------------------------
*% include GPD files which define Value Macros
*%---------------------------------------------

*Include: "STDNAMES.GPD"
*Include: "CNBGRC1.GPD"



*%---------------------------------------------
*% global entries
*%---------------------------------------------

*GPDSpecVersion: "1.0"
*GPDFileVersion: "1.0"
*GPDFileName: "CNB320I.GPD"
*CodePage: 1252
*ResourceDLL: "CNBUR.DLL"
*ModelName: "Canon Inkjet PIXUS 320i"
*MasterUnits: PAIR(76200, 76200)
*PrinterType: SERIAL
*PrintSchemaPrivateNamespaceURI: "http://www.canon.com/ns/printschema/inkjet/v100"



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

*%
*% include GPD files
*%

*Include: "CNBCMN1.GPD"
*Include: "CNBCOL1.GPD"
*Include: "CNBBLP3.GPD"
*Include: "CNBDUP2.GPD"
*Include: "CNBPRT1.GPD"
*Include: "CNBSTP1.GPD"
*Include: "CNBEFF1.GPD"


*%
*% DPI
*%

*Feature: PageDPI
{
  *rcNameID: =IDS_PT_DN_RESOLUTION
  *DefaultOption: r600x600

  *Option: r600x600
  {
    *Name: "600 x 600 dpi"
  }

  *Option: r300x300
  {
    *Name: "300 x 300 dpi"
  }
}


*%
*% resolution
*%

*Feature: Resolution
{
  *rcNameID: =IDS_PT_DN_RESOLUTION
  *DefaultOption: Normal

  *Option: High
  {
    *rcNameID: =IDS_QUALITY_BEST
    *OptionID: -4
    *SpotDiameter: 0
    *DPI: PAIR(600, 600)
    *TextDPI: PAIR(600, 600)
  }

  *Option: Normal
  {
    *rcNameID: =IDS_QUALITY_NORMAL
    *OptionID: -3
    *SpotDiameter: 0
    *DPI: PAIR(600, 600)
    *TextDPI: PAIR(600, 600)
  }

  *Option: Draft
  {
    *rcNameID: =IDS_QUALITY_FAST
    *OptionID: -2
    *SpotDiameter: 0
    *DPI: PAIR(300, 300)
    *TextDPI: PAIR(300, 300)
  }
}


*%
*% cartridge
*%

*Feature: PageCartridge
{
  *rcNameID: =IDS_BJCARTRIDGE
  *DefaultOption: Color

  *Option: Color
  {
    *rcNameID: =IDS_COLOR_CRG
  }
}


*%
*% media type
*%

*Feature: MediaType
{
  *rcNameID: =IDS_MEDIATYPE
  *DefaultOption: STANDARD

  *Option: STANDARD
  {
    *rcNameID: =IDS_PLAIN
    *OptionID: 1
  }

  *Option: ProPhoto
  {
    *rcNameID: =IDS_M306
    *OptionID: 281
  }

  *Option: SuperPhoto
  {
    *rcNameID: =IDS_SUPER_PHOTO
    *OptionID: 285
  }

  *Option: MattePhoto
  {
    *rcNameID: =IDS_MAT
    *OptionID: 284
  }

  *Option: Glossy
  {
    *rcNameID: =IDS_M304
    *OptionID: 277
  }

  *Option: HighResolution
  {
    *PrintSchemaKeywordMap: "HighResolution"
    *rcNameID: =IDS_HIGHRES
    *OptionID: 271
  }

  *Option: JapaneseInkjetPostcard
  {
    *rcNameID: =IDS_INKJETPOSTCARD
    *OptionID: 283
  }

  *Option: JapanesePostcard
  {
    *rcNameID: =IDS_POSTCARD
    *OptionID: 262
  }

  *Option: TShirtTransfer
  {
    *PrintSchemaKeywordMap: "TShirtTransfer"
    *rcNameID: =IDS_TSHIRT
    *OptionID: 273
  }

  *Option: EnvelopePlain
  {
    *PrintSchemaKeywordMap: "EnvelopePlain"
    *rcNameID: =IDS_ENVELOPE
    *OptionID: 263
  }
}


*%
*% input bin
*%

*Feature: InputBin
{
  *rcNameID: =IDS_PAPERFEED
  *DefaultOption: AUTO

  *Option: AUTO
  {
    *PrintSchemaKeywordMap: "AutoSheetFeeder"
    *rcNameID: =IDS_ASFFEED
    *OptionID: 7
  }
}


*%
*% print quality
*%

*Feature: PageOutputQuality
{
  *PrintSchemaKeywordMap: "PageOutputQuality"
  *rcNameID: =IDS_PRINTQUALITY
  *DefaultOption: Automatic

  *Option: Automatic
  {
    *PrintSchemaKeywordMap: "Automatic"
    *rcNameID: =IDS_PT_DN_QUALITY_AUTO
  }

  *Option: High
  {
    *PrintSchemaKeywordMap: "High"
    *rcNameID: =IDS_QUALITY_BEST
  }

  *Option: Normal
  {
    *PrintSchemaKeywordMap: "Normal"
    *rcNameID: =IDS_QUALITY_NORMAL
  }

  *Option: Draft
  {
    *PrintSchemaKeywordMap: "Draft"
    *rcNameID: =IDS_QUALITY_FAST
  }

  *Option: Custom_SPECIAL
  {
    *rcNameID: =IDS_PT_DN_QUALITY_SPECIAL
  }

  *Option: Custom_HQ
  {
    *rcNameID: =IDS_PT_DN_QUALITY_HQ
  }

  *Option: Custom_MQ
  {
    *rcNameID: =IDS_PT_DN_QUALITY_MQ
  }

  *Option: Custom_NORMAL
  {
    *rcNameID: =IDS_PT_DN_QUALITY_NORMAL
  }

  *Option: Custom_HS
  {
    *rcNameID: =IDS_PT_DN_QUALITY_HS
  }
}


*%
*% halftone
*%

*Feature: Halftone
{
  *rcNameID: =IDS_HALFTONING
  *DefaultOption: HT_PATSIZE_AUTO

  *Option: HT_PATSIZE_AUTO
  {
    *rcNameID: =IDS_HALFTONE_AUTO
  }

  *Option: HT_PATSIZE_8x8_M
  {
    *rcNameID: =IDS_HALFTONE_DITHER
  }

  *Option: HT_PATSIZE_SUPERCELL_M
  {
    *rcNameID: =IDS_HALFTONE_ED
  }
}

*Feature: PageHalftone
{
  *rcNameID: =IDS_HALFTONING
  *DefaultOption: Automatic

  *Option: Automatic
  {
    *rcNameID: =IDS_HALFTONE_AUTO
  }

  *Option: Dither
  {
    *rcNameID: =IDS_HALFTONE_DITHER
  }

  *Option: ErrorDiffusion
  {
    *rcNameID: =IDS_HALFTONE_ED
  }
}


*%
*% grayscale
*%

*Feature: ColorMode
{
  *rcNameID: =IDS_PT_DN_COLOR_FEATURE
  *DefaultOption: Color

  *Option: Color
  {
    *rcNameID: =IDS_PT_DN_COLOR_COLOR
    *DevBPP: 0
    *DevNumOfPlanes: 0
    *Color?: TRUE
    *DrvBPP: 24
    *IPCallbackID: 1
    *RasterMode: DIRECT
  }

  *Option: Monochrome
  {
    *rcNameID: =IDS_PT_DN_COLOR_GRAYSCALE
    *DevBPP: 0
    *DevNumOfPlanes: 0
    *Color?: FALSE
    *DrvBPP: 24
    *IPCallbackID: 1
    *RasterMode: DIRECT
  }
}


*%
*% print preview
*%

*Feature: JobPreview
{
  *rcNameID: =IDS_PREVIEW
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }

  *Option: ON
  {
    *rcNameID: =IDS_PT_DN_ON
  }
}


*%
*% reduce spool data size
*%

*Feature: PageReduceSpoolSize
{
  *rcNameID: =IDS_REDUCESPOOLSIZE
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }

  *Option: ON
  {
    *rcNameID: =IDS_PT_DN_ON
  }
}


*%
*% change the print data size to match the port
*%

*Feature: PageReduceDataSizeMatchPort
{
  *rcNameID: =IDS_OPTIMIZEDATASIZE
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }
}


*%
*% rotate 180 degrees
*%

*Feature: PageRotate180
{
  *rcNameID: =IDS_ROTATE180
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }
}


*%
*% application paper size
*%

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

  *Option: LETTER
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(609600, 814200)
    *PrintableOrigin: PAIR(19200, 9000)
  }

  *Option: LEGAL
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(609600, 1042800)
    *PrintableOrigin: PAIR(19200, 9000)
  }

  *Option: A5
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(423600, 606000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: A4
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(609600, 867000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: B5
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(525600, 747000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: JapanLPhoto
  {
    *PrintSchemaKeywordMap: "JapanLPhoto"
    *Name: "JapanLPhoto"
    *PageDimensions: PAIR(267000, 381000)
    *switch: PageBorderless
    {
      *case: Borderless
      {
        *PrintableArea: PAIR(267000, 381000)
        *PrintableOrigin: PAIR(0, 0)
      }
      *default
      {
        *PrintableArea: PAIR(246600, 357000)
        *PrintableOrigin: PAIR(10200, 9000)
      }
    }
  }

  *Option: Japan2LPhoto
  {
    *PrintSchemaKeywordMap: "Japan2LPhoto"
    *Name: "Japan2LPhoto"
    *PageDimensions: PAIR(381000, 534000)
    *PrintableArea: PAIR(360600, 510000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: JAPANESE_POSTCARD
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *switch: PageBorderless
    {
      *case: Borderless
      {
        *PrintableArea: PAIR(300000, 444000)
        *PrintableOrigin: PAIR(0, 0)
      }
      *default
      {
        *PrintableArea: PAIR(279600, 420000)
        *PrintableOrigin: PAIR(10200, 9000)
      }
    }
  }

  *Option: JENV_YOU4
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(294600, 616500)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: JapanYou6Envelope
  {
    *PrintSchemaKeywordMap: "JapanYou6Envelope"
    *Name: "JapanYou6Envelope"
    *PageDimensions: PAIR(294000, 570000)
    *PrintableArea: PAIR(273600, 481500)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: LetterPlus
  {
    *Name: "LetterPlus"
    *PageDimensions: PAIR(685800, 1013460)
    *PrintableArea: PAIR(665400, 989460)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: TABLOID
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(817800, 1271400)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: CSHEET
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(1275000, 1652400)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: A4Plus
  {
    *Name: "A4Plus"
    *PageDimensions: PAIR(668100, 1066800)
    *PrintableArea: PAIR(647700, 1042800)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: A3
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(870600, 1236000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: OtherMetricA3Plus
  {
    *PrintSchemaKeywordMap: "OtherMetricA3Plus"
    *Name: "OtherMetricA3Plus"
    *PageDimensions: PAIR(987000, 1449000)
    *PrintableArea: PAIR(966600, 1425000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: A2
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(1239600, 1758000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: B4
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *PrintableArea: PAIR(750600, 1068000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: JISB3
  {
    *PrintSchemaKeywordMap: "JISB3"
    *Name: "JISB3"
    *PageDimensions: PAIR(1092000, 1545000)
    *PrintableArea: PAIR(1071600, 1521000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: NorthAmerica8x10
  {
    *PrintSchemaKeywordMap: "NorthAmerica8x10"
    *Name: "NorthAmerica8x10"
    *PageDimensions: PAIR(609600, 762000)
    *PrintableArea: PAIR(589200, 738000)
    *PrintableOrigin: PAIR(10200, 9000)
  }

  *Option: CUSTOMSIZE
  {
    *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
    *MaxSize: PAIR(1260000, 1782000)
    *MinSize: PAIR(267000, 360000)
    *MinLeftMargin: 10200
    *MaxPrintableWidth: 609600
    *CustCursorOriginX: %d{10200}
    *CustPrintableOriginX: %d{10200}
    *CustPrintableSizeX: %d{PhysPaperWidth - 20400}
    *CustCursorOriginY: %d{9000}
    *CustPrintableOriginY: %d{9000}
    *CustPrintableSizeY: %d{PhysPaperLength - 24000}
  }
}


*%
*% printer paper size
*%

*Feature: PageOutputMediaSize
{
  *rcNameID: =IDS_PRINTERPAPERSIZE
  *DefaultOption: ISOA4

  *Option: NorthAmericaLetter
  {
    *rcNameID: =IDS_LETTER_P_SHORT
  }

  *Option: NorthAmericaLegal
  {
    *rcNameID: =IDS_LEGAL_P_SHORT
  }

  *Option: ISOA5
  {
    *rcNameID: =IDS_A5_P_SHORT
  }

  *Option: ISOA4
  {
    *rcNameID: =IDS_A4_P_SHORT
  }

  *Option: JISB5
  {
    *rcNameID: =IDS_B5_P_SHORT
  }

  *Option: JapanLPhoto
  {
    *rcNameID: =IDS_L_SHORT
  }

  *Option: Japan2LPhoto
  {
    *rcNameID: =IDS_2L_SHORT
  }

  *Option: JapanHagakiPostcard
  {
    *rcNameID: =IDS_HAGAKI_P_SHORT
  }

  *Option: JapanYou4Envelope
  {
    *rcNameID: =IDS_ENV_NO4_SHORT
  }

  *Option: JapanYou6Envelope
  {
    *rcNameID: =IDS_ENV_NO6_SHORT
  }

  *Option: CustomMediaSize
  {
    *rcNameID: =IDS_CUSTOMSIZE
  }
}


*%
*% binding
*%

*Feature: JobBindAllDocuments
{
  *PrintSchemaKeywordMap: "JobBindAllDocuments"
  *rcNameID: =IDS_STAPLE
  *DefaultOption: Longside_Left_or_Top

  *Option: Longside_Left_or_Top
  {
    *rcNameID: =IDS_PT_DN_BINDDIRECT_LONGSIDE_LEFT_OR_TOP
  }

  *Option: Shortside_Left_or_Top
  {
    *rcNameID: =IDS_PT_DN_BINDDIRECT_SHORTSIDE_LEFT_OR_TOP
  }
}


*%
*% media-sense
*%

*Feature: PageUsePrinterMediaType
{
  *rcNameID: =IDS_PT_DN_USEPRINTERMEDIATYPE
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }
}


*%
*% 3D print
*%

*Feature: PageThreeDPrint
{
  *rcNameID: =IDS_PT_DN_THREE_D
  *DefaultOption: None

  *Option: None
  {
    *rcNameID: =IDS_PT_DN_THREE_D_NONE
  }

  *Option: Vertical
  {
    *rcNameID: =IDS_PT_DN_THREE_D_VERTICAL
  }

  *Option: Horizontal
  {
    *rcNameID: =IDS_PT_DN_THREE_D_HORIZONTAL
  }
}


*%
*% scanner high-speed copy mode
*%

*Feature: PageScannerHighSpeedCopyMode
{
  *rcNameID: =IDS_PT_DN_PRINTTHROUGH
  *DefaultOption: OFF

  *Option: OFF
  {
    *rcNameID: =IDS_PT_DN_OFF
  }
}



*%---------------------------------------------
*% printing attributes
*%---------------------------------------------

*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*StripBlanks: LIST(TRAILING)
*EjectPageWithFF?: TRUE
*TextCaps: TC_RA_ABLE
*OutputOrderReversed?: TRUE
*ChangeColorModeOnDoc?: TRUE

*switch: PagePhotoOptimizer
{
  *case: ON
  {
    *switch: Page1BPPMode
    {
      *case: ON
      {
        *PreAnalysisOptions: 10
      }
      *default
      {
        *PreAnalysisOptions: 8
      }
    }
  }
  *default
  {
    *switch: Page1BPPMode
    {
      *case: ON
      {
        *PreAnalysisOptions: 2
      }
      *default
      {
        *PreAnalysisOptions: 0
      }
    }
  }
}



*%---------------------------------------------
*% command
*%---------------------------------------------

*Command: CmdStartJob
{
  *Order: JOB_SETUP.1
  *CallbackID: =CMD_CALLBACKID_STARTJOB
}

*Command: CmdStartDoc
{
  *Order: DOC_SETUP.1
  *CallbackID: =CMD_CALLBACKID_STARTDOC
  *NoPageEject?: TRUE
}

*Command: CmdStartPage
{
  *Order: PAGE_SETUP.1
  *CallbackID: =CMD_CALLBACKID_STARTPAGE
}

*Command: CmdEndPage
{
  *Order: PAGE_FINISH.1
  *CallbackID: =CMD_CALLBACKID_ENDPAGE
}

*Command: CmdEndDoc
{
  *Order: DOC_FINISH.1
  *CallbackID: =CMD_CALLBACKID_ENDDOC
}

*Command: CmdEndJob
{
  *Order: JOB_FINISH.1
  *CallbackID: =CMD_CALLBACKID_ENDJOB
}


*%
*% cursor control
*%

*Command: CmdFF { *Cmd : "" }

*% These definitions are not actually used for printing - only for documentation purpose.
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }


*%
*% raster data emission
*%

*% These definitions are not actually used for printing - only for documentation purpose.
*Command: CmdSendBlockData { *Cmd: "<1b>(A" %l{NumOfDataBytes + 1} "K" }
*Command: CmdSendYellowData { *Cmd: "<1b>(A" %l{NumOfDataBytes + 1} "Y" }
*Command: CmdSendMagentaData { *Cmd: "<1b>(A" %l{NumOfDataBytes + 1} "M" }
*Command: CmdSendCyanData { *Cmd: "<1b>(A" %l{NumOfDataBytes + 1} "C" }
*Command: CmdSendBlackData { *Cmd: "<1b>(A" %l{NumOfDataBytes + 1} "K" }



