This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
XPS Converter (XpsConverter.exe) is a command-line tool for converting XML Paper Specification (XPS) documents from Microsoft XPS (MSXPS) to standardized OpenXPS, and from OpenXPS to Microsoft XPS (MSXPS). This tool is intended to aide in the conversion of XPS test collateral from one XPS format to the other.
| Where can I download XpsConverter? |
|---|
XpsConverter.exe is included in the Microsoft Windows Driver Kit (WDK). For information about getting the WDK, seeWindows Driver Kit Downloads. |
The XpsConverter is not intended to be used in any other capacity than as a stand-alone tool. It is not supported for any other use. It may not be used in part or whole in any application or driver, and de-compiling or modifying the tool is strictly prohibited. Microsoft retains all rights and holds copyright on XpsConverter.exe and all its supporting documentation.
To convert XPS documents
Open a Visual Studio Command Prompt window.
Run theXpsConverter.exe tool and specify the names of the source and destination files or folders and specify the format to convert the file(s) to.
For example, the following command converts the MSXPS file called text.xps to OpenXPS format.
XpsConverter /OpenXPS /InputFile=Text.xps /OutputFile=Test.oxpsWhen you install the WDK, the XpsConverter.exe file is placed in the %programfiles%\Windows Kits\8.1\bin\<arch> or %programfiles(86)%\Windows Kits\8.1\bin\<arch> directories.
XpsConverter <format> [/InputFile=<inputfile> /OutputFile=<outputfile> | /InputFolder=<inputfolder> /OutputFolder=<outputfolder>] [-logger:<LoggerType>] [-logfile:<LogFile> ] [ -device:<DeviceString> ] [ /? ]| Parameter | Description |
|---|---|
<format> | Specifies the format to convert the source file(s) to. The<format> is required. Specify/OpenXPS to convert the document(s) to OpenXPS or/XPS to convert the document(s) to Microsoft XPS (MSXPS). |
/InputFile=<inputfile>/OutputFile=<outputfile> | Use this option to convert<inputfile> and save it to<outputfile>. The<inputfile> must have the .xps or .oxps file name extension. |
/InputFolder=<inputfolder>/OutputFolder=<outputfolder> | Use this option to convert all the files in<inputfolder> and save them to the<outputfolder>. Files in<inputfolder> must have .xps or .oxps file name extensions. Note Converting a folder is a recursive operation. The tool converts all files in the specified s<inputfolder> and all subdirectories. |
-logger:<LoggerType> | Optional.<LoggerType> indicates the type of log to generate (File,Console orWTT) to use during the conversion. The default logger isConsole |
-logfile:<LogFile> | Optional. Specifies the<LogFile> to use when the-logger option isFILE. If you do not specify a<LogFile>, the default log file is XpsConverter.txt. |
-device:<DeviceString> | Optional. Specifies the<DeviceString> to use when the-logger option isWTT. The default device is$LogFile:file=XpsConverter.wtl,WriteMode=append. |
You can use theisXPS.exe (isXPS Conformance Tool) to tests a file's conformity to the XPS and the Open Packaging Conventions (OPC) specifications.
XpsConverter /OpenXPS /InputFile=Text.xps /OutputFile=Test.oxpsXpsConverter /XPS /InputFolder=c:\OpenXPS /OutputFolder=c:\MSXPSXpsConverter /OpenXPS /InputFile=MyDoc.xps /OutputFile=ConvertedMyDoc.oxps logger:file logfile:MyLog.txtisXPS.exe (isXPS Conformance Tool)
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?