Contents

go(to:on:)

Navigates to the specified rectangle on the specified page.

Declaration

func go(to rect: CGRect, on page: PDFPage)
func go(to rect: NSRect, on page: PDFPage)

Discussion

If the specified rectangle is already visible, this method does nothing. This allows you to scroll the PDFView object to a specific PDFAnnotation or PDFSelection object, because both of these objects have bounds methods that return an annotation or selection position in page space.

Note that rect is specified in page-space coordinates. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

See Also

Using Seek in a Document