---
title: "PMPaperGetWidth(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459209-pmpapergetwidth
---

# PMPaperGetWidth(_:_:)

Obtains the width of the sheet of paper represented by a paper object.

## Declaration

```swift
func PMPaperGetWidth(_ paper: PMPaper, _ paperWidth: UnsafeMutablePointer<Double>) -> OSStatus
```

## Parameters

- `paper`: The paper whose width you want to obtain.
- `paperWidth`: A pointer to your double-precision variable. On return, the variable contains the width of the specified paper, in points.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Accessing Data in Paper Objects

- [PMPaperGetID(_:_:)](applicationservices/1462910-pmpapergetid.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)
