title: C# HTML to PDF code for use in a service (on a server)
body: <p>I'm looking for some C# code to create a .PDF document on a server from an HTML page that is rendered.  The structure and content of the HTML that I want to convert to .PDF is pretty simple (DIV, TABLE, IMAGE, etc.) so I need code that will:</p>
  
  <ol>
  <li>Create a document that is savable by the client browsing (after they click Save As .PDF)</li>
  <li>Process a stream of HTML and convert it into .PDF</li>
  <li>Handle adding images into the document</li>
  <li>Specify the resolution (?) of the document - it will be something I would want to be print quality (high DPI and the images I embed would be high resolution)</li>
  </ol>
  
  <p>I have seen many questions on this but after searching for an hour or so I was unable to find a good starting point to build off of.  Any pointers would be great... ideally I'm looking for some source code that I can use and not a purchasable component or a web service that does it all.</p>