title: Convert WebView to PDF
body: <p>I'm trying to take a WebView and convert it to a PDF. I've got the code working to convert the view to an image but would rather have a PDF.</p>
  
  <pre><code>public void ConvertToPDF(UIWebView webView)
  {
      RectangleF canvasRect =  view.Bounds;
      CGPDFInfo info = new CGPDFInfo();
      info.AllowsPrinting = true;
      UIGraphics.BeginPDFContext (Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.Personal),"MyDocument.PDF"), canvasRect, info);
      UIGraphics.BeginPDFPage ();
      CGContext gctx = UIGraphics.GetCurrentContext ();
  
      view.Layer.RenderInContext (ctx);
  
      UIGraphics.EndPDFContent ();
  }
  </code></pre>
  
  <p>All I get with above code is a blank pdf.</p>
  
  <p>Thanks,
  Rick</p>