* @throws COSLoadException
*/
@SuppressWarnings("unchecked")
private PDDocument openDoc(File inputFile, String password) throws IOException, COSLoadException {
PDDocument retVal = null;
FileLocator locator = new FileLocator(inputFile);
if (password != null) {
Map options = new HashMap();
final char[] pwd = password.toCharArray();
PasswordProvider.setPasswordProvider(options, new IPasswordProvider() {
public char[] getPassword() {