Instance Method

draw(with:)

Draws the page within the specified box.

Declaration

func draw(with box: PDFDisplayBox)

Discussion

This method takes into account the page rotation and draws clipped to the specified box. If the page is set to display annotations, this method also draws them. This method does not clear the background. To clear the background before drawing, use NSRectFill(_:) with NSColor set (typically) to white.

See Also

Rendering Pages

func transformContext(for: PDFDisplayBox)

Transforms the current context, given the specified box.

Deprecated