Currently I\'m writing a Privacy policy for apps that I put in PDF format.
May I ask about how to open PDF file for Xamarin.Forms?
Any references Source Code?
Hosted PDF Files are not opening in Webview. as iOS Webview can open PDF, While android Webview can not open the PDF Files. so if PDF url is Public, Then you can use below code for Android without use any library as well as you did not required to platform specific code.
var pdfUrl = "http://yourdomain.com/pdffile.pdf";
var googleUrl = "http://drive.google.com/viewerng/viewer?embedded=true&url=";
if(Device.RuntimePlatform == Device.iOS)
{
webView.Source = pdfUrl;
}
else if(Device.RuntimePlatform == Device.Android)
{
webView.Source = new UrlWebViewSource() { Url = googleUrl + pdfUrl };
}