JAVASCRIPT PDF VIEWER

One PDF viewer to rule them all

Integrate advanced document viewing, annotations, forms, signing, and editing capabilities into your web apps using any JavaScript framework. Whether you prefer the convenience of client-side rendering and processing or powerful server-side performance and security, we have you covered.


JAVASCRIPT PDF VIEWER

Customizable to match your use case and brand

hero background

Ship faster

Build faster with our JavaScript PDF viewer’s easy setup, detailed documentation, and plug-and-play code. Process PDFs client-side and offline, with server support for performance and security.

Save on engineering time

Save time and resources by choosing to build with our JavaScript PDF viewer. No more bugs and open source nightmares. Just performant document support without the headaches.

Customize the UI to your needs

Seamlessly blend our web viewer into your app through your own custom UI and brand identity so that no user would ever know you didn’t build it yourself.

AI at your fingertips

Deliver AI functionality with AI Assistant. Whether you’re looking to add AI summarization, translation, redaction, data extraction, or comparison, our web viewer is the simplest way to add intelligence to your documents.


What will your web app do with documents?

Nutrient Web Viewer SDK is a modular JavaScript bundle you can drop into any stack today and extend tomorrow.

View and collaborate

Render large PDFs instantly, layer on markups and threaded comments, and watch feedback appear live.

Create and edit

Add, reorder, or rewrite pages and build dynamic forms in a browser — zero desktop tools.

Finalize and sign

Apply tamper‑proof eSignatures, run pixel‑perfect diffs, and scrub sensitive data before release.

Integrate AI and automation

Ask a document anything, classify content, generate PDFs, and auto‑convert at scale with one endpoint.

Secure and comply

Output long‑term PDF/A, enforce encryption, and breeze through audits with built‑in accessibility standards.

WEB PLAYGROUND

Looking for the code? Come play in our sandbox

CODE EXAMPLES

Render PDFs instantly in any web app

Drop in a viewer that’s fast, framework-friendly, and fully client-side — no server, no setup.

Basic Example

import PSPDFKit from "pspdfkit";
const instance = await PSPDFKit.load({
container: "#pspdfkit",
document: "<pdf-file-path>",
licenseKey: "YOUR_LICENSE_KEY_GOES_HERE"
});
console.log("PSPDFKit for Web is ready!");
console.log(instance);
Example integration and guides

npm

Yarn

Migration guide

PDF.js

Reasons to build with Nutrient

Nutrient SDKs and Cloud APIs add full document lifecycle support to any platform, tech stack, or infrastructure in minutes. The same technology meets Fortune 500 requirements while helping startups ship fast.

Ready for context engineering

Clean documentation, drop-in code, and MCP hooks for both hands-on developers and AI agents.

Build for and deploy anywhere

Web, mobile, desktop, server, or Nutrient Cloud — with no lock-in.

Secure and accessible

SOC 2 Type II and WCAG 2.2-compliant workflows with PDF/UA-accessible documents.

AI-first document workflows

Built-in document AI with support for leading LLMs and their private implementations.

See what our customers love about our SDK products

"Great tool that covers one of our product’s core functionalities."

DMYTRO H.
PRINCIPAL ENGINEER

"A true partner in delivering value for our customers."

KIM T.
SMALL BUSINESS (50 OR FEWER EMPLOYEES)

"The software is reliable and easy to integrate with."

VERIFIED USER IN COMPUTER SOFTWARE
MID-MARKET (51–1,000 EMPLOYEES)

DEPLOYMENT OPTIONS

Choose the right deployment option for you

Nutrient Web Viewer SDK operates fully client-side with in-browser processing, or it can be combined with either Document Engine or DWS Viewer API for server-side document streaming, real-time collaboration, and powerful performance.

