PMSetDuplex(_:_:)
Sets the duplex mode.
Declaration
func PMSetDuplex(_ printSettings: PMPrintSettings, _ duplexSetting: PMDuplexMode) -> OSStatusParameters
- printSettings:
The print settings object whose duplex mode you want to set.
- duplexSetting:
The new duplex mode setting. 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 constants you can use to specify the new setting.
Return Value
A result code. See Result Codes.
Discussion
Duplex printing is a print job that prints on both sides of the paper. Two-Sided printing controls are displayed in the Layout pane of the Print dialog. This function allows you to specify whether the document should be printed single-sided, double-sided with short-edge binding, or double-sided with long-edge binding.
If you call this function after initiating a print job, the change is ignored for the current job.
See Also
Accessing Data in Print Settings Objects
PMGetFirstPage(_:_:)PMSetFirstPage(_:_:_:)PMGetLastPage(_:_:)PMSetLastPage(_:_:_:)PMGetPageRange(_:_:_:)PMSetPageRange(_:_:_:)PMPrintSettingsGetJobName(_:_:)PMPrintSettingsSetJobName(_:_:)PMGetCopies(_:_:)PMSetCopies(_:_:_:)PMGetCollate(_:_:)PMSetCollate(_:_:)PMGetDuplex(_:_:)PMPrintSettingsGetValue(_:_:_:)PMPrintSettingsSetValue(_:_:_:_:)PMPrintSettingsCopyAsDictionary(_:_:)PMPrintSettingsCopyKeys(_:_:)