---
title: "pageSize(forPaper:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsprinter/pagesize(forpaper:)"
---

# pageSize(forPaper:)

Returns the size of the page for the specified paper type.

## Declaration

```swift
func pageSize(forPaper paperName: NSPrinter.PaperName) -> NSSize
```

## Parameters

- `paperName`: Possible values are printer-dependent and are contained in the printer’s PPD file. Typical values are “Letter” and “Legal”.

## Return Value

Return Value The size of the page, measured in points in the user coordinate space. The returned size is zero if the specified paper name is not recognized or its entry in the PPD file cannot be parsed.

## See Also

### Getting Page and Printer Information

- [NSPrinter.PaperName](appkit/nsprinter/papername.md)
- [languageLevel](appkit/nsprinter/languagelevel.md)
