Apache PDFBox
The Apache Software Foundation > Incubator > Apache PDFBox

Decrypt

Description

This application will decrypt a PDF document.

Note
You must have the owner password to decrypt the document!

usage: java org.pdfbox.Decrypt [OPTIONS] <inputfile> [outputfile]

Command Line Parameter Type Default Value Description
-password string None Password to the PDF or certificate in keystore.
-keyStore string None 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.
-alias string None The alias to the certificate in the keystore.
<inputfile> filename None The PDF file to decrypt.
[outputfile] filename The output file The file to save the decrypted document to. If left blank then it will be the same as the input file.