throws BadSecurityHandlerException, IOException, CryptographyException
{
PDEncryptionDictionary dict = this.getEncryptionDictionary();
if(dict.getFilter() != null)
{
SecurityHandler handler = SecurityHandlersManager.getInstance().getSecurityHandler(dict.getFilter());
securityHandler = handler;
handler.decryptDocument(this, pm);
document.dereferenceObjectStreams();
}
else
{
throw new RuntimeException("This document does not need to be decrypted");