If you have the file data as a base64 string, the best way to load the document in WebViewer is to first convert it to a Blob and then load it as described for Blobs. Below is some example code showing how to convert base64 to a Blob.
WebViewer provides various options to load a document. Whether you are loading a document through the initialDoc
option in the constructor or calling loadDocument
after mounting, you can always provide options to load your document.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales