Convert OpenOffice to image and set resolution by command line

Please don’t consider the task of converting document of OpenOffice to image as a difficult one. If you have the application doc2pdf.exe as your helper, you can also set resolution freely to the target in the conversion process. doc2pdf.exe is a command line application and you can use it to convert any printable documents to various image formats and set parameters to the target file such as the color depth, rotation, resolution, page margin, etc.

To use doc2pdf.exe smoothly, you can download the free trial version of it by clicking the following link: http://www.verypdf.com/artprint/docprint_pro_setup.exe. After setting up it on your computer, you will be able to see an executable file named as doc2pdf.exe appear in the installation package and then it is callable. If you are a software developer, you can also call it in your application to realize the related functions.

In the conversion from the document of OpenOffice to image, there are three steps you should do. The first steps is to open MS-DOS interface for doc2pdf.exe is a MS-DOS oriented application. The second step is to input the command line in MS-DOS interface and the last step is to run the conversion. Please see the contents below and you’d better download the application and follow the steps one by one.

1. Open MS-DOS interface

Please click “Start”—“Run” to open “Run” dialog box and then please input “cmd” in “Open” combo box. You need to click “OK” button to finish this operation. To open the same “Run” dialog box, you can also use the hot key “Window”+ “R” combination on your keyboard.

2. Input the command line

In MS-DOS interface, you need to input the command line which is made up with called program, source file, target file and resolution parameter for converting the document of OpenOffice to image. To write the right command line, you can refer to the following one:

doc2pdf -i C:\file-in.odt -o C:\file-out.jpg -r 200

The following example is the application of the basic template above and we can analyze it specially.

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i "C:\Documents and Settings\admin\Desktop\demo\file-in.odt" -o C:\file-out.jpg -r 200

Where

(1) "C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" is the path of called program doc2pdf.exe. If you don’t want to input the long file path into the command line window, you can directly drag the file you need into the command line window.

(2) -i "C:\Documents and Settings\admin\Desktop\demo\file-in.odt" is the path of source file. We take ODT document as the example of OpenOffice document.

(3) -o C:\file-out.jpg is the path of target file and we take JPG image format as the output image format.

(4) -r 200 is the resolution of target file, which means the X and Y resolution of the target file have been set as 200 DPI. If you want to differ from X and Y resolution, you can input –r 300x200 which means X resolution has been set as 300 DPI and Y resolution has been set as 200 DPI.

3. Run the conversion

Please hit the “Enter” button on the keyboard to run the conversion from the document of OpenOffice to image and you can find the target file in the location you have set in command line after the conversion.

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!