Instance Method

selectionFromPage:atPoint:toPage:atPoint:

Returns the specified selection based on starting and ending points.

Declaration

iOS, Mac Catalyst
- (PDFSelection *)selectionFromPage:(PDFPage *)startPage atPoint:(CGPoint)startPoint toPage:(PDFPage *)endPage atPoint:(CGPoint)endPoint;
macOS
- (PDFSelection *)selectionFromPage:(PDFPage *)startPage atPoint:(NSPoint)startPoint toPage:(PDFPage *)endPage atPoint:(NSPoint)endPoint;

Discussion

The selection begins at startPt on startPage and ends at endPt on endPage. The starting and ending points should be specified in page space, relative to their respective pages.

The starting and ending points can be on the same page. In this case, invoking this method is equivalent to sending the selectionFromPoint:toPoint: message to a PDFPage object.

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

See Also

Working with Selections and Searches

- selectionFromPage:atCharacterIndex:toPage:atCharacterIndex:

Returns the specified selection based on starting and ending character indexes.

selectionForEntireDocument

Returns a selection representing the textual content of the entire document.

Search Operations

Find and search in PDFs.