I want to use the control PDF viewer using Web, Using CDN link for script and style reference .

Hi,

I want to use the control PDF viewer using Web, Using CDN link for script and style reference .

I am using the following link for reference.

https://www.syncfusion.com/kb/10866/how-to-view-pdf-document-using-web-pdf-viewer-in-html5

your provided demo ( in step 3) is working fine , but if i change the documentPath for other PDF , it shows error in response (like pdf not found) [Image Attached].

Whether a server side code has to be included in this scenario.

Please provide me the support / guideline for the same.

Error in response




1 Reply 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team February 4, 2021 04:33 PM UTC

Hi Bilbuk, 
 
Thank you for contacting Syncfusion support. 
 
 
Our PDF Viewer control is both server and client-side oriented. PDF viewer control processes the PDF document on the server-side and sends the processed PDF data to the client using the web service to render the PDF document and for further operations in PDF viewer. You can create your own web service by using the steps in the below KB link. We have shared the web service for your reference. 
 
 
Web service: 
 
 
Note: For loading other PDF Documents, we need to place the pdf document inside the web service project in the location ej2-pdfviewer-web-service\wwwroot\Data\ PDF_Succinctly.pdf to render the PDF documents. 
 
Kindly try it and revert us, if you have any concerns about this. 
 
Regards, 
Dhivya. 


Marked as answer
Loader.
Up arrow icon