Convert HTML to PDF and set PDF password

There are at least two kinds of PDF passwords: owner passwords and open passwords. Setting PDF owner passwords prevents PDF files from being printed, edited, changed, or copied by anyone without a user password. Setting open PDF passwords permits those who have PDF open passwords to read PDF files.

When you convert HTML to PDF and set PDF password, you should try VeryPDF HTML Converter, which was designed to convert HTML to PDF. This application provides two versions: the GUI (graphic user interface) version and the CLI (command line interface) version. Both are available at the product webpage of VeryPDF HTML Converter.

VeryPDF HTML Converter Command Line, the CLI version, can help you convert HTML to PDF and set PDF password in an extremely quicke way, especially when convert files in batch. This article will take open password as an example to show you how to convert HTML to PDF and set PDF password via command line.

1. Download VeryPDF HTML Converter Command Line.

Click VeryPDF HTML Converter Command Line to download this application and install it on your computer.

2. Open the command prompt interface

Running command line is often the quickest way to launch programs or to open folders and files. When you click Start in Windows XP, you will see the Start menu as the illustration below. Then, you should click Run. The Run dialog box will pop out, and please type “cmd” and press OK in the Run dialog box.

click run

The following is the Run dialog box:

type cmd

3. To type a command line

Depending one basic usage of VeryPDF HTML Converter Command Line as illustrated below,

htmltools [-openpwd<string>][-keylen <int>] <HTML file> [<PDF file>]

the command line you are going to type should like the following example:

d:\htmltools\htmltools.exe -openpwd "123" -keylen 2 c:\in.html d:\out.pdf

  • d:\htmltools\htmltools.exe is the directory of the main executable file named htmltools.
  • -openpwd "123" is the option that can be used to specify 123 as the open password. To set owner passwords, you can use the option [-ownerpwd<string>][-
  • –keylen 2 is the option that sets key length to be 128 bit RC4 encryption (Acrobat 6 or higher). If the number following –keylen is 1, the key length should be 128 bit RC4 encryption (Acrobat 5 or higher).If the number is 0, the key length would be 40 bit RC4 encryption (Acrobat 3 or higher).
  • c:\in.html is the path of the input file.
  • d:\out.pdf is the path of the output file.

If you want to convert files in batch, you can use the wildcard *. For instance, if you use c:\*.html to replace c:\in.html in the command line, all the HTML files on disk C will be input files. Of course, you should also set the output file directory as d:\*.pdf. After type a proper command line, please press Enter on the keyboard.

check the result after you covnert html to pdf and set pdf password

After the conversion is done, when you open the result PDF file, a dialog box will pop out, requiring you to type the open password. To buy VeryPDF HTML Converter Command Line, please click Purchase.

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 HTML Converter (htmltools) 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!