I know this is an old post, and maybe this is not quite what you are looking for, but maybe it will help you (or others) anyway:
var divContent = document.getElementById('yourDiv').innerHTML,
printWindow = window.open("", "", "width=800, height=600");
printWindow.document.write(divContent);
printWindow.print();
, HTML PDF. , .