Articles in this section
Category / Section

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

1 min read

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
Please sign in to leave a comment
Access denied
Access denied