Loading PDF to PDFViewer in Angular 6 under asp.netcore 2

Hi
From documentation seems that a serverside PDFViewer for asp.netcore 2 angular is not supported.  
Instead i have used the following clientside code

var pdfviewer=$(“#viewer).data(ejPdfViewer);
pdfviewer.load(HTTP Succinctly);   
This code is documented that the load parameter is the base64 string from the client. On my side i have decided instead of a string coming from client it comes from the server where i have defined a C# code in a controller
return Convert.ToBase64String(System.IO.File.ReadAllBytes(path_to_pdf_file))
What i get is just a white pdfviewer file without a  a visible loaded PDF file. Is there a sample which i can achieve the same?



1 Reply

KK Karthik Krishnaraj Syncfusion Team August 20, 2018 09:13 AM UTC

Hi Ayubu, 

Thank you for contacting Syncfusion support, 

At present we do not have support for PDF viewer in ASP.NET core platform. In PDF viewer, the PDF document data are parsed in the server side and sent to the client for rendering, so the provided code snippet will not work for ASP.NET Core. 

We have already added it to our feature request list for “Support for PDF viewer in ASP.NET Core” and it will be available from our Essential Studio Volume 4 release which is expected to be rolled out in the month of December, 2018. 

Regards, 
Karthik. 


Loader.
Up arrow icon