Instance Method


Draws the page within the specified box.


func draw(with box: PDFDisplayBox)


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.