---
title: cancelFindString()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfdocument/cancelfindstring()
---

# cancelFindString()

Cancels a search initiated with beginFindString(_:withOptions:).

## Declaration

```swift
func cancelFindString()
```

## See Also

### Searching Documents

- [findString(_:withOptions:)](pdfkit/pdfdocument/findstring(_:withoptions:).md)
- [beginFindString(_:withOptions:)](pdfkit/pdfdocument/beginfindstring(_:withoptions:).md)
- [beginFindStrings(_:withOptions:)](pdfkit/pdfdocument/beginfindstrings(_:withoptions:).md)
- [findString(_:fromSelection:withOptions:)](pdfkit/pdfdocument/findstring(_:fromselection:withoptions:).md)
- [isFinding](pdfkit/pdfdocument/isfinding.md)
