title: How to print a PDF file stored in MemoryStream or PdfDocument or PdfPage object to a printer?
body: <p>I am using <a href="http://www.essentialobjects.com/Default.aspx" rel="nofollow">Essential Objects</a> to convert an HTML file to PDF, it is working perfectly and I can save the PDF to Hard-drive by using the following method.</p>
  
  <pre><code>HtmlToPdf.ConvertUrl(htmlFileName, outputFileName);
  </code></pre>
  
  <p>In addition to convert it to a file, it can also convert it to any .NET Stream object. For example, you can convert it to a <code>MemoryStream</code> object, then retrieve the raw bytes of the PDF file from the MemoryStream and attach it to an email or any other purpose, all without creating any physical file at all by using the following method.</p>
  
  <pre><code>HtmlToPdf.ConvertHtml(htmlCode, memoryStream or pdfDocument or pdfPage);
  </code></pre>
  
  <p>Now my problem is that how can I print the PDF file stored in <code>MemoryStream</code> or <code>PdfDocument</code> or <code>PdfPage</code> to a printer?</p>