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

If you want to protect the contents in your created PDF document, you can set PDF password (open password or owner password). You are allowed to convert the document of rtf to pdf and set PDF password by using the command line application of Document Converter which is a professional document converter.

The command line application is able to convert any printable documents to image formats. It is also a good helper to software developers because they can redistribute or embed this application to their own developed applications. With the command line application, you can also set many kinds of parameters for the target file in the conversion.

There are also two other internal applications in Document Converter: GUI application and virtual printer application. You can use the GUI application to make batch conversion and use the virtual printer application to save paper and ink by scaling page size or combining several pages on one single sheet.

For using the command line application, you can download the free trial version of it at http://www.verypdf.com/artprint/docprint_pro_setup.exe and please set up it on your computer. Then you will see the called program of the conversion from rtf to pdf named as doc2jpdf.exe which is the executable file in installation folder.

In the first step, you should open MS-DOS interface for inputting the command line in it. Please click “Start”—“Run” to open “Run” dialog box in which you should type “cmd” in “Open” combo box and click “OK” button. The hot key “Window”+ “R” will also be able to open “Run” dialog box.

In the second step, please input the command line into MS-DOS interface which includes called program doc2pdf.exe, parameter for setting PDF password, source file and target file. There is a standard command line template for your reference.

doc2pdf –s openpwd=123 –s ownerpwd=456 -s keylen=0 -s permission=3900 –i C:\input.rtf –o C:\output.pdf

Where

doc2pdf stands for the called program.

–s openpwd=123 –s ownerpwd=456 are for setting open password and owner password for output file. You can use any one of them alone.

-s keylen=0 is for setting key length as 40 bit RC4 encryption. You can also use the number 1 or 2 to set the key length as 128 bit RC4 encryption.

-s permission=3900 is for encrypting the PDF document for being operated.

–i C:\input.rtf stands for the path of source file.

–o C:\output.pdf stands for the name of target file.

Then please click “Enter” button on the keyboard to run the conversion from rtf to pdf. If you want to learn more information about the commands in the conversion, please click the following link: http://www.verypdf.com/artprint/document-converter/help.htm#cmd. For buying the command line application, please enter the purchasing webpage: http://www.verypdf.com/order_docprintpro.html.

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

This entry was posted in docPrint Pro and tagged , . Bookmark the permalink.

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!