---
title: contentInsets
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiprintformatter/contentinsets
---

# contentInsets

The distances the edges of content are inset from the printing rectangle.

## Declaration

```swift
var contentInsets: UIEdgeInsets { get set }
```

## Discussion

Discussion This property adjusts the margins for content printed by the formatter. The printing rectangle defines the area the printer is capable of printing in; each inset is an inward distance, in points, from a side of the printing area. The top inset is used only on the first page that the formatter draws. The bottom inset is not used. You can use the init(top:left:bottom:right:) macro to create a UIEdgeInsets structure. The default value of this property is zero.

## See Also

### Laying out the content

- [perPageContentInsets](uikit/uiprintformatter/perpagecontentinsets.md)
- [maximumContentHeight](uikit/uiprintformatter/maximumcontentheight.md)
- [maximumContentWidth](uikit/uiprintformatter/maximumcontentwidth.md)
