securityHandler = SecurityHandlersManager.getInstance().getSecurityHandler( encParameters.getFilter() );
securityHandler.prepareForDecryption( encParameters, document.getDocumentID(), decryptionMaterial );
AccessPermission permission = securityHandler.getCurrentAccessPermission();
if ( ! permission.canExtractContent() )
{
LOG.warn( "PDF file '" + pdfFile.getPath() + "' does not allow extracting content." );
}
}