title: PDFsharp document outofmemory exception
body: <p>I have a PDF document created using PDFsharp.  This pdf document has 1000 pages. I am trying to save this 1000 pages PDF document into memory stream. It gives out of memory exception while storing the document in stream. Can anyone help? Here is the code:</p>
  
  <pre><code>       var pdf = createPDFSharpDocument(); // some logic that makes the pdfsharp document.
          var stream = new MemoryStream();
          pdf.Save(stream, false);
         //some logic to use the stream that is generated
  </code></pre>