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:
- Create a document that is savable by the client browsing (after they click Save As .PDF)
- Process a stream of HTML and convert it into .PDF
- Handle adding images into the document
- 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)
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.