大网数据广告活动
打印与设备

MXDW Configuration Settings

· 52CE 我爱测

The Microsoft XPS Document Writer (MXDW) enables users to create XPS document files by printing from any Windows application.

The Microsoft XPS Document Writer (MXDW) enables users to create XPS document files by printing from any Windows application. Applications developers can control the following output settings of the MXDW using the PrintTicket and PrintCapabilities parts of the Print Schema.

JobInterleaving

The JobInterleaving setting controls the content interleaving order for the XPS Documents. For information about job interleaving, see the XML Paper Specification. MXDW supports the following two options for this setting:

  • Off - This option disables interleaving so that all data for each content element in the document is contiguous, which improves the efficiency of random access. This option is best for viewing an XPS document.
  • On - This option enables interleaving so that data for each content element is broken up and reordered for more efficient sequential processing. This option is best for web download and printing.

The following example is an example of the PrintCapabilities XML that includes the JobInterleaving setting.

<psf:Feature name="ns0000:JobInterleaving">
   <psf:Property name="psf:SelectionType">
      <psf:Value xsi:type="xsd:QName">psk:PickOne</psf:Value> 
   </psf:Property>
   <psf:Property name="psk:DisplayName">
      <psf:Value xsi:type="xsd:string">Interleaving</psf:Value> 
   </psf:Property>
   <psf:Option name="ns0000:OFF" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
         <psf:Value xsi:type="xsd:string">Off - Best for viewing</psf:Value> 
      </psf:Property>
   </psf:Option>
   <psf:Option name="ns0000:ON" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
         <psf:Value xsi:type="xsd:string">On - Best for the web/printing</psf:Value> 
      </psf:Property>
   </psf:Option>
</psf:Feature>

The PrintTicket XML is similar, except that it specifies a particular option. See the Print Schema for details.

Since JobInterleaving is not one of the Print Schema Public Keywords, you must include a declaration of the namespace (in this case "ns0000" in the PrintCapabilities (or PrintTicket) tag at the beginning of the PrintCapabilities (or PrintTicket) document, as shown in the following example:

<psf:PrintCapabilities 
xmlns:psf="http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework" 
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema"  
version="1" 
xmlns:ns0000=http://schemas.microsoft.com/windows/2006/06/printing/printschemakeywords/microsoftxpsdocumentwriter>

JobImageType

JobImageType controls the output format of embedded bitmap formats. MXDW supports the following four options for this setting:

  • JPEGHigh - This option specifies the JPEG image with a high level of compression. This option produces the smallest file size, but the lowest image quality.
  • JPEGMed - This option specifies the JPEG image with a medium level of compression. This option provides the best balance of file size and image quality.
  • JPEGLow - This option specifies the JPEG image with a low level of compression. This option produces the least reduction in file size and high image quality.
  • PNG - This option specifies the PNG image format with lossless compression. This option produces the largest file size and the highest image quality.

The PrintCapabilities XML of the JobImageType setting appears below:

<psf:Feature name="ns0000:JobImageType">
   <psf:Property name="psf:SelectionType">
      <psf:Value xsi:type="xsd:QName">psk:PickOne</psf:Value> 
   </psf:Property>
   <psf:Property name="psk:DisplayName">
      <psf:Value xsi:type="xsd:string">Images</psf:Value> 
   </psf:Property>
   <psf:Option name="ns0000:JPEGHigh" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
         <psf:Value xsi:type="xsd:string">JPG - Maximum compression</psf:Value> 
      </psf:Property>
   </psf:Option>
   <psf:Option name="ns0000:JPEGMed" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
        <psf:Value xsi:type="xsd:string">JPG - Medium compression</psf:Value> 
      </psf:Property>
   </psf:Option>
   <psf:Option name="ns0000:JPEGLow" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
         <psf:Value xsi:type="xsd:string">JPG - Minimum compression</psf:Value> 
      </psf:Property>
   </psf:Option>
   <psf:Option name="ns0000:PNG" constrained="psk:None">
      <psf:Property name="psk:DisplayName">
         <psf:Value xsi:type="xsd:string">PNG - Lossless compression</psf:Value> 
      </psf:Property>
   </psf:Option>
</psf:Feature>

The PrintTicket XML is similar, except that it specifies a particular option. See the Print Schema for details.

Since JobImageType is not one of the Print Schema Public Keywords, you must include a declaration of the namespace (in this case "ns0000" in the PrintCapabilities (or PrintTicket) tag at the beginning of the PrintCapabilities (or PrintTicket) document, as shown in the following example:

<psf:PrintTicket 
xmlns:psf="http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework" 
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema"  
version="1" 
xmlns:ns0000=http://schemas.microsoft.com/windows/2006/06/printing/printschemakeywords/microsoftxpsdocumentwriter>

Related topics

XML Paper Specification

Print Schema Specification

Print Schema

XPS Specification and License Downloads

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。