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

Why is the viewer showing "Network Failure"?

This error likely means the initial document does not exist (we may have updated the SDK package). Try setting initialDoc to something like https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf

WebViewer({
  path: '../../../lib',
  initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf'
}, document.getElementById('viewer'))
.then((instance) => {
  // load the PDF from URL, Blob, Filesystem or Base64 data
  instance.loadDocument(e.target.value);
});

which is a demo document online, or to another local PDF file on your system within the root directory tree for the project.