Convert documents of ODT to PDF and set page size by command line

There are only three steps in the conversion from the document of ODT to PDF and set page size in the conversion process at the same time if you use the command line application doc2pdf.exe as your tool. In this article, you will see the specific conversion steps and you’d better follow the steps yourself one by one for you will get more useful information.

The command line application doc2pdf.exe is a good helper for those who want to develop their own software because doc2pdf.exe is a callable application. It is also a professional converter which can convert any printable documents to various kinds of image formats. It is the internal application of Document Converter.

Document Converter is a software product that dynamically converts MS Office 97/2000/XP/2003/2007, WordPerfect, AutoCAD DWG, PostScript, Adobe Acrobat PDF and many other document types to Adobe Acrobat PDF, PostScript, EPS, XPS, PCL, JPEG, TIFF, PNG, PCX, EMF, WMF, GIF, TGA, PIC, PCD and BMP formats. It also works in GUI version and virtual printer version besides the command line version.

To use doc2pdf.exe, you should download the free trial version of it at https://www.verypdf.com/artprint/docprint_pro_setup.exe and set up it on your computer. After the installation, you will see the executable file appear in the installation folder and then it is available.

Opening MS-DOS prompt window is the first step to convert ODT to PDF and set page size for the PDF document. Two methods are offered and you can choose any one of them. The first one is to click “Start”—“Run” to open “Run” dialog box and you need to input “cmd” in “Open” combo box. Then click “OK” button. The other one is to use the hot key “Window”+ “R” to open “Run” dialog box.

Inputting the command line into MS-DOS prompt window is the second step in the conversion. Please input the command line which contains called program, setting page size parameter, source file and target in the command line window. If you don’t know how to write the command line, please refer to the following one.

doc2pdf –f –i D:\FILEA.odt –o D:\FILEB.pdf

For better understanding the one above, you just need to see the application of it below.

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" –f 8 –i "D:\My Documents\FILEA.odt” –o “"D:\My Documents\FILEA.pdf”

Where

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" is the path of doc2pdf.exe. You don’t need to input the path word by word into the window. You can just drag the file into it and the file will turn to file path itself.

–f 8 specifies standard paper size.

To set other kinds of page sizes, you can also use the following command:

-f "11x17in": set 11x17inch to printer
-f "215.9x279.4mm" : set 215.9x279.4mm to printer
-f "612x792pt" : set 612x792pt to printer

–i "D:\My Documents\FILEA.odt” is the path of source file and you can also drag the source file into command line prompt window to get its path.

–o “"D:\My Documents\FILEA.pdf” is the path of the target file and it is the one you need to set yourself.

At last, please click “Enter” button to finish the conversion from the document of ODT to PDF and you can browse the target PDF 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)

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!