If you want to convert the document offormat and to the target file, you can use the command line application doc2pdf.exe which can be used to convert any printable documents to image formats and set different parameters to target file.
In face, doc2pdf.exe is an internal application of Document Converter which is a professional document converter. Document Converter owns three kinds of internal applications and they are for different purposes. If you would like to make batch conversion, you can use the GUI application as your helper for it is good at this work. If you want to develop software basing on Document Converter, you can use the command line application. The virtual printer application can be used to scale page size and combine several pages on one sheet.
To use the command line application doc2pdf.exe, you should download it at http://www.verypdf.com/artprint/docprint_pro_setup.exe and you need to install it on your computer. The executable file will come out after the installation in the installation package.
Please use doc2pdf.exe to convert the document offormat and to the output image. Here we take ODT document and BMP image format as the examples of input and output file.
You need to open MS-DOS prompt window for you need to input the command line for converting OpenOffice to image in it. There are two ways given in this article and you can choose any one of them. Of course you can also use your own way to open MS-DOS interface. The first way is to click “Start”—“Run” to open “Run” dialog box in which you should input “cmd” in “Open” combo box and click “OK” button. The second way is to use the hot key “Window”+ “R” to open “Run” dialog box.
Then please input the command line into the prompt window. The command line contains four necessary parts—called program, source file, target file and color depth parameter. Please see the following basic command line.
doc2pdf -i C:\input.odt -o C:\output.bmp -b 1
For your better understanding the basic one, we can apply it in the command line window and please see the specific example of it.
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i "C:\Documents and Settings\admin\Desktop\demo\openoffice\input.odt" -o C:\output.bmp -b 1
"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" stands for the path of called program—doc2pdfe.exe.
-i "C:\Documents and Settings\admin\Desktop\demo\openoffice\input.odt" stands for the path of source file and you need to add “-i” which means “input” before the path.
-o C:\output.bmp stands for the target file and please remember to add “-o” before the path.
-b 1 specifies the color depth for the target file as one bit, which means the target file will be a black and white image. You can also set the value as 8 and 24.
Then please click “Enter” button on your keyboard to run the conversion from the document of OpenOffice to image and you can get the target file in the specified location several seconds later.