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: