title: Convert a html div to a pdf
body: <p>I have a sort of bill generated in my web page which gets displayed in a div id "bill". I want that when the user clicks print, everything that is displayed in the "bill" div gets converted to pdf and it opens up automatically in another web page(tab) so that the user can print it? Can anyone help me with the code for it?</p>