Convert OpenOffice to XPS by command line

It will be easy to convert the document of OpenOffice to xps with the command line application of Document Converter—doc2pdf.exe. If you have never heard of Document Converter, this article will introduce it to you.

Document Converter is an expert document converter which is able to convert any printable documents to various image formats. You can use it to meet your different needs for there are three different internal applications which are designed for different purposes.

The command line application often serves for software developers. The GUI application is good at batch conversion. The virtual printer application can be used to scale page size and combine several pages on one sheet for saving paper and ink. So if you need, you can choose any one of them.

To use the command line application doc2pdf.exe, you can download the trial version at and set up it on your computer. Then the application will be usable.

For doc2pdf.exe is a kind of MS-DOS oriented application, you need to open the MS-DOS interface before you convert the document of OpenOffice to xps.

You can click “Start”—“Run” to open “Run” dialog box in which you need to input “cmd” in “Open” combo box and click “OK” button to open MS-DOS interface. To use the quick way to open “Run” dialog box, you can use the hot key “Window”+ “R”.

Then you need to input the commands into MS-DOS interface. You need to right your command line as the following one shows:

doc2pdf -i C:\come.odt -o C:\go.xps

Here we take ODT document as the example of OpenOffice document. In the template above, you can see there are three parts in the command line—the called program doc2pdf.exe, the source file ODT document and the target file XPS format file.

But you need to input the file path of each parameter in your command line. Please see the specific example below.

“C:\Program Files\docPrint Pro v5.0\doc2pdf.exe” -i “C:\Documents and Settings\admin\come.odt” -o C:\test\go.emf

In the command line,

“C:\Program Files\docPrint Pro v5.0\doc2pdf.exe” stands for the path of the command line application doc2pdf.exe. For the convenience of your work, you can drag it from its folder into MS-DOS interface.

-i “C:\Documents and Settings\admin\come.odt” stands for the path of source file.

-o C:\test\go.emf stands for the path of the target file. This parameter is set by yourself according to your needs, including the location and the name of the target file.

Then please click “Enter” button on the keyboard to run the conversion from the document of OpenOffice to xps. You will get your target file several seconds later and you should find the target file in the location you have just set in the command line.

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!