<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DeviceCap SYSTEM "UPDF.dtd" >
<!-- 
    This is an example UPDF for the HP Color LaserJet 4500.
    This is a very basic UPDF file with just the minimum required
    tags according to the updf.dtd.
-->
<DeviceCap>
  <!-- ......................................................-->
  <!--                                                       -->
  <!--  UPDF Version info                                    -->
  <!--                                                       -->
  <!-- ......................................................-->
  <UPDFVersion FormatVersion="1.00" FileVersion="990618"/>
  <!-- ......................................................-->
  <!--                                                       -->
  <!--    Global Device Header info                          -->
  <!--                                                       -->
  <!-- ......................................................-->
  <DeviceCap.Header>
    <FileVersion>2.70</FileVersion>
    <Manufacturer>Hewlett-Packard</Manufacturer>
    <Product>HP Color LaserJet 4500</Product>
    <ModelName>HP C LaserJet 4500-PS</ModelName>
    <NickName>HP C LaserJet 4500-PS v2014.200</NickName>
    <DeviceId fDeviceId="FALSE">
      <DeviceId.Mfc/>
      <DeviceId.Mdl/>
      <DeviceId.Cmd/>
      <DeviceId.Cls/>
      <DeviceId.Des/>
      <DeviceId.Cid/>
    </DeviceId>
    <!-- ............................................................. -->
    ISSUE: *LanguageEncoding: IsoLatin1
           *LanguageVersion: English
    These work in tandem in the PPD. The UPDF Encoding is always UTF-8.

    Locales supported by this UPDF file.
<!-- ............................................................. --><LocaleList>
      <Locale LocaleId="en_AU"/>
      <Locale LocaleId="en_GB"/>
      <Locale LocaleId="en_US"/>
      <Locale LocaleId="da_DK"/>
      <CustomLocale CustomLocaleId="en_UK"/>
      <CustomLocale CustomLocaleId="aa_BB"/>
    </LocaleList>
    <FileName>CLJ4500.xml</FileName>
    <CustomDeviceCapTags>
      <CustomTag TagLabel="TTRasterizer" TagValue="Type42"/>
    </CustomDeviceCapTags>
  </DeviceCap.Header>
  <!-- ......................................................-->
  <!--                                                       -->
  <!--  Device Cap features info                             -->
  <!--                                                       -->
  <!-- ......................................................-->
  <DeviceCap.Features>
    <PrinterCap>
      <PrinterCap.Header>
        <Printer>What goes here?
            </Printer>
        <Languages>
          <Language>
            <!-- ............................................................. -->
    ISSUE: Want to be able to specify multiple languages - at least three
