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.

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.

Open the search bar with the keyboard shortcut or by clicking the search icon in the toolbar.

Keyboard Shortcuts

ShortcutAction
Ctrl+F / Cmd+FOpen search bar
EscapeClose search bar
EnterJump to next match
Shift+EnterJump 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

  1. When a PDF is loaded, KViewer builds a search index in the background by extracting text from each page
  2. When you type a query, matches are found across all indexed pages
  3. The viewer scrolls to the current match and highlights it on the page
  4. Use Enter/Shift+Enter or the arrow buttons to navigate between matches
Copyright © 2026