Sets the password security on the input file.
Table: PDF versions according to encryption types
|
Encryption Type |
PDF Version |
|
128bit RC4 |
1.5 |
|
128bit AES |
1.6 |
|
256bit AES |
1.7 |
Sets the password security for test.pdf and output it as out.pdf.
AHPDFToolCmd80.exe -encrypt -ownerPass pass123 -filterType 4 -perms2 -print 1 -copy false -d C:\test\test.pdf -o C:\sav\out.pdf
AHPDFToolCmd80 -encrypt -ownerPass pass123 -filterType 4 -perms2 -print 1 -copy false -d /home/antenna/test/test.pdf -o /home/antenna/sav/out.pdf
You can perform batch processing by specifying the input folder to the -d parameter and the output folder to the -o parameter.
If a folder is specified, Set the security for the PDF file in the input folder.
Note that the output file will be output to the output folder with the same name as the input file name.
|
Parameter |
Content |
|
|
-userPass <Val> |
[Either -userPass or -ownerPass must be specified] |
|
|
-ownerPass <Val> |
[Either -userPass or -ownerPass must be specified] |
|
|
-filterType {2 | 3 | 4} |
Sets the encryption type. Optional. 2: 128bit RC4 If not specified, "4: 256bti AES." If -filterType is specified, -ownerPass must be specified. If it does not exist, an error will occur. |
|
|
-perms2 |
Sets the security for "-filterType = 2/3/4." Can be omitted. |
|
|
-print {0 | 1 | 2} |
Sets the printing. Can be omitted. 0: Not allowed 1: Low resolution 2: High resolution |
|
|
-modify {0 | 1 | 2 | 3 | 4} |
Sets the document editing. Can be omitted. 0: Not allowed If not specified, "0: Not allowed." If a value other than 0 to 4 is specified, an error will occur. |
|
|
-copy {true | false} |
Sets the copying of content. Can be omittedl. true: Allowed false: Disallowed If not specified, "false: Not allowed" |
|
|
-accessibility {true | false} |
Enable text access for screen reader devices. Can be omitted. true: enabled false: disabled If not specified, "true: enabled" |
|