---
title: "drawFooterForPage(at:in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprintpagerenderer/drawfooterforpage(at:in:)"
---

# drawFooterForPage(at:in:)

Draws the footer of a page.

## Declaration

```swift
func drawFooterForPage(at pageIndex: Int, in footerRect: CGRect)
```

## Parameters

- `pageIndex`: The index of the page on which to draw the footer content.
- `footerRect`: The rectangle in which to draw the footer content. This rectangle uses the coordinate system of the paper rectangle (doc://com.apple.uikit/documentation/UIKit/UIPrintPageRenderer/paperRect), with the origin of the coordinates at the top-left corner of the sheet.

## Discussion

Discussion The default implementation of this method does nothing. The system doesn’t call this method if footerHeight isn’t a positive value. Override this method to draw the footer of the specified page. The system configures this method for drawing to the current graphics context according to UIGraphicsGetCurrentContext().

## See Also

### Drawing a page

- [drawPage(at:in:)](uikit/uiprintpagerenderer/drawpage(at:in:).md)
- [drawHeaderForPage(at:in:)](uikit/uiprintpagerenderer/drawheaderforpage(at:in:).md)
- [drawContentForPage(at:in:)](uikit/uiprintpagerenderer/drawcontentforpage(at:in:).md)
- [drawPrintFormatter(_:forPageAt:)](uikit/uiprintpagerenderer/drawprintformatter(_:forpageat:).md)
