Use jspdf as formatted table

I am using jspdf for make a table as pdf when user click a button.Pdf makes successfully but data is not formatted as table.

my code

var doc = new jsPDF();
var specialElementHandlers = {
'#editor': function (element, renderer) {
return true;

$('#gen_pdf').click(function () {
doc.fromHTML($('#make_pdf').html(), 15, 15, {
'width': 170,

    'elementHandlers': specialElementHandlers


and table

<div class="form-group" id="make_pdf">
                    <table id="tbl" class="table table-bordered">
                        <td>Course Code</td>

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!