+ m_maxX = wxCoord(rPage.right - rPage.left) ;
+ m_maxY = wxCoord(rPage.bottom - rPage.top);
+
+ PMResolution res;
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+ PMPrinter printer;
+ PMSessionGetCurrentPrinter(native->m_macPrintSession, &printer);
+ PMPrinterGetOutputResolution( printer, native->m_macPrintSettings, &res) ;
+#else
+ m_err = PMGetResolution((PMPageFormat) (native->m_macPageFormat), &res);
+#endif
+ m_ppi = wxSize(int(res.hRes), int(res.vRes));