I have a dataset with large number of colums.
When exporting the pdf , columns that dont fit on the page get cut off.
I tried using the 'orientation' and 'page-size' options but its not enough.
buttons: [
{
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'LEGAL'
}
]
Ideally it should do one of the following:
thanks @parlad , however Below is the perfect solution -
{
extend : 'pdfHtml5',
title : function() {
return "ABCDE List";
},
orientation : 'landscape',
pageSize : 'A0', // You can also use "A1","A2" or "A3", most of the time "A3" works the best.
text : '<i class="fa fa-file-pdf-o"> PDF</i>',
titleAttr : 'PDF'
}
pageSize : 'A0', does the trick :), but you can also use A1
, A2
or A3
,
Hope it helps to others.
i managed to solve this problem with setting option for pdf like
{
extend : 'pdfHtml5',
title : function() {
return "ABCDE List";
},
orientation : 'landscape',
pageSize : 'LEGAL',
text : '<i class="fa fa-file-pdf-o"> PDF</i>',
titleAttr : 'PDF'
}
became
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With