PDF Export table width

PDF Export table width

mstojanovmstojanov Posts: 3Questions: 1Answers: 0
edited February 2016 in Free community support

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

Replies

  • mstojanovmstojanov Posts: 3Questions: 1Answers: 0

    Anyone?

  • edselmattedselmatt Posts: 1Questions: 0Answers: 0

    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.

This discussion has been closed.