Have you read the documentation on the PDFDocument class, for instance the findString(_:withOptions:) method?
Topic:
App & System Services
SubTopic:
Networking
Tags: