Edit in JSFiddle

$(document).ready(function(){

	//pdf 다운로드 	
	$("#pdfDownloader").click(function(){
	
        html2canvas(document.getElementById("printDiv"), {
            onrendered: function(canvas) {

                var imgData = canvas.toDataURL('image/png');
                console.log('Report Image URL: '+imgData);
                var doc = new jsPDF('p', 'mm', [297, 210]); //210mm wide and 297mm high
                
                doc.addImage(imgData, 'PNG', 10, 10);
                doc.save('sample.pdf');
            }
        });

	});
	
	
})
<script src="https://mrrio.github.io/jsPDF/dist/jspdf.debug.js"></script>
<script src="https://mrrio.github.io/jsPDF/examples/js/basic.js"></script>
<button type="button" id="pdfDownloader">Download</button>
<div id="printDiv">
  <h2>Hello World</h2>
  <p>
    this content will be printed.
  </p>
</div>