Web Viewer SDK
Web Viewer SDK + Document Engine
DWS Viewer API
User interface
HTML5-based
HTML5-based
HTML5-based
Deployment
Viewer: In-browser via WebAssembly
Viewer: In-browser
Rendering: Self-hosted (with Docker), or managed by Nutrient
Viewer: In-browser
Rendering: Hosted in the cloud by Nutrient
Rendering
Client-side
Server-side
Server-side
Key notes
  • Deploy instantly with JavaScript and the Baseline UI design system
  • Handle form filling and annotations using XFDF or Instant JSON
  • Opt to keep documents offline and in the browser for added security
  • Leverage for lightweight workflows or prototyping without infrastructure
  • Stream pages on demand for faster load times and large file handling
  • Secure document access with JWTs and manage at scale
  • Enable real-time collaboration and document syncing with Instant
  • Access server-side features like OCR, AI Assistant, and advanced processing
  • Stream documents from the cloud with fast, consistent performance
  • Enable form filling, annotations, and signing with no backend setup
  • Support real-time collaboration via Instant
  • Keep documents off devices — content stays secure in the cloud
  • Access advanced features like OCR and Office conversion
Documentation

PROVEN AT SCALE

Trusted by the brands that move the world


Renders multipage PDFs and signature tags with Nutrient, keeping 200 million users in 188 countries moving at the speed of eSignature.


Rolled out nationwide PAdES-compliant signatures with the Nutrient PDF SDK, letting every Austrian citizen sign official documents securely in seconds.


Construction ERP powering one‑quarter of ENR’s Top 400 contractors embeds Nutrient SDKs for mobile drawing management across iOS, Android, and Web, slashing developer time and fueling double‑digit growth.


FREE TRIAL

Ready to get started?

Start building with Web Viewer SDK in minutes — no payment information required.


JavaScript PDF viewer

What is a JavaScript PDF viewer?

A JavaScript PDF viewer is a developer toolkit that enables embedding powerful PDF features — like viewing, editing, annotating, and signing — directly into web applications using JavaScript. Nutrient’s web PDF SDK delivers high-performance rendering, a customizable UI, and built-in tools for collaboration, redaction, and compliance — all without relying on external apps.

  • Fast, high-fidelity PDF rendering in the browser
  • Full support for annotations, editing, and signing
  • Drag-and-drop viewer customization with JavaScript APIs
  • Secure client-side processing with optional server-side support
  • Works across all modern browsers and JavaScript frameworks
How to choose the right JavaScript PDF viewer?

When picking a JavaScript PDF viewer, developers should prioritize flexibility, performance, and ease of integration. Here’s what to consider:

  • Rendering speed and fidelity — Can it handle large PDFs without lag or errors in rendering?
  • Full customization — Does it allow deep customization of the user interface, such as the toolbars and layout?
  • Browser compatibility — Is it stable across all major browsers, such as Chrome, Firefox, Safari, and Edge?
  • Accessibility — Does it support encryption, redaction, and digital signatures?
  • Build versus buy — Do you have advanced feature needs that aren’t supported by open source? Do you want to maintain, bug fix, and/or secure patches yourself on top of open source, or would you rather get that from a commercial library?
How does Nutrient JavaScript PDF viewer solve my web viewing PDF needs?
  • Fast, high-fidelity viewer — Ten years of development on top of a PDFium engine lets even multi-GB PDFs render quickly in any browser.
  • Complete toolkit in one SDK — Viewing, 17 annotation types, form fill/creation, page edits, redaction, measurement, Office/CAD image support, and eSigning all ship together.
  • Secure and standards-compliant — Runs fully client-side if you need; supports WCAG 2.1 AA/PDF-UA; and validates digital signatures for eIDAS, HIPAA, and GDPR workflows.
  • Drop-in and customizable — Clean JavaScript API with React/Vue/Angular examples, plus a modular, themeable UI that can be branded or slimmed down in minutes.
  • Built for production — Regular releases, SLA-backed enterprise support, clear licensing and indemnification — saving months you’d spend stitching together open source parts.
What are the benefits of using Nutrient’s JavaScript PDF viewer?

