chevron_right
close
chevron_right

Get Started

chevron_right

Learn more

chevron_right

Open a document

chevron_right

Viewer

chevron_right

UI Customization

chevron_right

Annotations

chevron_right

Collaboration

chevron_right

Forms

chevron_right

Signature

chevron_right

Measurement

Open a document from URL

If you have a URL for a document, you can pass it either as a constructor option or to loadDocument to open it.

// Passing a URL into the Web Viewer constructor
WebViewer({
  ...,
  initialDoc: 'https://myserver.com/myfile.pdf',
}, document.getElementById('viewer'));

// or

// Passing a URL into the loadDocument method
WebViewer(...)
  .then(function(instance) {
    instance.loadDocument('https://myserver.com/myfile.pdf', { filename: 'myfile.pdf' });
  });