---
title: "rowSize(for:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/rowsize(for:)"
---

# rowSize(for:)

Returns the size needed to display a row of the current document page.

## Declaration

```swift
func rowSize(for page: PDFPage) -> CGSize
```

```swift
func rowSize(for page: PDFPage) -> NSSize
```

## Discussion

Discussion The size is dependent on the current scale factor and display attributes.

## See Also

### Scaling the View

- [scaleFactor](pdfkit/pdfview/scalefactor.md)
- [scaleFactorForSizeToFit](pdfkit/pdfview/scalefactorforsizetofit.md)
- [maxScaleFactor](pdfkit/pdfview/maxscalefactor.md)
- [minScaleFactor](pdfkit/pdfview/minscalefactor.md)
- [autoScales](pdfkit/pdfview/autoscales.md)
- [Zoom Operations](pdfkit/zoom-operations.md)
