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

Measurement

play_arrow

PDF.js Express REST API

play_arrow

Import & export annotations

PDF.js Express Web Viewer is able to import and export PDF annotations with the XFDF format. XFDF is an XML-based standard that is able to represent information about annotations. Saving and loading annotations in PDF.js Express is the process of saving and loading this XFDF data.

PDF and XFDF

Note: Annotations made in the web viewer can only be baked into the underlying PDF document using the PDF.js Express REST API.

We will go through relevant APIs and examples for different scenarios in the following guides:

Importing and exporting annotations using a file
To import and export XFDF annotations using a file.

Importing and exporting annotations using a database
To import and export XFDF annotations using a database.

Learn more

A short introduction to XFDF file format
An introduction to XFDF file format