draw(with:)
Draws the page within the specified box.
Declaration
func draw(with box: PDFDisplayBox)Mentioned in
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.