# PDF Viewer

> A scrollable PDF viewer with toolbar, zoom, rotate, search, text selection, thumbnail navigation, upload and download. Powered by EmbedPDF with PDFium-backed page rendering.

- Author: [extend-hq](https://21st.dev/@extend-hq)
- License: mit
- Tags: PDF, 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-hq/components/pdf-viewer

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/extend-hq/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
