Articles in this section

How to load the PDF document from URL in PDF Viewer?

The PDF viewer does not support loading the PDF document from the URL directly in the server side. However, you can load the PDF document by converting the URL to ByteArray in the sample level. Refer to the following code snippet. 

string Url = "https://www.syncfusion.com/ebooks/download/jQuery_Succinctly.pdf"; 
 
var WebClient = new WebClient(); 
 
//converts the url to byte array
 
byte[] pdfDoc = WebClient.DownloadData(Url); 
 
//loads the byte array in PDF Viewer 
 
helper.Load(pdfDoc); 

 

Sample link:  

http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewerSample-144513033https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewerSample-144513033

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied