Convert MHTML to PDF and encrypt PDF

You know, using command line is the quickest way to open files and folders, and launch applications. If you want to take the least steps to convert MHTML to PDF and encrypt PDF, your best choice is to download a professional command line application which can convert MHTML to PDF and support encryption. VeryPDF HTML Tool Command Line is such a command line application which can help you perfectly solve your problem.

VeryPDF HTML Tool has two versions: the command line version and the graphic user interface version. If you don’t get used to using command line, you can try the GUI version. Both versions are available at the product webpage, you can click VeryPDF HTML Tool to visit the webpage this tool. However, if you really want to greatly enhance your efficiency, you’d better learn how to use command line. Just click hereto start with downloading VeryPDF HTML Tool Command Line.

It requires two steps to convert MHTML to PDF and encrypt PDF via command line.

First, open the command prompt window. You should click Start, >click Run. >Type “cmd” > and click OK.

Second, type a command line in the command prompt window. The following is a basic usage of this command line application.

htmltools [options] <MHTML file> [<PDF file>]

The options listed below can be used to encrypt PDF:

    1. -openpwd <string> : Set 'open password' to PDF file
    2. -ownerpwd <string> : Set 'owner password' to PDF file
    3. -keylen <int> : Key length (40 or 128 bit)
        1. -keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
        2. -keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
        3. -keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
    4. -encryption <int> : Restrictions
        1. -encryption 3900: Deny anything
        2. -encryption 4: Deny printing
        3. -encryption 8: Deny modification of contents
        4. -encryption 16: Deny copying of contents

For example, if you want to set an open password, you can type a command line as the following one:

d:\htmltools\htmltools.exe -openpwd "doctor” -keylen 2 d:\in.mhtml c:\out.pdf

If you want to set an owner password and don’t want others to copy the content, you can type a command line as the following one:

d:\htmltools\htmltools.exe -owner "doctor” -keylen 2 –encryption 16 d:\in.mhtml c:\out.pdf

If you want to convert MHTML to PDF and set an open password in batch, you can type a command line as follows:

d:\htmltools\htmltools.exe -openpwd "doctor” -keylen 2 d:\*.mhtml c:\*.pdf

Please type a proper command line according to your priority. Don’t forget to press Enter. To get information about other products of VeryPDF, please visit the homepage of VeryPDF.

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!