i have problem about how to create button which will downloading PDF file for one div.
i tried window.print() like this :
$(document).ready(function(){
        $('#printBtn').on('click',function(){
            window.print();
        });
    });
and save it as PDF file. i don't know other ways than that and i don't want to save it on server first.
 
    