PMPresetCreatePrintSettings(_:_:_:)
Creates a print settings object with settings that correspond to a preset.
Declaration
func PMPresetCreatePrintSettings(_ preset: PMPreset, _ session: PMPrintSession, _ printSettings: UnsafeMutablePointer<PMPrintSettings?>) -> OSStatusParameters
- preset:
The preset whose settings you want to obtain. You can use the function 1459117 Pmprintercopypresets to obtain the presets for a given printer.
- session:
The session you use to present the Print dialog.
- printSettings:
A pointer to your Pmprintsettings variable. On return, the variable refers to a print settings object with settings that correspond to the specified preset. You are responsible for releasing the print settings object with the function 1461402 Pmrelease.
Return Value
A result code. See Result Codes.