# PDF Viewer

> A React PDF viewer with page controls, zoom, search, text selection, thumbnails, uploads, and responsive document layouts. Built by Extend UI.

- Author: [Extend](https://21st.dev/@extend)
- Library: Extend
- License: mit
- Tags: PDF, Productivity, File, Viewer, Document
- npm dependencies: @embedpdf/core, @embedpdf/models, @hugeicons/react, @embedpdf/plugin-zoom, @embedpdf/plugin-render, @embedpdf/plugin-rotate, @embedpdf/plugin-scroll, @embedpdf/plugin-search, @embedpdf/plugin-tiling, @embedpdf/plugin-viewport, @embedpdf/plugin-selection, @embedpdf/plugin-thumbnail, @hugeicons/core-free-icons, @embedpdf/plugin-document-manager, @embedpdf/plugin-interaction-manager
- Live preview: https://21st.dev/@extend/components/pdf-viewer

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/extend/pdf-viewer?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/pdf.md
