Skip to main content

📄 PDF Reader

BookLore includes a full PDF reader powered by PDF.js with support for annotations, multiple view modes, search, and reading progress tracking.


📚 Reading Interface

PDF Reader Overview

The reader opens with a toolbar across the top and an optional sidebar showing the document outline (table of contents). The sidebar can be toggled with the sidebar button in the toolbar.

🔧 Toolbar Actions

Left side:

ButtonAction
Sidebar toggleShow/hide the document outline
FindOpen the search bar
Page inputJump to a specific page number

Right side:

ButtonAction
Zoom controlsZoom in/out and preset zoom levels
Hand toolPan/scroll mode
Select toolText selection mode
RotateRotate page clockwise or counter-clockwise
PrintPrint the document (requires download permission)
View modePage spread and scroll mode selector
HighlightHighlight annotation tool
TextText annotation tool
DrawFreehand drawing tool
Theme toggleSwitch between dark and light mode
CloseExit the reader

📐 View Modes

PDF View Modes

The view mode dropdown offers several ways to display pages:

📖 Page Spreads

ModeDescription
No SpreadsSingle page at a time
Odd SpreadsOdd pages on the left, even on the right
Even SpreadsEven pages on the left, odd on the right

📜 Scroll Modes

ModeDescription
Page ScrollingOne page at a time, snapping between pages
Vertical ScrollingContinuous vertical scroll through all pages
Horizontal ScrollingScroll left/right through pages
Wrapped ScrollingPages wrap like a grid, multiple pages visible at once
Infinite ScrollSeamless continuous scrolling
Book ModeTwo-page spread that mimics a physical book

🔍 Zoom Options

Four preset zoom levels are available in the reader preferences:

OptionDescription
AutoAutomatically selects the best zoom
Page FitFits the entire page in view (default)
Page WidthFits the page width to the window
Actual SizeDisplays at 100% scale

The toolbar also provides manual zoom in/out controls.


✏️ Annotations

The PDF reader supports three annotation types:

  • Highlights for marking text passages
  • Text annotations for adding comments
  • Freehand drawing for markup

Annotations are saved automatically (with a 1.5 second debounce) and persist across sessions.


Click the Find button or use Ctrl+F to open the search bar. Matches are highlighted in the document as you type.


📊 Reading Progress

Progress is saved automatically on every page change. The reader tracks both the current page number and the reading percentage. When you reopen a PDF, it returns to your last position.

Reading sessions are recorded in the background with start/end times and page positions.


💾 Settings Persistence

PDF reader settings can be saved globally (applied to all PDFs) or per book. The scope is controlled in Reader Preferences. Per-book settings override global defaults when enabled.