PDF Export table width
PDF Export table width
mstojanov
Posts: 3Questions: 1Answers: 0
Hello.
I'm having an issue with PDF export table.
The width is not auto and is too small. Is there any way to add table rows height or to make it auto height to stretch at the end.
Here is my current config:
extend: 'pdfHtml5',
text: 'Export PDF',
orientation: 'landscape',
customize: function ( doc ) {
doc.pageMargins = [12,12,12,12]
}
http://postimg.org/image/5r1bry4ql/
Any help will be appreciated
This discussion has been closed.
Replies
Anyone?
yah..there is a way..edit the datatables JS file, find t.table.widths="auto", change it to t.table.widths="*".
You might also want to change of the table header find:
tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"
set it to left or the table body.