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

JavaScript

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

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

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales