If your document is already in Blob format you can pass the Blob object directly to loadDocument function.
WebViewer(...)
.then(instance => {
instance.loadDocument(myBlob, { filename: 'myfile.pdf' });
const { docViewer } = instance;
docViewer.on('documentLoaded', () => {
// perform document operations
});
});
WebViewer(...)
.then(instance => {
instance.UI.loadDocument(myBlob, { filename: 'myfile.pdf' });
const { documentViewer } = instance.Core;
documentViewer.addEventListener('documentLoaded', () => {
// perform document operations
});
});