Instance Property

contentInsets

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

Declaration

@property(nonatomic) UIEdgeInsets contentInsets;

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 UIEdgeInsetsMake macro to create a UIEdgeInsets structure.

The default value of this property is UIEdgeInsetsZero.

See Also

Laying Out the Content

perPageContentInsets

The margins for each printed page.

maximumContentHeight

The maximum height of the content area.

maximumContentWidth

The maximum width of the content area.