title: Webview is not loading a PDF from an URL
body: <p>Webview is not loading a PDF from url.I am getting <strong>Preview not Available</strong>.</p>
  
  <p>Please any one help on this thanks., </p>
  
  <pre><code>private void loadUrl() {
              String reportStatus = caseList.get(position).getReportStatus();
              mWebView.getSettings().setJavaScriptEnabled(true);
              mWebView.setWebViewClient(new WebViewClient() {
  
                  @Override
                  public boolean shouldOverrideUrlLoading(WebView view, String url) {
                      view.loadUrl(url);
                      return true;
                  }
  
                  @Override
                  public void onPageFinished(WebView view, final String url) {
  
                  }
              });
  
              if (!reportStatus.isEmpty()) {
                  String reportPath = caseList.get(position).getReportPath();
                  String url = "http://docs.google.com/gview?embedded=true&amp;url=" + reportPath;
                  String doc = "&lt;iframe src='" + url + "' width='100%' height='100%' style='border: none;'&gt;&lt;/iframe&gt;";
                  if (!reportPath.isEmpty()) {
                      mWebView.loadData(doc, "text/html", "UTF-8");
                  }
              }
          }
  </code></pre>