How to use pdf view loading base64

Hello everyone,
I have a doubt in the use of ejs-pdfviewer as I can display a pdf that is in base64 format so that it is displayed in the control. 
I have the data already loaded without the need for another request. 
moreover I do not understand the necessity of the serviceUrl field since the data in my case are already in memory.


1 Reply

AA Akshaya Arivoli Syncfusion Team March 4, 2020 08:49 AM UTC

Hi Adriano, 

Thank you for contacting Syncfusion support. 

Please find the details of your query from the below, 

Query 
Details 
I have a doubt in the use of ejs-pdfviewer as I can display a pdf that is in base64 format so that it is displayed in the control.  
We can load the PDF document as base64 string in PDF Viewer during the control initialization using the documentPath API. Also we can load the base64 string dynamically using the load() API. We have created sample for the same and shared in the below link, 


I have the data already loaded without the need for another request.  
moreover I do not understand the necessity of the serviceUrl field since the data in my case are already in memory. 

Our PDF Viewer control is both server and the client side oriented. PDF viewer control processes the PDF document in the server side(developed with .NET environment) and send the processed PDF data as JSON data to the client using the web service to render the PDF document and for further operations in PDF viewer. 

So we need to provide the webservice project link in the serviceUrl property of the PDF Viewer for rendering and further processing in PDF Viewer.  

Please refer to the below links to created PDF Viewer web service project, 




Please try it and revert us with more details about your requirement and the use case scenario, if you have concerns with the provided details. It will be helpful for us to investigate further and assist you better. 

Regards, 
Akshaya 


Loader.
Up arrow icon