We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

View a Memory Stream

Can the PDF Viewer render a MemoryStream?  I've seen a couple of threads in the Javascript area asking and debating but all of the links don't work to any of the samples.   The documentation for the Vue component is pretty non- existent so should I try to get things working using the Javascript version if it is possible?  What I'm hoping to do is to get a .NET Web API  to take parameters and generate a PDF memorystream report.  Is this possible?

7 Replies

MS Mohan Selvaraj Syncfusion Team May 17, 2019 07:24 AM UTC

Hi William,  
 
Thank you for contacting Syncfusion support.  
 
We can render the PDF document as MemoryStream in the PDF viewer control using web api controller. We have created the PDF viewer web API controller to load the PDF document as MemoryStream and Vue application. Please find the sample from the following link. 
 
 
 
UG documentation: 
 
Please run the web service application and provide the url to serviceUrl property before launching the Vue sample in the browser.  
 
Kindly refer the below links for creating PDF viewer web service. 
 
 
 
Please let us know the more details about your requirement if the provided solution does not meet your requirement. 
Thanks, 
Mohan S. 



WM William Morgenweck May 17, 2019 11:11 AM UTC

That looks perfect.  I'll try to convert the controller to VB.Net since my WEB API is VB. You don't happen to have a convert VB version available, do you?


MS Mohan Selvaraj Syncfusion Team May 17, 2019 12:33 PM UTC

Hi William, 
 
We can use web service application in VB platform and created the same for your reference. Please find the PDF viewer web service project in vb from the below link. 
 
 
Note: Please run the web service application and set the web service application url to the serviceUrl property of PDF Viewer control (ex: serviceUrl: 'http://localhost:64220/api/PdfViewer' ).  
 
Regards, 
 Mohan S  



WM William Morgenweck August 5, 2021 06:37 PM UTC

Hi-- It's been awhile and I was wondering if you can make the following links active again.  Thank you

Vue sample: http://www.syncfusion.com/downloads/support/forum/144670/ze/vue-quickstart1540046083  


http://www.syncfusion.com/downloads/support/forum/144670/ze/PdfViewer_service_VB211772046  




DM Dhivyabharathi Mohan Syncfusion Team August 6, 2021 12:50 PM UTC

Hi William, 
 
 
We have shared the sample for Vue and .Net Core web service. Please find the sample from the below links, 
 
 
 
 
 
 
Kindly try this and revert us, if you have any concerns. 
 
 
Regards, 
Dhivya, 
 



WM William Morgenweck August 8, 2021 01:41 PM UTC

Can I plug the MVC components into an existing 4.7.2 ASP.Net Framework without any trouble or should I stand up a completely separate .Net Core application to handle the PDF functions?


Thanks


B




DM Dhivyabharathi Mohan Syncfusion Team August 9, 2021 11:41 AM UTC

Hi William, 
 
 
Syncfusion PDF Viewer can use the Asp.Net Core and Asp.Net MVC as the server side application. However, you cannot use the Asp.Net Core application in the .Net MVC framework. You need to create a separate web service for Asp.Net Core platform. We have shared the KB and UG documentation links to create your own web service in the Asp.Net Core and Asp.Net MVC platforms. 
 
 
 
 
UG documentation for creating web service in MVC platform: https://ej2.syncfusion.com/documentation/pdfviewer/how-to/create-pdfviewer-service/  
 
 
 
 
Kindly try this and revert us, if you have any concerns. 
 
 
Regards, 
Dhivya. 


Loader.
Live Chat Icon For mobile
Up arrow icon