title: Load PDF from Memory ASP.Net
body: <p>I am using ITextSharp to generate pdf on the fly and then saving it to disk and display it using Frame.</p>
  
  <p>The Frame has an attribute called src where I pass the generated file name.</p>
  
  <p>This all is working fine what I want to achieve is passing the generated pdf file to Frame without saving it to disk.</p>
  
  <pre><code>HtmlToPdfBuilder builder = new HtmlToPdfBuilder(PageSize.LETTER);
  HtmlPdfPage first = builder.AddPage();
  
  //import an entire sheet
  builder.ImportStylesheet(Request.PhysicalApplicationPath + "CSS\\Stylesheet.css");
  string coupon = CreateCoupon();
  first.AppendHtml(coupon);
  
  byte[] file = builder.RenderPdf();
  File.WriteAllBytes(Request.PhysicalApplicationPath+"final.pdf", file);
  printable.Attributes["src"] = "final.pdf";
  </code></pre>