// Assume you have a webView instance (WebView) already createdvoidLoadPdfInWebView(){stringyourPdfUrl="https://yourwebsite.com/sample.pdf";stringurlPath="http://docs.google.com/gview?embedded=true&url="+yourPdfUrl; //...webView.LoadURL(URLString.URLWithPath(urlPath));}
Loading local pdf
Here we will make use of Mozilla's pdf.js project for rendering the pdf locally.