---
title: "PMPresetCopyName(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1460343-pmpresetcopyname
---

# PMPresetCopyName(_:_:)

Obtains the localized name for a preset.

## Declaration

```swift
func PMPresetCopyName(_ preset: PMPreset, _ name: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatus
```

## Parameters

- `preset`: The preset object whose localized name 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.
- `paperID`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFString variable. On return, the variable refers to a Core Foundation string containing the localized name of the specified preset. You are responsible for releasing the string.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Using Printer Presets

- [PMPresetCreatePrintSettings(_:_:_:)](applicationservices/1463414-pmpresetcreateprintsettings.md)
- [PMPresetGetAttributes(_:_:)](applicationservices/1459042-pmpresetgetattributes.md)
