<!--
{
  "availability" : [
    "iOS: 4.2.0 - 10.0.0",
    "iPadOS: 4.2.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintFormatter/contentInsets",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPrintFormatter(py)contentInsets"
  },
  "title" : "contentInsets"
}
-->

# contentInsets

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

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

## 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:)`](/documentation/UIKit/UIEdgeInsets/init(top:left:bottom:right:)-1s1t9) macro to create a [`UIEdgeInsets`](/documentation/UIKit/UIEdgeInsets) structure.

The default value of this property is [`zero`](/documentation/UIKit/UIEdgeInsets/zero).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)