0 What do you mean by "print to pdf file"?
0 Hi Sameer,
Please find the attached file .This is use ful for you.
Please check it. For this only send div id/class name only. for example in like below
<div id="ele2" class="b">
<h3>Element 2</h3>
<p>
Some other random text.
</p>
<button class="print-link no-print">
Print this ($.print("#ele2")) and skip the button
</button>
</div>
In function like
$(function() {
$("#ele2").find('.print-link').on('click', function() {
//Print ele2 with default options
$.print("#ele2");
});
Now you can print the document like pdf
Thanks