Contents

PMPrinterCopyPresets(_:_:)

Obtains a list of print settings presets for a printer.

Declaration

func PMPrinterCopyPresets(_ printer: PMPrinter, _ presetList: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus

Parameters

  • printer:

    The printer whose presets you want to obtain.

  • presetList:

    A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array containing the presets for the specified printer. Each element in the array is an object of type Pmpreset. You are responsible for releasing the array.

Return Value

A result code. See Result Codes.

Discussion

A printer may have associated with it a list of preset settings. Each setting is optimized for a particular printing situation. This function returns all of the presets for a given printer. To obtain more information about a particular preset, you can use the function PMPresetGetAttributes(_:_:). To create a print settings object that contains the settings of a preset, call PMPresetCreatePrintSettings(_:_:_:).

See Also

Accessing Information About a Printer