PageDeviceColorSpaceUsage

本主题不是最新的。 有关最新信息,请参阅 打印架构规范

此参数与 PageDeviceColorSpaceProfileURI 参数结合使用,定义设备颜色空间中显示的元素的呈现行为。

元素信息

名字 价值
元素类型
特征
范围前缀

笔记
这仅适用于 XPS 文档,不应在任意 PrintTicket 中使用。
符合 XPS 的使用者必须强制实施对资源(如打印功能文档或 PrintTicket 中图像或颜色配置文件)的 URI 引用必须引用包含生成的 PrintTicket 的同一 XPS 文档包中的部件名称(包根的相对 URI)。 合规的 XPS 使用者不得使用不符合部件名称语法的 URI。 这些设置特定于 XPS。
不能将打印功能文档或 PrintTicket 中引用的 URI 解析为 URL。 这是不安全的,因为它们可能无法按预期解决,并可能给驱动程序和作系统带来有害的安全风险。

结构内容

此元素的 XML 结构为:

<psf:Feature name="psk:PageDeviceColorSpaceUsage">
  <psf:Property name="psf:SelectionType">
    <psf:Value xsi:type="xs:string">psk:PickOne</psf:Value>
  </psf:Property>
  <psf:Option name="psk:_OptionName_">
    <psf:Property name="psf:IdentityOption">
      <psf:Value xsi:type="xs:string">_IdentityOptionValue_</psf:Value>
    </psf:Property>
  </psf:Option>
</psf:Feature>

结构变量

下表概述了 XML 结构中定义的变量的特征。

名字 数据类型 单位 支持的值 总结
_OptionName_
字符串
字符
XML 中由命名空间定义的有效完全限定名称。 如果未指定命名空间,则假定默认命名空间。
选项的名称。
_IdentityOptionValue_
字符串
n/a
True、False。
定义一个选项,当所选选项将禁用此功能时。

可扩展标记语言 (XML) 内容

公共打印架构关键字在 https://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords 命名空间中定义。 此关键字的公共可扩展标记语言 (XML) 内容定义如下:

<psf:Feature name="psk:PageDeviceColorSpaceUsage">
  <psf:Property name="SelectionType">
    <psf:Value xsi:type="xs:string">PickOne</psf:Value>
  </psf:Property>
  <!-- If the device determines that the profile specified by the PageDeviceColorSpaceProfileURI parameter can be used as a device color space profile, all elements using the same profile are treated as already being specified in device color space. All other elements MUST use the profile specified for that element.
If the profile cannot be used as a device color space profile, elements using the profile MUST be color managed like any other element using the color profile. -->
  <psf:Option name="psk:MatchToDefault" />
  <!-- If the profile specified by the PageDeviceColorSpaceProfileURI parameter has a number of channels matching the number of primaries of the device, it SHOULD be used instead of the devices internal color management for all elements. Elements using this profile are assumed to be in device color space and will not be color managed further. -->
  <psf:Option name="psk:OverrideDeviceDefault" />
</psf:Feature>

打印架构规范