Open pdf from DotNetStream

Good day,

Currently I have a WASM hosted Blazor site. I have files that are fetched from blob storage into a DotNetStreamReference, which his then uses JsRuntime.InvokeVoiceAsync to call a js function that converts the stream into arrybugger, then into Blob, and finally creates a url object view URL.createdObjectURL(Blob). This is then triggered to a link that opens the PDF.

However, I would like to change that to open in the new pdf viewer. Before trying to implement and add the service, would I be able to use the object URL to open to the PDF in the viewer?

Thank you


1 Reply

VV Visvesvar Venkatesan Syncfusion Team July 25, 2023 08:21 PM UTC

Kindly find the documentation to load the PDF file Dynamically.

 

Documentation : https://blazor.syncfusion.com/documentation/pdfviewer/how-to/show-or-hide-pdfviewer-dynamically

 

Kindly try this and let us know if you have any concerns.


Loader.
Up arrow icon