title: How to convert a pdf to a memory stream
body: <p>I am writing an application in MVC4.</p>
  
  <p>I have a physical pdf file on the server. I want to convert this to a memory stream and send it back to the user like this:</p>
  
  <pre><code>return File(stream, "application/pdf", "myPDF.pdf");
  </code></pre>
  
  <p>But how do I convert a pdf file to a memory stream?</p>
  
  <p>Thanks!</p>