* @param aPage
* number of page for which size should be returned
* @return FloatPoint or null
*/
public FloatPoint getPageSize(int aPage) {
FloatPoint tmpResult = null;
PdfReader reader = null;
try {
try {
// try to read without password
reader = new PdfReader(options.getInFile());
} catch (Exception e) {
try {
reader = new PdfReader(options.getInFile(), new byte[0]);
} catch (Exception e2) {
reader = new PdfReader(options.getInFile(), options.getPdfOwnerPwdStr().getBytes());
}
}
final Rectangle tmpRect = reader.getPageSize(aPage);
if (tmpRect != null) {
tmpResult = new FloatPoint(tmpRect.getRight(), tmpRect.getTop());
}
} catch (Exception e) {
// nothing to do
} finally {
if (reader != null) {