PDF viewer

Fetches and renders PDF pages with zoom, pagination, and a selectable text layer

PDF, spreadsheet, document, and archive viewers with compare and highlight support.

lr-pdf-viewer

import '@aceshooting/lyra-ui/components/lr-pdf-viewer.js';

Optional dependency: pdfjs-dist

Read guide (English)

Related components

  • PPTX viewer — Best-effort client-side viewer for PowerPoint PPTX presentations.
  • Spreadsheet viewer — Fetches and renders .xlsx and legacy .xls workbooks with sheet tabs and virtualised rows.
  • SVG viewer — Fetches and safely renders an inline, sanitised SVG document from a URL.
  • XML viewer — Collapsible, copyable tree view for inspecting XML documents.
  • 3D model viewer — Preview 3D models with a text alternative and a download link.
  • OpenAPI viewer — Browse API operations and schemas in an OpenAPI document.