PMGetDuplex(_:_:)
Obtains the selected duplex mode.
Declaration
func PMGetDuplex(_ printSettings: PMPrintSettings, _ duplexSetting: UnsafeMutablePointer<PMDuplexMode>) -> OSStatusParameters
- printSettings:
The print settings object whose duplex mode you want to obtain.
- duplexSetting:
A pointer to your
PMDuplexModevariable. On return, the variable contains the duplex mode setting in the current print job. Possible values include:kPMDuplexNone(one-sided printing)kPMDuplexNoTumble(two-sided printing)kPMDuplexTumble(two-sided printing with tumbling)
See Pmduplexmode for a full description of the duplex mode constants.
Return Value
A result code. See Result Codes.
Discussion
Duplex printing is a print job that prints on both sides of the paper. The Two-Sided printing control is displayed in the Layout pane of the Print dialog.
See Also
Accessing Data in Print Settings Objects
PMGetFirstPage(_:_:)PMSetFirstPage(_:_:_:)PMGetLastPage(_:_:)PMSetLastPage(_:_:_:)PMGetPageRange(_:_:_:)PMSetPageRange(_:_:_:)PMPrintSettingsGetJobName(_:_:)PMPrintSettingsSetJobName(_:_:)PMGetCopies(_:_:)PMSetCopies(_:_:_:)PMGetCollate(_:_:)PMSetCollate(_:_:)PMSetDuplex(_:_:)PMPrintSettingsGetValue(_:_:_:)PMPrintSettingsSetValue(_:_:_:_:)PMPrintSettingsCopyAsDictionary(_:_:)PMPrintSettingsCopyKeys(_:_:)