Convert documents of ODT to XPS by command line

This article will introduce the specific details about converting the document of odt to xps. XPS format file was designed as a replacement for the EMF format. It is similar to PDF. If you want to create XPS files, please select the "Microsoft XPS Document Writer" as the printer when printing a document. The tool to be used in this conversion is the internal application of Document Converter—the command line application doc2pdf.exe.

Document Converter is a software product that dynamically converts MS Office 97/2000/XP/2003/2007, WordPerfect, AutoCAD DWG, PostScript, Adobe Acrobat PDF and many other document types to Adobe Acrobat PDF, PostScript, EPS, XPS, PCL, JPEG, TIFF, PNG, PCX, EMF, WMF, GIF, TGA, PIC, PCD and BMP formats. It works in command line application, GUI application and virtual printer application.

To use the command line application doc2pdf.exe, you should download it at Then please set up it on your computer. The executable file doc2pf.exe will be usable after the installation.

You can use the hot key “Window”+ “R” combination on the keyboard to open “Run” dialog box in which you should input “cmd” in “Open” combo box and click “OK” button for opening MS-DOS interface at the beginning of the conversion from odt to xps. You can also click “Start”—“Run” to open “Run” dialog box.

Then please input the command line into MS-DOS interface. You just remember that there are three parts in the command line: called program, source file and target file and you should use the path of each file when you input the command line. Please see the example command line below:

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" –i "C:\Documents and Settings\admin\Desktop\demo\openoffice\file-a.odt" –o C:\file-a.xps


(1) "C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" is the path of doc2pf.exe. If the file path is too long to you for inputting, you can copy the path and paste it in MS-DOS interface. The easiest way is to drag the file into MS-DOS interface.

(2) –i "C:\Documents and Settings\admin\Desktop\demo\openoffice\file-a.odt" is the path of source file and you just need to drag the file from its folder to the command line window.

(3) –o C:\file-a.xps stands for the path of target file and you should set this path yourself.

In the end of the conversion from odt to xps, you should click “Enter” button to run the conversion and you will get the target file in a short while. The conversion speed depends on the file size and the computer configuration.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!