Set page orientation and convert OpenOffice to PDF by command line

When you print documents, you may need to set page orientation as “Portrait” or “Landscape” mode to get a better printing effect. In the conversion from the document of OpenOffice to PDF document, you can also set page orientation for the output PDF document if you choose doc2pdf.exe as your helper and you just need three steps to finish the whole conversion process.

The application doc2pdf.exe is one application of Document Converter which is a professional document converter designed for converting any printable documents to various image formats. There are three internal applications in Document Converter, they are GUI application, command line application and virtual printer application.

When you want to convert many printable documents to images in batch, you can choose the GUI application for it is good at the work of batch conversion. If you are a software developer and you want to implement the function of converting any printable documents to images in your own application or you are familiar with MS-DOS interface, you can use the command line application as your helper. If you want to print documents and save paper and ink, please use the virtual printer application.

The free download website of doc2pdf.exe is https://www.verypdf.com/artprint/docprint_pro_setup.exe. You can download a free trial version. Please see the following contents shown for converting the document of OpenOffice to PDF file and setting page orientation.

Opening the MS-DOS prompt window is the first step. Please click “Start”—“Run” to open “Run” dialog box in which you should input “cmd” in “Open” combo box and click “OK” button. You can also press  and hold “Window” button and press “R” button on the keyboard to open “Run” dialog box.

Inputting the command line into MS-DOS prompt window is the second step. Please write the command line like the following one which is a command line sample.

doc2pdf –o 1 –i C:\docu.odt –o C:\docu.pdf

In this sample, doc2pdf stands for the called program, –o 1 stands for the parameter for setting page orientation, –i C:\docu.odt stands for source file and –o C:\docu.pdf stands for target file.

The following command line example is the specific application to the sample and you can see the analysis about the command line below.

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" –o 1 –i "C:\Documents and Settings\admin\Desktop\demo\openoffice\docu.odt" –o C:\docu.pdf

In the command line,

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" is the path of doc2pdf.exe and you can drag the file you need into MS-DOS prompt window for getting its path.

–o 1 sets the page orientation as portrait mode. You can also use the command “ -o 2” to set page orientation as landscape mode.

–i "C:\Documents and Settings\admin\Desktop\demo\openoffice\docu.odt" stands for the path of source file.

–o C:\docu.pdf stands for the path of target file, which must be set by yourself.

Then please hit “Enter” button on the keyboard to run the conversion from the document of OpenOffice to PDF document. The conversion will not last too much time and you can browse your target file in the specified location several second later.

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

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!