convert(_:from:)
Converts a rectangle from page space to view space.
Declaration
func convert(_ rect: CGRect, from page: PDFPage) -> CGRectfunc convert(_ rect: NSRect, from page: PDFPage) -> NSRectDiscussion
Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page. View space is a coordinate system with the origin at the lower-left corner of the current PDF view.