---
title: "PMPaperGetID(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1462910-pmpapergetid
---

# PMPaperGetID(_:_:)

Obtains the identifier of a paper object.

## Declaration

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

## Parameters

- `paper`: The paper whose identifier you want to obtain.
- `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 unique identifier for this paper. You should not release the string without first retaining it.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Accessing Data in Paper Objects

- [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)
- [PMPaperGetPPDPaperName(_:_:)](applicationservices/1461039-pmpapergetppdpapername.md)
