org.apache.pdfbox.pdmodel.encryption
public class StandardDecryptionMaterial extends DecryptionMaterial
PDDocument doc = PDDocument.load(in); StandardDecryptionMaterial dm = new StandardDecryptionMaterial("password"); doc.openProtection(dm);
Constructor and Description |
---|
StandardDecryptionMaterial(String pwd)
Create a new standard decryption material with the given password.
|
public StandardDecryptionMaterial(String pwd)
pwd
- The password.public String getPassword()