Contents

bounds(for:)

Returns the bounds of the selection on the specified page.

Declaration

func bounds(for page: PDFPage) -> CGRect
func bounds(for page: PDFPage) -> NSRect

Discussion

The selection rectangle is given in page space.

Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

See Also

Getting Information About a Selection