Download a div in a HTML page as pdf using javascript

I have a content div with the id as “content”. In the content div I have some graphs and some tables. I want to download that div as a pdf when user click on download button. Is there a way to do that using javascript or jQuery?

90 thoughts on “Download a div in a HTML page as pdf using javascript”

  1. Hey there! I’ve been following your weblog for some time now and finally got the
    courage to go ahead and give you a shout out from Houston Tx!
    Just wanted to say keep up the good job!

    Reply
  2. Hey there, I think your site might be having browser compatibility issues.

    When I look at your blog site in Firefox, it looks fine but
    when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that, terrific blog!

    Reply

Leave a Comment