| <!-- |
| ! Licensed to the Apache Software Foundation (ASF) under one or more |
| ! contributor license agreements. See the NOTICE file distributed with |
| ! this work for additional information regarding copyright ownership. |
| ! The ASF licenses this file to You under the Apache License, Version 2.0 |
| ! (the "License"); you may not use this file except in compliance with |
| ! the License. You may obtain a copy of the License at |
| ! |
| ! http://www.apache.org/licenses/LICENSE-2.0 |
| ! |
| ! Unless required by applicable law or agreed to in writing, software |
| ! distributed under the License is distributed on an "AS IS" BASIS, |
| ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ! See the License for the specific language governing permissions and |
| ! limitations under the License. |
| !--> |
| <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd"> |
| <document> |
| <header> |
| <title>Decrypt</title> |
| </header> |
| <body> |
| <section> |
| <title>Description</title> |
| <p>This application will decrypt a PDF document.</p> |
| <note>You must have the owner password to decrypt the document!</note> |
| <p>usage: java org.pdfbox.Decrypt [OPTIONS] <inputfile> [outputfile]</p> |
| <table> |
| <tr> |
| <th>Command Line Parameter</th> |
| <th>Type</th> |
| <th>Default Value</th> |
| <th>Description</th> |
| </tr> |
| <tr> |
| <td>-password</td> |
| <td>string</td> |
| <td>None</td> |
| <td>Password to the PDF or certificate in keystore.</td> |
| </tr> |
| <tr> |
| <td>-keyStore</td> |
| <td>string</td> |
| <td>None</td> |
| <td>Path to keystore that holds certificate to decrypt the document. This is only required if the document is encrypted with a certificate, otherwise only the password is required.</td> |
| </tr> |
| <tr> |
| <td>-alias</td> |
| <td>string</td> |
| <td>None</td> |
| <td>The alias to the certificate in the keystore.</td> |
| </tr> |
| <tr> |
| <td><inputfile></td> |
| <td>filename</td> |
| <td>None</td> |
| <td>The PDF file to decrypt.</td> |
| </tr> |
| <tr> |
| <td>[outputfile]</td> |
| <td>filename</td> |
| <td>The output file</td> |
| <td>The file to save the decrypted document to. If left blank then it will be the same as the input file.</td> |
| </tr> |
| </table> |
| </section> |
| </body> |
| </document> |