Upravit

Sdílet prostřednictvím


MXDW Configuration Settings

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>

XML Paper Specification

Print Schema Specification

Print Schema

XPS Specification and License Downloads