Convert a webpage from HTML to PDF?

advertisements

I have a website with the following structure: Tab Container - having 4 Tab panels Each tab panels is having 4 gridviews which are separated by line break.

Now when i am in a particular tab, I want to use an 'export to pdf' button , which should generate a pdf having 4 gridviews visible in this tabpanel. Same for all other tabpanels.

I have searched enough, found may articles telling about using itextsharp, wkhtmltopdf, pdf generators etc, however I dont seems to find fully implemented functionality anywhere.

Can anyone guide/suggest anything ?


I always use wkhtmltopdf to convert a html page to pdf. (you will need server access to install it though)

It works very well, looks the same as the web site and saves text as actual text (in vectors).