Nutrient (formerly PSPDFKit) is built for developers who want control, speed, and flexibility without compromise — perfect for embedding rich PDF workflows directly into your browser-based app.

  • Fast setup, faster performance — Load and display complex or large PDF files in seconds.
  • Customize everything — Toolbars, buttons, layouts — tweak it all with clean JavaScript APIs.
  • Rich feature set — Viewing, markup, form filling, digital signing, redaction, and more.
  • Lightweight and secure — Processes files in the browser or server-side, depending on your use case.
  • Scalable for enterprises or startups — Built for everything from internal tools to high-traffic apps.
How does Nutrient’s JavaScript PDF viewer compare to other PDF solutions?

Nutrient Web Viewer SDK is the best in its category for being flexible, fast, and easy to use for developers. This is especially true when you want to use our full PDF functionality without giving control to other viewers.

  • More customization — Tailor the viewer and tools to your exact UI/UX needs.
  • Superior speed — Handles embedded fonts, complex layouts, and large PDFs effortlessly.
  • Superior DX — Integrate quickly into any frontend stack with the best developer experience on the market.
  • Accessibility out of the box — Keyboard navigation, screen reader labeling, PDF/UA tagging, and a WCAG-conforming UI help you hit Section 508 and EN 301 549 targets.
  • Documentation you’ll actually like — Clear examples, interactive demos, and fast-start boilerplate code.

Frequently asked questions

What core features does Nutrient Web Viewer offer?

Our web viewer is a JavaScript PDF viewer that developers can integrate to enable their users to view, annotate, edit, and sign PDF documents directly within their web applications. It supports high-fidelity rendering, form viewing and filling, redaction, text editing, text comparison, measurement tools, comments, and so much more.

Is the JavaScript PDF viewer compatible with various JavaScript frameworks?

Yes. Nutrient Web Viewer SDK is designed for seamless integration with all major JavaScript frameworks, including React, Angular, Vue, Svelte, and Next.js. It requires only a DOM container for appending the viewer, ensuring flexibility across different development environments.

Can the JavaScript PDF viewer be customized to match the look and feel of an application?

Nutrient Web Viewer SDK makes it easy to customize every part of the user interface. Our robust API for configuring behavior and appearance lets you hide or add buttons, change the theme to match your look and feel, trigger workflows, create overlays, and much more. See our user interface customization guide for more details.

Does the JavaScript PDF viewer support client-side processing, and what are its benefits?

Yes. Nutrient Web Viewer SDK supports completely in-browser client-side PDF processing and rendering by leveraging the latest WebAssembly technology. This approach offloads processing to the browser, reducing server dependency, enabling offline processing, and providing the ability to integrate it into other low-code applications on major business platforms like Salesforce, SharePoint, Mendix, and more.

What deployment options are available for the JavaScript PDF viewer?

Nutrient Web Viewer SDK supports three flexible deployment options to fit your technical needs:

1) A fully client-side deployment that runs entirely in the browser powered by WebAssembly technology.

2) A paired deployment with Document Engine for advanced control and server-side performance.

3) Integration with our cloud-hosted DWS Viewer API for backend-performant features without any backend setup.

The variety of deployment options gives you the freedom to choose the best model for your application and use case needs.

Is the JavaScript PDF viewer compatible with various browsers and platforms?

Yes. Nutrient Web Viewer SDK ensures compatibility across all major web browsers, including Chrome, Firefox, Safari, Edge, and Firefox ESR. It also supports cross-platform applications, ensuring consistent performance on desktop and mobile and in cloud-based solutions.

How does the JavaScript PDF viewer ensure document security and compliance?

Nutrient Web Viewer SDK supports features — including digital signatures, redaction, and encryption — that enable users to maintain document security and compliance with regulations such as GDPR, HIPPA, and more. Our client-side deployment inherently ensures data privacy by only processing documents on the client’s device. Nutrient is SOC 2 Type II certified and continuously monitors, maintains, audits, and updates internal security procedures, in addition to regularly engaging in third-party penetration testing of all software.