Contents

PMSetDuplex(_:_:)

Sets the duplex mode.

Declaration

func PMSetDuplex(_ printSettings: PMPrintSettings, _ duplexSetting: PMDuplexMode) -> OSStatus

Parameters

  • 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