{ extend: 'pdfHtml5', pageSize: 'A4', orientation: 'landscape', exportOptions: { columns: [ 1, 2, 3, 4, 5, 6, 7 ], alignment: 'right', }, customize : function(doc) { doc.content[1].table.widths = [ '10%', '28%', '12%', '18%', '12%', '10%', '10%']; var rowCount = doc.content[1].table.body.length; for (i = 1; i < rowCount; i++) { doc.content[1].table.body[i][5].alignment = 'center'; doc.content[1].table.body[i][6].alignment = 'right'; }; }, footer: true },
Tags:
Tutorial Javascript