Load file from Base64 string using standalone viewer

Hello, I am attempting to load a PDF from a base64 string as opposed to a file. This works fine when I specify a service url, but fails on pdfViewer.Load() with the following error when I do not specify the service url:

Cannot read properties of undefined (reading 'style')

I would much rather use the standalone viewer. Is this use case supported, and if so any advice on how to get past this 


1 Reply

SK Sathiyaseelan Kannigaraj Syncfusion Team May 10, 2024 02:14 PM UTC

Hi Chris,

Below, we have provided a simple sample where a base64 string is loaded into the load API, and it is working fine. Please confirm whether the issue occurs in this sample. If the issue does not occur in this sample, kindly modify it to replicate the issue.

Sample: https://stackblitz.com/edit/rphad6?file=index.js,index.html 


Regards,
Sathiyaseelan K


Loader.
Up arrow icon