Instance Method

convertPoint:toPage:

Converts a point from view space to page space.

Declaration

iOS, Mac Catalyst
- (CGPoint)convertPoint:(CGPoint)point toPage:(PDFPage *)page;
macOS
- (NSPoint)convertPoint:(NSPoint)point toPage:(PDFPage *)page;

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

- pageForPoint:nearest:

Returns the page containing a point specified in view coordinates.

- 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.