<!-- ............................................................. --><Language.PDL PDLMajorLevel="PS2" PDLMinorLevel="2"/>
            <Language.JCL JCLMajorLevel="PJL" JCLMinorLevel="0"/>
          </Language>
        </Languages>
        <ModuleNames/>
      </PrinterCap.Header>
      <Features>
        <Physical>
          <Engine EngineType="LBP"/>
          <RAM fRAM="TRUE">
            <RAM.Internal RAMInternalSizeKb="32768" RAMInternalWorkSizeKb="4096"/>
          </RAM>
          <ROM fROM="FALSE"/>
          <Color tColor="ON"/>
          <INSERTERS NumInserter="0" tInserter="DISABLE"/>
          <STORAGES NumStorage="0" tStorage="DISABLE"/>
        </Physical>
        <Platform>
          <ModuleNames/>
          <HostRendering fHostRendering="FALSE"/>
          <ObjectSignature RasterSignatureWord="0" VectorSignatureWord="0"/>
          <DDBProc fDisableReversingDDB="FALSE"/>
          <CacheProc fDisableObjectCache="FALSE"/>
        </Platform>
        <Resource/>
        <!-- ............................................................. -->
        <!-- Fonts                                                         -->
        <!-- ............................................................. -->
        <FONTS fFont="TRUE">
          <DefaultFont DefaultFontSizePt="10" DefaultFontDBCS="None">Courier
                </DefaultFont>
          <InternalFont NumInternalFont="2">
            <Font FontEncoding="Standard" FontVersion="(002,004S)" FontCharset="Standard" FontStatus="ROM" FontId="1">
                          Courier</Font>
            <Font FontEncoding="Standard" FontVersion="(002,004S)" FontCharset="Standard" FontStatus="ROM" FontId="2">
                          Courier-Bold</Font>
          </InternalFont>
        </FONTS>
        <Overlays/>
        <Forms/>
        <Communication/>
        <OEM/>
        <Localization/>
        <Global>
          <UserInterface>
            <Dialog>
              <Tab Text="Paper" UILocalize="TRUE">
                <UIFeatures>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Paper size" UILocalize="TRUE" HelpText="HelpMe" ShortcutKey="z"/>PaperSize
                                    <UIControl>
                      <List Orientation="Horizontal" ScrollBar="TRUE">
                        <ItemInList UILabel="US Letter" Src="letter.bmp" Command="blank for now"/>
                        <ItemInList UILabel="US Legal" Src="legal.bmp" Command=" "/>
                        <ItemInList UILabel="Executive" Src="executive.bmp" Command=" "/>
                        <ItemInList UILabel="A4" Src="A4.bmp" Command=" "/>
                        <ItemInList UILabel="A5" Src="A5.bmp" Command=" "/>
                      </List>
                    </UIControl>
                  </UIFeature>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Layout" UILocalize="TRUE" HelpText="HelpMe" ShortcutKey="y"/>Layout
                                    <UIControl>
                      <RadioButtonGroup NumButtons="3" DefaultButton="1 up">
                        <RadioButton UILabel="1 up" Command="cmd"/>
                        <RadioButton UILabel="2 up" Command="cmd"/>
                        <RadioButton UILabel="4 up" Command="cmd"/>
                      </RadioButtonGroup>
                    </UIControl>
                    <UIControl>
                      <SrcImage/>
                    </UIControl>
                    <UIControl>
                      <SrcImage/>
                    </UIControl>
                    <UIControl>
                      <SrcImage/>
                    </UIControl>
                  </UIFeature>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Orientation" UILocalize="TRUE" HelpText="HelpMe" ShortcutKey="O"/>Orientation
                                    <UIControl>
                      <RadioButtonGroup NumButtons="2" DefaultButton="Portrait">
                        <RadioButton UILabel="Portrait" ShortcutKey="P" Command="cmd"/>
                        <RadioButton UILabel="Landscape" ShortcutKey="L" Command="cmd"/>
                      </RadioButtonGroup>
                    </UIControl>
                    <UIControl>
                      <CheckBox/>
                    </UIControl>
                  </UIFeature>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Paper Source" UILocalize="TRUE" HelpText="HelpMe" ShortcutKey="O"/>PaperSource
                                    <UIControl/>
                  </UIFeature>
                </UIFeatures>
              </Tab>
              <Tab Text="Graphics" UILocalize="TRUE"/>
            </Dialog>
            <Dialog>
              <Tab Text="Paper" UILocalize="TRUE">
                <UIFeatures>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Print on both sides" UILocalize="TRUE" HelpText="HelpMe" ShortcutKey="d"/>Duplex
                                <UIControl>
                      <RadioButtonGroup NumButtons="3" DefaultButton="None">
                        <RadioButton UILabel="None" Command="Duplex false Tumble false setpagedevice"/>
                        <RadioButton UILabel="Flip on Long Edge" Command="cmd"/>
                        <RadioButton UILabel="Flip on Short Edge" Command="cmd"/>
                      </RadioButtonGroup>
                    </UIControl>
                  </UIFeature>
                  <UIFeature>
                    <UIAttributes UIDisplayName="Media:" UILocalize="TRUE" HelpText="HelpMe"/>Media
                                <UIControl>
                      <List ScrollBar="FALSE">
                        <ItemInList UILabel="Plain" Command="cmd"/>
                      </List>
                    </UIControl>
                  </UIFeature>
                  <UIFeature>
                    <UIControl>
                      <Button>
                        <Label Text="OK" UILocalize="TRUE"/>
                        <Image/>
                      </Button>
                    </UIControl>
                  </UIFeature>
                </UIFeatures>
              </Tab>
            </Dialog>
            <PrinterMemoryManage PrinterMemoryManageId="NONE"/>
            <PAGEPROTECTS NumPageProtect="0" fPageProtect="FALSE"/>
            <RESOLUTIONS NumResolution="1"/>
            <TONERSAVES NumTonerSave="0" fTonerSave="FALSE"/>
            <SMOOTHINGMODES NumSmoothingMode="0" fSmoothingMode="FALSE"/>
            <DITHERSMOOTHINGS NumDitherSmoothing="0" fDitherSmoothing="FALSE"/>
            <DITHERS/>
            <UIConstraints/>
          </UserInterface>
          <PaperMedia>
            <PAPERS NumPaper="11">
              <!-- ................................................................. -->
              <!-- DefaultPaper                                                      -->
              <!-- ISSUE: Assume DefaultPaper is also DefaultImageableArea: Letter   -->
              <!--        Assume DefaultPaper is also DefaultPageRegion: Letter      -->
              <!--        Assume DefaultPaper is also DefaultPageSize: Letter        -->
              <!--        Assume DefaultPaper is also DefaultPaperDimension          -->
              <!-- ................................................................. -->
              <DefaultPaper>
                <DPLocale LocaleId="en_US">
                  <DPS DefaultPaperSize="DMPAPER_LETTER"/>
                </DPLocale>
                <DPLocale LocaleId="da_DK">
                  <DPS DefaultPaperSize="DMPAPER_A4"/>
                </DPLocale>
                <DPLocale LocaleId="en_GB">
                  <DPS DefaultPaperSize="DMPAPER_A4"/>
                  <DPS DefaultPaperSize="DMPAPER_LETTER"/>
                </DPLocale>
                <DPCustomLocale CustomLocaleId="en_UK">
                  <DPS DefaultPaperSize="DMPAPER_A4"/>
                </DPCustomLocale>
              </DefaultPaper>
              <Paper dmpapersize="DMPAPER_LETTER">Letter
                            <Paper.Area>
                  <!--
                                ISSUE: *ImageableArea is 12.00 12.12 599.88 779.90 
                                       *PageRegion Letter: "612 792"
                                       *PageSize Letter: "612 792"
                                       *PaperDimension: "612 792"
                                       Units are in 1/72" not in UPDF virtual units.
                                       What is ptSizeMm10?
                            -->
                  <Paper.Area.ptAreaPixel x="612" y="792"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="599.88" bottom="779.90"/>
                  <Paper.Area.ptSizeMm10 x="2100" y="2970"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_A4">A4
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="595" y="842"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="583.08" bottom="829.68"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_LEGAL">Legal
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="612" y="1008"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="599.88" bottom="995.90"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_EXECUTIVE">Executive
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="522" y="756"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="509.88" bottom="743.90"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_A5">A5
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="420" y="595"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="407.40" bottom="583.10"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_B5">B5 (JIS)
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="516" y="729"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="503.88" bottom="715.92"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_ENV_B5">Envelope B5
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="499" y="709"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="486.60" bottom="696.38"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_ENV_10">Envelope #10
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="297" y="684"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="284.76" bottom="671.90"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_ENV_C5">Envelope C5
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="459" y="649"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="447.00" bottom="636.96"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_ENV_DL">Envelope DL
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="312" y="624"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="299.64" bottom="611.42"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
              <Paper dmpapersize="DMPAPER_ENV_MONARCH">Envelope Monarch
                            <Paper.Area>
                  <Paper.Area.ptAreaPixel x="279" y="540"/>
                  <Paper.Area.rcMarginPixel left="12.00" top="12.12" right="266.76" bottom="527.90"/>
                  <Paper.Area.ptSizeMm10 x="1111" y="1111"/>
                </Paper.Area>
              </Paper>
            </PAPERS>
            <!-- ............................................................. -->
            <!-- User Define Paper Info                                        -->
            <!-- ............................................................. -->
            <UDPINFOS fUDPInfo="FALSE" NumUDPInfo="0"/>
            <!-- ............................................................. -->
            <!-- Media should be a group in the ui or a feature in the ui      -->
            <!-- PPD uses an OpenUI                                            -->
            <!-- ............................................................. -->
            <MEDIAS fMedia="TRUE" NumMedia="3">
              <Media MediaId="Plain">Plain Paper</Media>
              <Media MediaId="Transparency">Transparency</Media>
              <Media MediaId="Labels">Labels</Media>
            </MEDIAS>
          </PaperMedia>
          <PaperHandling>
            <PAPERSOURCES NumPaperSource="2">
              <DefaultPaperSource PAPERSOURCESDefault="DMBIN_CASSETTE2"/>
              <PaperSource dmdefaultsource="FALSE"/>
              <PaperSource dmdefaultsource="FALSE"/>
            </PAPERSOURCES>
            <PAPERDESTINATIONS NumPaperDestination="0"/>
          </PaperHandling>
          <FINISHINGS tFinishings="DISABLE">
            <Duplex tDuplex="ON"/>
            <Booklet tBooklet="OFF"/>
            <CenterFoldAndStaple/>
            <ReverseOrder tReverseOrder="DISABLE"/>
            <JobOffset tJobOffset="DISABLE"/>
            <Collate tCollate="DISABLE"/>
            <Group tGroup="DISABLE"/>
            <MailBox tMailBox="DISABLE"/>
            <Staple tStaple="DISABLE"/>
            <FOLDS NumFold="0" tFold="DISABLE"/>
            <HolePunch tHolePunch="DISABLE"/>
          </FINISHINGS>
          <Colors>
            <ColorProcessing>
              <COLORSPACES fColorSpace="TRUE" NumColorSpace="1">
                <ColorSpace ColorSpaceId="Gray"/>
              </COLORSPACES>
            </ColorProcessing>
            <PIXELDEPTHS NumPixelDepth="0" fPixelDepth="FALSE"/>
          </Colors>
          <EXPUNITS/>
        </Global>
      </Features>
      <Constraints>
        <Constraint>
          <Condition Feature="MediaSize">
            <ConditionSetting Relation="E" Value="A3"/>
            <Condition Feature="InputTray">
              <ConditionSetting Relation="E" Value="Tray2"/>
            </Condition>
          </Condition>
          <ActionFilter/>
        </Constraint>
      </Constraints>
    </PrinterCap>
  </DeviceCap.Features>
</DeviceCap>
