PDDocument tmpDoc = null;
try {
tmpDoc = PDDocument.load(options.getInFile());
if (tmpDoc.isEncrypted()) {
tmpDoc.decrypt(options.getPdfOwnerPwdStr());
}
int resolution;
try {
resolution = Toolkit.getDefaultToolkit().getScreenResolution();
} catch (HeadlessException e) {