try {
getPDFDocument().decrypt(password);
}
catch (final InvalidPasswordException e)
{
throw new PDFInvalidPasswordException(e);
}
catch (final CryptographyException e)
{
throw new PDFInvalidPasswordException(e);
}
catch (final Exception e) {
throw new RuntimeException("Problem decrypting the document", e);
}
}