Vue PDF Viewer summer sale icon

Summer Sale: Get 35% OFF 🎉 Buy Now

Vue PDF annotation plug-in. One prop. Done.

Add highlight, underline, strikethrough, free text, and image overlay annotations to PDF documents in your Vue 3 or Nuxt app. The plug-in drops into the Vue PDF Viewer with a single prop, no extra wiring needed.

Vue PDF annotation plug-in. One prop.

Everything Your Users Need to Mark Up a PDF

Vue PDF Viewer's annotation plug-in covers the markup tasks reviewers actually do: comment on text, leave a note, drop in a logo or signature image. Every annotation type is configurable, and users can save their work back into the PDF.

PDF text selection highlighted with annotation controls

Text Selection Annotations

Let users highlight, underline, or strike through any text in the PDF. Each style supports custom colors, so reviewers can flag different categories of feedback at a glance.

Editable free text box placed inside a PDF document

Free Text Annotations

Add editable text boxes anywhere on the page. Configure font size, color, and opacity to match the document or your application's brand.

Image overlay annotation placed on a PDF page

Image Overlay

Drop an image onto any page. Supports apng, avif, bmp, gif, jpeg, png, svg, webp, and x-icon. Use it for stamps, logos, or signature images.

Custom annotation colors and styles inside Vue PDF Viewer

Customizable Appearance

Configure colors, fonts, opacity, and stroke styles for every annotation type. Set the defaults that fit your application instead of accepting whatever ships out of the box.

Annotated PDF document with a download action

Save Annotations into the PDF

Users can print the document or download a new PDF file with the annotations baked in. The output is a standard PDF other tools can open, share, and archive.

PDF annotation view beside a code editor for programmatic control

Programmatic Control

Hook into annotation events with callback functions. Capture create, update, and delete actions to persist annotations to your own backend, sync them across users, or trigger downstream workflows.

Activate the Annotation Plug-In with One Prop

The annotation plug-in is a separate package that the Vue PDF Viewer accepts through its `plugins` prop. Install it, import it, pass it in. That's the integration.

Install

npm install @vue-pdf-viewer/viewer @vue-pdf-viewer/annotation

Use

<script setup>
import { VPdfViewer } from '@vue-pdf-viewer/viewer'
import { VPdfAnnotation } from '@vue-pdf-viewer/annotation'
</script>

<template>
  <VPdfViewer
    src="document.pdf"
    :plugins="[VPdfAnnotation()]"
  />
</template>

The same pattern works in Composition API, Options API, and Nuxt projects. Configuration options (default colors, allowed tools, callbacks) get passed into `VPdfAnnotation()` as an options object. The full reference lives in the  annotation plug-in documentation.

Built On Top of a Full Vue PDF Viewer

Annotation tools are only as useful as the viewer around them. If reviewers can't search a 200-page contract, jump to a section, or read on a tablet, the annotation feature stops mattering. Vue PDF Viewer ships with the surrounding experience already built.

See all features
Vue PDF Viewer virtual scrolling through a long document

Virtual scroll for long documents

Render hundreds of pages without freezing the browser. Annotations stay attached to the right page even when the document scrolls past hundreds of others.

PDF search panel with match case and whole word options

Search with match-case and whole-word options

Reviewers can find what they need to annotate instead of scrolling for it.

Vue PDF Viewer displayed in a mobile responsive layout

Mobile responsive layout

The viewer adapts to tablet and phone screens with a configurable trigger point. Highlighting, free text, and image overlay all work on touch devices.

Vue PDF Viewer shown with dark and light themes

Light and dark theme

Built-in dark mode plus full CSS variable theming. Annotations render correctly in both.

Localization language options for Vue PDF Viewer

Built-in localization

Five languages ship by default and a custom language can be added through the localization API. Annotation tooltips and labels translate alongside the rest of the viewer.

Configurable Vue PDF Viewer toolbar controls

Customizable toolbar

Show, hide, replace, or reorder toolbar tools through slots. Build your own toolbar entirely if the default doesn't fit.

FAQ iconFAQ

Frequently Asked Questions

Add PDF Annotations to Your Vue Project

Free trial available. No credit card needed. Production-ready in minutes, not weeks.

Vue PDF Viewer showing a highlighted PDF annotation and annotation toolbar