Convert OpenOffice to PDF and encrypt PDF by command line

Only three steps are enough when you want to convert the document of OpenOffice to PDF file and encrypt PDF by doc2pdf.exe command line application. One obvious advantage of PDF document is that it can be encrypted to make your contents more safer. When being encrypted, the PDF document may can not be copied, printed, modified, etc. So it is necessary to encrypt the PDF document when creating it.

You can download doc2pdf.exe for free trial at https://www.verypdf.com/artprint/docprint_pro_setup.exe and you should install it on your computer. Then you will be able to see the executable file in installation directory. To call doc2pdf.exe, you need to open MS-DOS interface.

In fact, doc2pdf.exe is the command line application in Document Converter. You can use any one of the three applications of Document Converter to come to different requirements. You can use the command line application to develop software, use the GUI application to make batch conversion, use the virtual printer application to save paper and ink.

Please see the steps for converting document of OpenOffice to PDF and encrypt PDF in the following contents.

Just open MS-DOS interface at first. You can click “Start” to open start menu and click “Run” to open “Run” dialog box in which you can input “cmd” in “Open” combo box and click “OK” button. To quickly open “Run” dialog box, you can also use the hot key “Window”+ “R”.

Then please input the command line into MS-DOS interface. In the command line, you need to input four necessary elements: called program, parameter for encrypting PDF document, source file and target file like the following one:

doc2pdf -s permission=3900 -i C:\test-file.odt -o C:\test-file.pdf

For converting the document of OpenOffice to PDF, please see the specific command line below:

"C:\Program Files\docPrint Pro v5.0\doc2pd.exe" doc2pdf -s permission=3900 -i C:\test-file.odt -o C:\test-file.pdf

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

-s permission=3900 is the parameter for encrypting the output PDF document, which means deny anything.

-i C:\test-file.odt stands for the path of source file.

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

Then you need to click “Enter” button to run the conversion from the document of OpenOffice to PDF.

There are also some other kinds of commands for encrypting PDF documents as follows:

-s permission=0    : Encrypt the file only
-s permission=3900 : Deny anything
-s permission=4    : Deny printing
-s permission=8    : Deny modification of contents
-s permission=16   : Deny copying of contents
-s permission=32   : No commenting

-s permission=256  : Deny FillInFormFields
-s permission=512  : Deny ExtractObj
-s permission=1024 : Deny Assemble
-s permission=2048 : Disable high res. printing

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!