Export PDF with the last column not visible

Export PDF with the last column not visible

nimtramMHnimtramMH Posts: 1Questions: 1Answers: 0

I have several tables initialized with the same function an each one of them have buttons in the last column.
I decided to add the option to export to PDF but the problem is that the last column is also visible.

How can I do so that the last column of all the tables is not shown in the PDF?

I was thinking in:

    columnDefs: [
        { visible: false, targets: -1 }
    ]

columnDefs makes the column not visible everywhere but I just want it not to be shown in the pdf.

Note: each table has a different number of columns.

</td><td>POBO06031842</td
<td>0000000016</td>
<td>4</td>
<td>200</td>
<td>2018-04-27 09:50:14</td>
<td class="text-right" style="">
   <a href="#" class="btn btn-simple btn-warning btn-icon edit">
       <i class="material-icons">dvr</i>
   </a><a href="#" class="btn btn-simple btn-danger btn-icon remove">
       <i class="material-icons">close</I>
   </a>
</td>

Please Help

Answers

This discussion has been closed.