Nutrient Web SDK

Vue PDF viewer and editor

  • Mount a document viewer inside a Vue single-file component
  • Assemble, edit, and rearrange PDF pages without a backend
  • Markup, form filling, signing, and redaction in one package
  • Reactive cleanup with the Composition API lifecycle hooks

Need pricing or implementation help? Talk to Sales.

VUE PDF VIEWER

<script setup>
import NutrientViewer from "@nutrient-sdk/viewer";
import { onMounted, onBeforeUnmount, ref } from "vue";
const container = ref(null);
onMounted(() => {
NutrientViewer.load({
container: container.value,
document: "document.pdf",
});
});
onBeforeUnmount(() => {
NutrientViewer.unload(container.value);
});
</script>
<template>
<div ref="container" style="height: 100vh" />
</template>

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

USE CASES

Where Vue teams use it

Document viewing in the UI

Show contracts, reports, and scans inside your Vue app with navigation, search, and zoom that respond instantly to user input.

Client-side page assembly

Let users reorder, rotate, and combine pages in the browser. Then export the finished file — no server round trip needed.

Review and markup flows

Wire annotation tools into review screens so reviewers can comment, highlight, and stamp, with changes written back to the PDF.

Interactive form workflows

Drive data capture with interactive forms — bind field values to your Vue state and read submissions back when users are done.

INTERACTIVE PLAYGROUND

Experiment with the SDK before adding it to your Vue app


One library for the whole Vue document workflow

Vue PDF viewer

A reactive viewer component that slots into your template and stays in sync with your app’s state.


  • Selectable text, search, and zoom
  • Theme it to match your design system
  • Handles long documents efficiently

Vue PDF editor

Rework documents directly in the browser — rearrange pages and revise content. Then hand back the result.


  • Combine, divide, and rotate pages
  • Revise page content in place
  • Export when editing is complete

Markup and review

Expose annotation tools through the UI or script them, and keep every change persisted in the document.


  • Notes, highlights, shapes, and stamps
  • Read and write annotations in code
  • Sync changes for live collaboration


ADVANCED CAPABILITIES

More than a renderer

Forms, signatures, redaction, and headless processing come from the same engine — so a single dependency carries your Vue app across the full document lifecycle.

Nutrient PDF viewer and editor in a Vue app
Forms

Display and complete interactive PDF forms, set values from your app, and collect the results when a user submits.


Signatures

Collect electronic signatures and apply certificate-based digital signatures that can be validated later.


Redaction

Strip sensitive content for good, with search-driven redaction you can repeat across many documents.


Headless mode

Skip the UI entirely for conversion, extraction, and generation jobs that run in the background.



FREE TRIAL

Ready to get started?

Add a PDF viewer and editor to your Vue app in minutes — no payment information required.

Frequently asked questions

How do I build a PDF viewer in Vue?

Install the SDK with npm install @nutrient-sdk/viewer, declare a template ref for the container element, and call the load method inside the onMounted hook. Unload it in onBeforeUnmount so the component cleans up. See the viewer guide for a full walkthrough.

Can I edit PDFs in a Vue app?

Yes. The Vue PDF editor runs client-side — rearrange and rotate pages, revise content, and export the document, all without a server. See the editor guide for the available operations.

Does it work with Vue 3 and the Composition API?

Yes. The examples use script setup with reactive refs and lifecycle hooks. Because the SDK is plain client-side JavaScript, it works the same way with the Options API or in a Nuxt project. The Web SDK guides cover integration patterns.

How do I show annotations in Vue?

Annotation tools appear in the viewer UI by default, and you can also create or update annotations from code and persist them to the document. See the annotations guide for the API surface.

Is this a full Vue PDF library or just a viewer?

It’s a complete library: viewing, editing, annotations, forms, signing, redaction, and search all ship together. You avoid stitching several single-purpose packages into one Vue component. Browse the full set in the Web SDK guides.

How do I handle PDF forms in Vue?

Interactive forms render in the viewer so users can complete them, and you can set or read field values from your component logic. See the forms guide for details.

Can I sign and redact documents?

Yes. The SDK supports electronic and digital signatures and permanent redaction of sensitive content. See the signatures guide and the redaction guide.

Do I need a backend to run it?

No. It runs entirely in the browser as a standalone library, so a Vue single-page app can view and edit documents on its own. Add Document Engine when you need synced collaboration or server-side processing. See the Web SDK guides.