|
But I am not sure whether I need to use the Syncfusions's url since I am not using any server-side methods to load the PDF in my code. |
Our PDF Viewer control is both server and the client side oriented. So the serviceURL is required for rendering the PDF Pages in our PDF Viewer control. We request you to create the service URL from your side using the steps provided in the following link,
Since , our service URL is exposed only for demo purpose.
Note: Create the web service as provided in the above link and run the Service and copy the (localhost:xxx) and use the same in the serviceUrl PDF Viewer property in PDF Viewer sample. |
|
If possible could you elaborate on the necessity of using the serviceUrl for every instance of the pdfViewer? |
The serviceURL is required for rendering the PDF page in our PDF Viewer control. The PDF document or base64 string which is loaded in the client side will sent the request to the server side(with the help of the url which has provided in the serviceURL property)and we will process the data in our server side and will return the response to the client side with the details for rendering the PDF pages. |
|
Can I just use the serviceUrl provided by you as a global constant and use it where ever I try to instantiate the pdf viewer component!? Will there be any problem with doing so? |
Yes, you can use this as the global constant and can provide the same to the serviceUrl property on instantiate the pdf viewer component. |