Convert documents of ODT to PDF and set PDF password by command line

To protect the contents of PDF document, people often set PDF password when creating a new PDF document, no matter the open password or owner password. When you convert the document of ODT to PDF, you can set PDF password by inputting the related commands. The tool you should use is the command line application doc2pdf.exe.

Actually, doc2pdf.exe is the application of Document Converter which is able to convert any printable documents to many kinds of images. There are three applications in Document Converter and you can use the any one of them to realize your different requirements.

If you need to make batch conversion, you can use the GUI application for it is good at converting documents to images in batch and you can make the conversion in a friendly user interface. If you are a software developer, you can use the command line application to develop your own applications. If you need to print documents and save paper and ink, you can use the virtual printer application.

Please download the command line application doc2pdf.exe at https://www.verypdf.com/artprint/docprint_pro_setup.exe if you want to convert document of ODT to PDF and set PDF password for the command line application will do you a great favor.

To use the command line application, you should open MS-DOS interface at first. Just use the hot key “Window”+ “R” combination on the keyboard to open “Run” dialog box and input “cmd” in “Open” combo box of “Run” dialog box. Then please click on “OK” button. You can also click “Start”—“Run” to open “Run” dialog box.

To set PDF password when converting ODT to PDF, please input the commands into MS-DOS interface. You can use the command line which is made up of called program, parameter for setting PDF password, source file and target file. But you should remember to use the path of each file in the command line. Please see the following example.

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -s openpwd=123 -s ownerpwd=456 –i "C:\Documents and Settings\admin\Desktop\demo\source.odt" -o C:\target.pdf

In the command line,

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

-s openpwd=123 stands for that you set the open password for output PDF document as “123”.

-s ownerpwd=456 means that the owner password of the PDF document is been set as “456”.

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

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

Just click “Enter” button to end the conversion from ODT to PDF and you can browse the target file when the conversion is over. If you want to learn more information about Document Converter, please visit its homepage by clicking here.

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!