---
title: "Viewer — Vue"
description: "A complete PDF viewer you add with one tag, then make your own with a few lines of config, in plain HTML, React, Vue, Svelte or Angular."
integration: "Vue"
other_integrations:
  "Vanilla JS": "https://www.embedpdf.com/docs/viewer/vanilla.md"
  "React": "https://www.embedpdf.com/docs/viewer/react.md"
  "Svelte": "https://www.embedpdf.com/docs/viewer/svelte.md"
  "Angular": "https://www.embedpdf.com/docs/viewer/angular.md"
source: "https://www.embedpdf.com/docs/viewer/vue"
---

# A complete PDF viewer, ready to embed

The viewer is everything people expect from a PDF app, in one tag: a toolbar, thumbnails, search,
annotations, comments, forms, signatures and stamps. It fits a phone and a wide screen, speaks the
user's language, and works with a keyboard and a screen reader.

**`first.vue`**

```vue
<script setup lang="ts">
import { PDFViewer } from '@embedpdf/viewer-vue';
</script>

<template>
  <PDFViewer src="https://www.embedpdf.com/pdfs/welcome.pdf" style="height: 100vh" />
</template>
```

That's the whole integration. The rest of these docs are about making it yours.

## Make it yours

Everything you change is a few lines of config, the same in every framework. Start at the top and
stop when it's enough:

- [Match your brand](https://www.embedpdf.com/docs/viewer/vue/customize/theming.md) — Your accent color, fonts, and light or dark.
- [Turn features on and off](https://www.embedpdf.com/docs/viewer/vue/features/turning-off.md) — Hide comments, add measurement, or make it read-only.
- [Arrange the toolbars](https://www.embedpdf.com/docs/viewer/vue/customize/layout.md) — Move or remove buttons, and put toolbars on any edge.
- [Add your own button](https://www.embedpdf.com/docs/viewer/vue/customize/commands.md) — A command: a label, an icon, and what it does.
- [Add a menu](https://www.embedpdf.com/docs/viewer/vue/customize/menus.md) — A list of items that opens from a button.
- [Add a panel](https://www.embedpdf.com/docs/viewer/vue/customize/panels.md) — Your own list or component next to the pages.
- [Use your own components](https://www.embedpdf.com/docs/viewer/vue/customize/components.md) — Your React, Vue, Svelte or Angular component in the toolbar.
- [Control it from your app](https://www.embedpdf.com/docs/viewer/vue/code/viewer.md) — Open documents, run commands, and follow what happens.

You never write layout code for phones, menus that open the right way, or keyboard focus. You say
what goes where, and the viewer takes care of how it behaves. A menu in a bottom toolbar opens
upward; the thumbnails slide up from the bottom on a phone; a button that doesn't fit moves into
the "More" menu.

## The viewer or headless?

EmbedPDF comes in two forms, built on the same engine and the same plugins:

- **The viewer** is finished. You configure it, theme it, and add your own buttons, menus, panels
  and components.
- **[Headless](https://www.embedpdf.com/docs/headless/vue.md)** is the parts. You build the whole interface yourself, and
  nothing appears on screen unless you put it there.

Start with the viewer. Every feature is a [headless plugin](https://www.embedpdf.com/docs/viewer/vue/code/plugins.md) with the same settings,
and inside the viewer your own components can use the headless hooks. If you outgrow the viewer,
what you learned still applies.

## Local or cloud

The viewer runs on the local engine by default: the PDF opens in the browser, with no server and no
upload, and it works offline.

> **Open a 500-page PDF at once**
>
> With CloudPDF, the file stays on your server and pages arrive as images, so the first page shows
> at once, without downloading the whole PDF or the engine. Every action is checked on the server,
> and annotations and comments are shared live between everyone who has the document open. The
> viewer and your config stay the same.
>
> [Use the viewer with CloudPDF](https://www.cloudpdf.com/docs/viewer/vue.md)

## Next steps

- [Quick start](https://www.embedpdf.com/docs/viewer/vue/quick-start.md) — Install, show a PDF, add your color and your own button.
- [Layout](https://www.embedpdf.com/docs/viewer/vue/customize/layout.md) — Toolbars at any edge, several of them, and every button where you want it.
- [Your own components](https://www.embedpdf.com/docs/viewer/vue/customize/components.md) — Your React, Vue, Svelte or Angular components inside the viewer.
