Free trial

Pick a framework to get started

close

Get Started

play_arrow

Learn more

play_arrow

Common use cases

play_arrow

Open a document

play_arrow

Save a document

play_arrow

Viewer

play_arrow

UI Customization

play_arrow

Annotations

play_arrow

Collaboration

play_arrow

Forms

play_arrow

Signature

play_arrow

Searching

play_arrow

Measurement

play_arrow

PDF.js Express REST API

play_arrow

Migration Guides

play_arrow

PDF.js Express Documentation

PDF.js Express is a commercial PDF web viewer that wraps around the PDF.js open-source rendering engine. It offers developers a way to quickly add annotation, e-signatures, and form filling to their PDF viewer. Compatible with all JavaScript frameworks, the viewer can be directly embedded and customized within any web application.

Try online demo
PDF.js Express in 2 minutes (video)
Samples
API reference

Inside PDF.js Express

The PDF.js Express web viewer package contains three main components: webviewer.js, the UI, and the Core. webviewer.js is the main entry point of this package that uses UI and Core to render the PDF.js Express app inside an iframe.

Details of instantiation
PDF.js Express' iframe
Browser support

Getting Started

A quick step-by-step tutorial to get you up and running in minutes.

Integrate via NPM
Integrate manually
Framework compatibility

Open/Export Documents

Documents can be loaded from a URL, blob, base64, or with the filesystem, while documents can be exported for storage on a server.

Open with URL
Open with Blob
Open with base64
Open with filesystem
Save as a blob

Customizing the UI

PDF.js Express has a responsive UI that is completely open-source, giving developers the freedom needed to build unique, world-class user experiences and, ultimately, a successful product.

Overview
Customizing toolbar buttons
Customizing color & style
Hiding & disabling buttons

Annotation

PDF.js Express imports annotations into the viewer through XFDF data. They can be created by the user through the UI, or programmatically. Annotation data can be imported or saved to a server/database. Annotation data can be imported or saved to a server/database, or merged directly into a document with a REST API.

Overview
XFDF format
Saving and loading annotations
Merge and extract annotations
Custom annotations
Annotation permissions
Annotation events/triggers

Adding More Functionality

Collaborating in real time
Working with forms
Signatures
Measuring distance, perimeter and area