NEW CASE STUDY: Save 18 Months of Development. See Why Juume AI Chose Apryse.

WebViewer: JavaScript Document SDK

WebViewer is a fully client-side SDK for high-fidelity document viewing, annotation, conversion, and editing across 30+ formats, including PDF, Office, CAD, images, videos, and websites.

Power High-Stakes Document Interactions in Your Product

WebViewer runs the document layer of applications, where the document is the work: contracts that get signed, claims that get approved, and filings that have to be exact. More of that content now comes from an LLM or an extraction pipeline, but review can’t be automated. Someone still has to verify what the model produced.

WebViewer is where that verification happens. High-fidelity rendering, search, redaction, annotation, comparison, and editing sit beside the source document in your own UI, so a reviewer can confirm or correct model output and act on it without switching tools.

Add the Viewer to Your App

Install the package, point it at a document, and mount it to an element on the page. Wrappers for React, Angular, and Vue are available. Test WebViewer against your own files in the live demo.

import WebViewer from '@pdftron/webviewer'

const viewerElement = document.getElementById('viewer');

WebViewer({
  path: '/webviewer/lib',
  initialDoc: '/path/to/doc.pdf',
}, viewerElement).then(instance => {
  // call apis here
});

In-Browser PDF and Office Editing

WebViewer’s advanced editing add-ons extend the core viewer with PDF, DOCX, and spreadsheet editing. Enable each capability as needed using the same API and UI framework, so the integration and interface stay consistent across all three.

Sanity Image

PDF Editor

Users can edit text and images directly inside a PDF, and rearrange paragraphs and images on the page

Sanity Image

DOCX Editor

Full Word editing: text and paragraph styling, tables, headers and footers, images, and track changes, all on the original DOCX

Sanity Image

Spreadsheet Editor

Enable editing of XLSX, XLS, and CSV with cell formatting, formulas, multi-sheet workbooks, and charts, in a familiar grid

Document Interaction & Processing Capabilities

REVIEW AND COLLABORATION
Sanity Image

Review and Collaboration

Choose from 35+ annotations or create custom markup, with support for collaborative review.

VIEW CAPABILITIES
TEXT EDITING
COMPARISON
REDACTION
FORM CREATION
DIGITAL SIGNATURES
MEASUREMENT
PAGE MANIPULATION
DOCUMENT GENERATION
Sanity Image

One SDK for PDF, Office, CAD, and Images

One SDK and one JavaScript API cover every file type your app handles: viewing and annotation for PDF and 30+ formats, including Office (DOCX, XLSX, PPTX) and common image formats, as well as editing for PDF, DOCX, and Excel files in the browser. Learn it once and reuse it everywhere, instead of stitching together a separate library per format.

Sanity Image

Build Workflows That Fit Your Application

Configure toolbars, panels, theming, and navigation to match how your users work, then ship it inside your existing application. WebViewer's modular UI is WCAG 2.2 Level AA-compliant by default, so accessibility is one less thing to retrofit.

Sanity Image

Control Document Behavior with APIs

Everything in the viewer is scriptable through the JavaScript API: drive the viewer programmatically, respond to document events, and wire interactions into your app. Processing runs in the browser via WebAssembly, so document content is never transmitted to Apryse’s infrastructure, which keeps on-premise and air-gapped deployments straightforward.

What Developers Build with WebViewer

AI Document Review

A human review step for model-generated or extracted content, before it enters your system.

Contract Lifecycle Management

A browser-based contract review and approval flow with redlining and digital signatures.

Document Management Systems

A unified document viewer for PDF, Office, and image files, with annotation and search.

Claims Processing

In-workflow document verification with redaction and form-based data capture.

Compliance & Audit

A version comparison and approval audit trail for compliance workflows.

Customer Onboarding

An embedded document experience for onboarding: form filling, e-signature collection, and document review in one step.

Why Teams Choose WebViewer

WebViewer is the only JavaScript SDK that views and edits PDF, DOCX, and spreadsheets natively in the browser, through one consistent, WCAG 2.2 Level AA interface, from a single vendor, with no server dependency for processing.

Sanity Image
Sanity Image

Client-Side

Client-side WebAssembly processing. Document content never leaves the browser.

Sanity Image

Start Building

Grab a free trial key with full access to every add-on, read the docs, or open the live demo and load one of your own files.

WebViewer FAQs