Contents

PMGetDuplex(_:_:)

Obtains the selected duplex mode.

Declaration

func PMGetDuplex(_ printSettings: PMPrintSettings, _ duplexSetting: UnsafeMutablePointer<PMDuplexMode>) -> OSStatus

Parameters

  • printSettings:

    The print settings object whose duplex mode you want to obtain.

  • duplexSetting:

    A pointer to your PMDuplexMode variable. 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