Convert OpenOffice to PDF and combine PDF by command line

It is not very hard to convert the document of OpenOffice to PDF document and you can also combine PDF documents to an entire one in the conversion process just by inputting commands into MS-DOS prompt window when you using the command line application. The tool you should use in this conversion is doc2pdf.exe which is the internal application of Document Converter.

The command line application doc2pdf.exe supports to convert any printable documents to various image formats within three steps and you can use this application to set parameters for the target file. Document Converter also has two other internal applications—GUI application and virtual printer application. You can use the GUI application to make batch conversion for it has a easy-to-use interface which can be mastered easily. You can use the virtual printer application to scale page size or combine several pages on one sheet.

To use the command line application doc2pdf.exe, you need to download it at http://www.verypdf.com/artprint/docprint_pro_setup.exe and then please set up it on your computer. You will see an executable file named as doc2pdf.exe appear in the installation folder after that.

At the beginning of the conversion from the document of OpenOffice to PDF, please open MS-DOS prompt window for inputting the command line. You can click “Start” on your desktop to open the start menu and then click “Run” to open “Run” dialog box. Then please input “cmd” in “Open” combo box of “Run” dialog box and click “OK” button. The hot key “Window”+ “R” can also help you open the prompt window.

Then you need to input the command line into MS-DOS prompt window. The command line includes called program which is the command line application doc2pdf.exe, parameters for combining PDF documents, the source file which you want to convert and the target file which you want to get. Please see the following template:

doc2pdf -p 1 –i C:\FILE.odt –o C:\FILE.pdf

In this command line template, the parameter “-p 1” means inserting new PDF document before first page if PDF file exists. You can also use the command “-p 2” to append the new PDF document to last page if PDF file exists.

Please see the following command line example.

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -p 1 –i C:\FILE.odt –o C:\FILE.pdf

Where

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" stands for the path of doc2pdf.exe.

-p 1 stands for the parameter for combining PDF documents.

–i C:\FILE.odt stands for the path of source file. Please don’t forget to add “-i” before the path.

–o C:\FILE.pdf stands for the path of target file.

After inputting the commands into MS-DOS prompt window, you need to click “Enter” button on the keyboard to run the conversion from the document of OpenOffice to PDF document. Several seconds later, you will get the target file. 

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

Related Posts

This entry was posted in docPrint Pro and tagged , . Bookmark the permalink.

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!