I have an order form where users place orders and after placing their orders, their is an invoice that is generated with jquery which they are asked to print. I want to be able to take only that div that contains the invoice on the page submit it to an engine or something that will now convert it to pdf, its a table structured order print out. And also how do i make only that portion available when printing so that the printout contains only the order invoice and hides all other potions of the page. Pseudocode:
Function make_pdf($html){
// run thought the submitred html
// create pdf version
// make available for download.
}