Hi Ishwor,
Thank you for using Syncfusion products
At present we do not have support to load the PDF document straight away from URL in SfPdfViewer in Xamarin. However, As a work around we can achieve it by downloading the PDF document from URL as Stream using WebClient and load the downloaded stream into SfPdfViewer to display appropriate PDF document in Xamarin.Android application.
Please find the code snippet below to download the PDF document from URL as a Stream using WebClient.
Code Snippet:
private Stream DownloadPdfStream(string URL)
{
//Initialize WebClient
WebClient webClient = new WebClient();
// Initialize Uri
var uri = new System.Uri(URL);
//Returns the PDF document stream from the given URL
return webClient.OpenRead(uri);
} |
We have also attached the sample in the below link for your reference.
Please let us know if you need any other assistance.
Regards,
Sathish