This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/ios/search/indexed-full-text-search/customize-results.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Generate PDF Search Previews on iOS | Nutrient SDK

PDFLibrary can also generate a small snippet of text around each match it finds. When calling documentUIDs(matching:options:completionHandler:previewTextHandler:), if the previewTextHandler parameter is not nil, PDFLibrary will also generate previews. Note that preview generation will have a performance impact, as additional information needs to be extracted from the database. PDFDocumentPickerController leverages preview generation when displaying results, as shown below.

Preview example