Contents

convert(_:to:)

Converts a rectangle from view space to page space.

Declaration

func convert(_ rect: CGRect, to page: PDFPage) -> CGRect
func convert(_ rect: NSRect, to page: PDFPage) -> NSRect

Discussion

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.

See Also

Converting Page and View Points