convert(_:to:)
Converts a rectangle from view space to page space.
Declaration
func convert(_ rect: CGRect, to page: PDFPage) -> CGRectfunc convert(_ rect: NSRect, to 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.