---
title: "PMPresetCreatePrintSettings(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1463414-pmpresetcreateprintsettings
---

# PMPresetCreatePrintSettings(_:_:_:)

Creates a print settings object with settings that correspond to a preset.

## Declaration

```swift
func PMPresetCreatePrintSettings(_ preset: PMPreset, _ session: PMPrintSession, _ printSettings: UnsafeMutablePointer<PMPrintSettings?>) -> OSStatus
```

## Parameters

- `preset`: The preset whose settings you want to obtain. You can use the function doc://com.apple.documentation/documentation/applicationservices/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 doc://com.apple.documentation/documentation/applicationservices/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 doc://com.apple.documentation/documentation/applicationservices/1461402-pmrelease.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Using Printer Presets

- [PMPresetCopyName(_:_:)](applicationservices/1460343-pmpresetcopyname.md)
- [PMPresetGetAttributes(_:_:)](applicationservices/1459042-pmpresetgetattributes.md)
