PDF print formatting

This commit is contained in:
2021-06-03 12:50:50 -04:00
parent c799a005a9
commit 8b021c234d
2 changed files with 34 additions and 3 deletions

View File

@@ -231,17 +231,19 @@
orientation: 'landscape',
exportOptions: {
stripNewlines: false,
//pageSize : 'A5',
},
customize: function (doc) {
doc.defaultStyle.fontSize = '6'; //<-- set fontsize to 16 instead of 10
doc['content']['1'].layout = 'lightHorizontalLines';
doc.content[1].table.widths =
Array(doc.content[1].table.body[0].length + 1).join('*').split('');
doc.content[1].table.widths = ["5%", "5%", "4%", "10%", "15%", "10%","10%", "6%", "10%", "6%", "5%", "14%"];
// Array(doc.content[1].table.body[0].length + 1).join('*').split('');
},
},
{
extend: 'excel',
text: '<?php echo $transLang['EXCEL']; ?>',
orientation: 'landscape'
orientation: 'landscape',
},
]
}