This section describes the document technologies that are supported by Microsoft Windows.
The content in this section is intended for programmers. If you are not interested in programming, you can search for more information about documents.
Microsoft provides several different document technologies to support a variety of document applications. The following table can help you select the best Microsoft document technology for your application.
XPS and OpenXPS
XPS and OpenXPS are supported in Windows 8 and later versions of Windows. See the preceding diagram to determine the correct usage scenario for XPS and OpenXPS. For more information about these document technologies, see Open XML Paper Specification (OpenXPS).
In the case of using OpenXPS with Windows 8 and Windows Server 2012, support is only provided via the XPS Document API
If you need to convert between Microsoft XPS (MSXPS) and OpenXPS, then Microsoft has provided a tool (XPSConverter.exe) that allows you to convert MSXPS-formatted documents to the OpenXPS format and vice versa. The tool is part of the Windows Driver Kit (WDK). To download the WDK, see How to get the WDK.
And for more information about OpenXPS and Windows 8, see OpenXPS Support in Windows.
XPS Document API
The XPS Document API is a native Windows API that supports the XPS OM. The XPS Document API was introduced in Windows 7 and can be used in user-mode programs and XPSDrv printer drivers.
For more information, see the XPS Document API, and XPS Digital Signature API.
*The XPS Document API is also supported in Windows Vista with Service Pack 2 (SP2) with the Platform Update for Windows Vista and Windows Server 2008 with SP2 using the Platform Update for Windows Server 2008. For more information about the Platform Update for Windows Vista or the Platform Update for Windows Server 2008, see Platform Update for Windows Vista
.NET Framework provides XPS document support to user-mode, managed-code programs.
.NET Framework 3.0 is supported on Windows XP with Service Pack 2 (SP2) and later versions of Windows client operating systems, and on Windows Server 2003 with Service Pack 2 (SP2) and later versions of Windows server operating systems.
.NET Framework 3.5 is supported on Windows XP versions of Windows client operating systems, and on Windows Server 2003 and later versions of Windows server operating systems.
Note We recommend the use of .NET Framework for creating XPS documents in client applications only, not in server applications—unless the application exits periodically, as it would if it were a client application.
For more information about document support in .NET Framework, see Windows Presentation Foundation Documents.
To learn about the XPS document options for document applications that are not supported by a Microsoft technology, see the XPS documents: frequently asked questions.
Note To work with XPS documents in a program, use either the native XPS Document API or the .NET Framework; simultaneous use of both in the same program is not supported.
This section describes the native Windows document technologies that are supported by Microsoft Windows.
Provides a trustworthy format for electronic paper.
The XPS Document API that is described in this section gives programs and XPSDrv print drivers access to the content and metadata of an XPS document.
Enables document signing, verification of the signer's identity, and indication of whether an XPS document has changed since it was signed.
The following tools are available to assist you with testing and troubleshooting of XPS document files.
Tests a file's conformity to the XML Paper Specification (XPS) and the Open Packaging Conventions (OPC) Specification.
A command-prompt tool that analyzes XPS document files for compatibility with the XPS 1.0 specification.
A tool that checks the validity of PrintTicket and PrintCapabilities documents.
Build date: 11/16/2013