Encrypt
Description
This application will encrypt a PDF document.
usage: java org.pdfbox.Encrypt [OPTIONS] <password> <inputfile>
Command Line Parameter | Type | Default Value | Description |
---|---|---|---|
-O <password> | string | None | The owner password to the PDF, ignored if -certFile is specified. |
-U <password> | string | None | The user password to the PDF, ignored if -certFile is specified. |
-certFile <path to certificate> | string | None | Path to X.509 cert file. |
-canAssemble <value> | boolean | true | Set the assemble permission. |
-canExtractContent <value> | boolean | true | Set the extraction permission. |
-canExtractForAccessibility <value> | boolean | true | Set the extraction permission. |
-canFillInForm <value> | boolean | true | Set the fill in form permission. |
-canModify <value> | boolean | true | Set the modify permission. |
-canModifyAnnotations <value> | boolean | true | Set the modify annots permission. |
-canPrint <value> | boolean | true | Set the print permission. |
-canPrintDegraded <value> | boolean | true | Set the print degraded permission. |
-keyLength <value> | integer | 40 | The number of bits for the encryption key. |
<inputfile> | filename | None | The PDF file to encrypt. |
[outputfile] | filename | The output file. | The file to save the encrypted document to. If left blank then it will be the same as the input file. |