Hello there. I’m looking for a component that helps me to create a pdf from a page containing image, gridview, html, text and it is styled with a linked stylesheet.
The page is rendered using database and code behind calculations and displayed to the customer. I then have a “save as pdf” button on there. What I don’t want to have to do is recreate step-by-step the entire page again – it’s already there in memory. However, it’s an aspx page and not an html page, so I’m just curious if I can use a tool to just simply output the html generated by the aspx code direct to pdf?
I've seen many examples converting existing ".html" files from a url but I haven't found anything that converts what has just been rendered.
I tried using itextsharp, but it just generates an ugly plain page without formatting colours and styles.