Instance Method

drawContentForPageAtIndex:inRect:

Overridden to draw the content of the given page.

Declaration

- (void)drawContentForPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)contentRect;

Parameters

index

The index of the page in which to draw content.

contentRect

The area in which content is to be drawn, specified in the coordinate system of the printable rectangle. This is the area defined by printableRect minus headerHeight and footerHeight.

Discussion

The default implementation of this method does nothing. The method is set up for drawing to the current graphics context (as returned by UIGraphicsGetCurrentContext).

See Also

Drawing a Page

- drawPageAtIndex:inRect:

Overridden to draw a given page of content for the printer.

- drawHeaderForPageAtIndex:inRect:

Overridden to draw the header of the given page.

- drawPrintFormatter:forPageAtIndex:

Overridden to add custom drawing to the drawing provided by a given print formatter for a page.

- drawFooterForPageAtIndex:inRect:

Overridden to draw the footer of the given page.