---
title: "PMPaperGetPPDPaperName(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1461039-pmpapergetppdpapername
---

# PMPaperGetPPDPaperName(_:_:)

Obtains the PPD paper name for a given paper.

## Declaration

```swift
func PMPaperGetPPDPaperName(_ paper: PMPaper, _ paperName: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatus
```

## Parameters

- `paper`: The paper whose PPD paper name you want to obtain.
- `paperName`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFString variable. On return, the variable refers to a Core Foundation string that contains the PPD paper name for the specified paper. If an error occurs, the variable is set to NULL. You should not release the string without first retaining it.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion The macOS printing system uses a PostScript Printer Description (PPD) file to describe a given printer and print queue for that printer. The PPD paper name is the name that uniquely identifies a given paper for the printer to which the paper corresponds. To obtain a list of papers for a given printer, use the function PMPrinterGetPaperList(_:_:).

## See Also

### Accessing Data in Paper Objects

- [PMPaperGetID(_:_:)](applicationservices/1462910-pmpapergetid.md)
- [PMPaperGetWidth(_:_:)](applicationservices/1459209-pmpapergetwidth.md)
- [PMPaperGetHeight(_:_:)](applicationservices/1460389-pmpapergetheight.md)
- [PMPaperGetMargins(_:_:)](applicationservices/1461994-pmpapergetmargins.md)
- [PMPaperCreateLocalizedName(_:_:_:)](applicationservices/1460981-pmpapercreatelocalizedname.md)
- [PMPaperGetPrinterID(_:_:)](applicationservices/1461737-pmpapergetprinterid.md)
