This article is about how to use VeryDOC HTML Converter to encrypt PDF during converting web page to PDF in Windows systems.
VeryDOC HTML Converter allows Windows users to convert web page files to PDF files, including local web page files and online web page files – URL. There are 2 versions in this software – GUI and command line versions. And for in the last articles here, part of functions about GUI version has been described, in this article, I will show you how to use commands version of this software to convert web page files to PDF file and encrypt PDF files one time in Windows systems.
Please download package of commands version from following icon, then open it in your computer and extract its content to your computer directly, so it could be used later.
After download and extraction like above, please open command prompt window in your computer for typing commands later, and then, refer to following commands example to input commands step by step:
htmltools.exe –openpwd open -keylen 2 -ownerpwd owner -encryption 3900 C:\in.emf C:\out.pdf
- -openpwd <string>: Set 'open password' of PDF file
- -ownerpwd <string>: Set 'owner password' of PDF file
- -keylen 2: set key length as 128 bit RC4 encryption (Acrobat 6 or higher)
- -encryption 3900 : Deny anything in owner permission
- htmltools.exe is to run this software
- …emf and …pdf are to specify input EMF file and output PDF file
Note: for key length and owner permission, you can also use one of followings separately to encrypt PDF
-keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
-keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
-encryption 0: Encrypt the file only
-encryption 4: Deny printing
-encryption 8: Deny modification of contents
-encryption 16: Deny copying of contents
-encryption 32: No commenting===128 bit encryption only -> ignored if 40 bit encryption is used
-encryption 256: Deny FillInFormField
-encryption 512: Deny ExtractObj
-encryption 1024: Deny Assemble
-encryption 2048: Disable high res. printing
-encryption 4096: Do not encrypt metadata
After you type right parameters and commands like shown in example above, you can use VeryDOC HTML Converter commands to convert web page file to PDF file and encrypt PDF file, and after this software processes it, you will find targeting PDF file with encryptions is so perfect.
By now, I hope you can get what I illustrate above, which is about encrypting PDF during converting web page file to PDF file and once you find out VeryDOC HTML Converter is so suitable for you, please do not hesitate to try VeryDOC HTML Converter.