Instance Method

pageForPoint:nearest:

Returns the page containing a point specified in view coordinates.

Declaration

iOS, Mac Catalyst
- (PDFPage *)pageForPoint:(CGPoint)point nearest:(BOOL)nearest;
macOS
- (PDFPage *)pageForPoint:(NSPoint)point nearest:(BOOL)nearest;

Discussion

Returns NULL if there’s no page at the specified point and nearest is set to NO.

See Also

Converting Page and View Points

- convertPoint:toPage:

Converts a point from view space to page space.

- convertRect:toPage:

Converts a rectangle from view space to page space.

- convertPoint:fromPage:

Converts a point from page space to view space.

- convertRect:fromPage:

Converts a rectangle from page space to view space.