Contents

convert(_:from:)

Converts a point from page space to view space.

Declaration

func convert(_ point: CGPoint, from page: PDFPage) -> CGPoint
func convert(_ point: NSPoint, from page: PDFPage) -> NSPoint

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