Search Operations

Find and search in PDFs.

Topics

Searching Documents

- findString:withOptions:

Synchronously finds all instances of the specified string in the document.

- beginFindString:withOptions:

Asynchronously finds all instances of the specified string in the document.

- beginFindStrings:withOptions:

Asynchronously finds all instances of the specified array of strings in the document.

- findString:fromSelection:withOptions:

Synchronously finds the next occurance of a string after the specified selection (or before the selection if you specified NSBackwardsSearch as a search option.

isFinding

Returns a Boolean value indicating whether an asynchronous find operation is in progress.

- cancelFindString

Cancels a search initiated with beginFindString:withOptions:.

See Also

Working with Selections and Searches

- selectionFromPage:atCharacterIndex:toPage:atCharacterIndex:

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

- selectionFromPage:atPoint:toPage:atPoint:

Returns the specified selection based on starting and ending points.

selectionForEntireDocument

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