PDF print formatting
This commit is contained in:
@@ -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',
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user