+ PMResolution res;
+ PMPrinter printer;
+ PMTag tag = kPMMaxSquareResolution;
+ PMSessionGetCurrentPrinter(m_macPrintSession, &printer);
+ PMPrinterGetPrinterResolution(printer, tag, &res);
+ PMSetResolution((PMPageFormat) m_macPageFormat, &res);
+ // after setting the new resolution the format has to be updated, otherwise the page rect remains
+ // at the 'old' scaling
+ PMSessionValidatePageFormat((PMPrintSession) m_macPrintSession,
+ (PMPageFormat) m_macPageFormat,
+ kPMDontWantBoolean) ;
+