Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var doc = new jsPDF('l');
- doc.autoTable({
- didDrawPage: function() {
- doc.fromHTML(content, {
- 'width': 2000
- });
- }
- });
- doc.autoTable(Columns(), data, {
- html: '#content-table',
- headStyles: {
- halign: 'center'
- },
- tableWidth: 'auto',
- margin: {
- right:0,
- left:0,
- top: 80
- },
- });
- doc.setTextColor(100);
- doc.save(pdfName + '.pdf');
- }
- let pdfName = 'test';
- var content = $('#content').html();
- var data = this.wreport;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement