Contents

PMPresetGetAttributes(_:_:)

Obtains the attributes of a preset.

Declaration

func PMPresetGetAttributes(_ preset: PMPreset, _ attributes: UnsafeMutablePointer<Unmanaged<CFDictionary>?>) -> OSStatus

Parameters

  • preset:

    The preset whose attributes you want to obtain. You can use the function 1459117 Pmprintercopypresets to obtain the presets for a given printer.

  • attributes:

    A pointer to your Cfdictionary variable. On return, the variable refers to a Core Foundation dictionary containing the attributes of the specified preset, or NULL if the attributes could not be obtained. For more information about these attributes, see the Discussion. You should not release this dictionary without first retaining it.

Return Value

A result code. See Result Codes.

Discussion

A preset has associated with it a dictionary containing the preset identifier, the localized name, and a description of the environment for which the preset is intended. In addition to these standard attributes, the preset you specify may contain additional attributes that reflect custom print settings.

See Also

Using Printer Presets