Command parameters
Command line usage:

pdfencrypt <-i PDF File> [-o Output] [Options]

-i <string> Specify PDF files or directory which contains PDF files.
-o <string> Specify output directory. e.g. C:\output\,
If no set. default save in the same folder as input.
-d Include sub directory.
-# Keep original subfolder.
-g <string> If no set. default save log in the same folder as program.
-l off , Turn off to save log. default is turn on
-l "c:\log.log" Specify log file.
-x Set overwrite if output file is exist.
-u <string> User password.
-w <string> Owner password.
-p <int>
    -p 0:
    -p 1:
    -p 2:
    -p 3:
    -p 4:
    -p 5:
    -p 6:
    -p 7:
Set permission.
0=permit none(default).
1=permit print.
2=permit copy.
3=permit print and copy.
4=permit modify.
5=permit print and modify.
6=permit copy and modify.
7=permit print copy and modify.
-l <int>
    -l 1:
    -l 2:
    -l 3:
Encrypt level.
1=40-bit RC4
2=128-bit RC4(default)
3=128-bit AES
-t <string> Set 'title' to pdf file
-j <string> Set 'subject' to pdf file
-a <string> Set 'author' to pdf file
-k <string> Set 'keywords' to pdf file
-c <string> Set 'creator' to pdf file
-q <string> Set 'producer' to pdf file
-n <int> Set pdf annotations 1=open or 0=close, default 1.
-s <int> Set pdf articles 1=open or 0=close, default 1.
-b <int> Set pdf bookmarks 1=open or 0=close, default 1.
-e <int> Set pdf interactive 1=open or 0=close, default 1.
-m <int> Set pdf metadata 1=open or 0=close, default 1.
-v <int> Set pdf viewer 1=open or 0=close, default 1.
-y <int> Set pdf Document Structure Hierarchy 1=open or 0=close, default 1.
-r <string> Register.
-h Help
-? Help.
----------------------------------------------------------------------------------------------------------------------------------------
Example:
  pdfencrypt -i "c:\input.pdf" Encrypt pdf file "c:\input.pdf"
  pdfencrypt -i "c:\input.pdf" -o "c:\output\" -x Encrypt pdf file "c:\input.pdf" save to folder "c:\output\" and overwrite if output file is exist.
  pdfencrypt -i "c:\input.pdf" -i "c:\input\" -o "c:\output\" Encrypt pdf file "c:\input.pdf" and folder "c:\intput\" which contains pdf files save to folder "c:\output"
  pdfencrypt -i "c:\input.pdf" -o "c:\output\" -u "user" -w "owner" -l 3 -p 3 Set pdf security: user and owner password, encrypt leve 128-bit AES and permit print and copy.
  pdfencrypt -i "c:\input.pdf" -o "c:\output\" -a "author" -q "producer" Set pdf information author and producer for output pdf file.
  pdfencrypt -i "c:\input.pdf" -o "c:\output\" -b 0 -g "d:\log.log" Set output pdf bookmarks close and set log "d:\log.log".