const options = { type: 'html5', path: 'lib', ... }; this.webViewer = new PDFTron.WebViewer(options, viewerElement);
this.webViewer.loadDocument(url, { customHeaders: { 'field': 'val' } });