Guide
Search
Use full-text search to find content in PDF documents
KViewer includes built-in full-text search with match highlighting across all pages.
Enable Search
Search is available by default in the toolbar. To use it effectively, enable the text layer:
<KViewer :source="pdfUrl" text-layer />
Search works by indexing extracted text content from each page. The text layer provides visual highlighting of matches on the rendered pages.
Use Search
Open the search bar with the keyboard shortcut or by clicking the search icon in the toolbar.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+F / Cmd+F | Open search bar |
Escape | Close search bar |
Enter | Jump to next match |
Shift+Enter | Jump to previous match |
Search Options
- Match Case -- Only find results with the same capitalization
- Whole Word -- Only match complete words, not partial matches
- Highlight All -- Highlight every match on visible pages, not just the current one
How It Works
- When a PDF is loaded, KViewer builds a search index in the background by extracting text from each page
- When you type a query, matches are found across all indexed pages
- The viewer scrolls to the current match and highlights it on the page
- Use Enter/Shift+Enter or the arrow buttons to navigate between matches