I researched a lot and could not figure out how to customize the pdf report header that I generated from the plugin; For example, the "sTitle": "Groups" is the title that is in the header, but it comes out with the default styling of the plugin, and also do not know how to add a subtitle with its own style, center, add a date, etc.
The following table call follows:
$("#dinamicTable").dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "webroot/libs/datatables/js/media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{
"sExtends": "pdf",
"sTitle": "Grupos"
},
{
"sExtends": "xls",
"sTitle": "Grupos"
}
]
}
});
And the Table:
<table id="dinamicTable" class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th width="10%">ID</th>
<th>GRUPO</th>
<th width="10%">STATUS</th>
<th width="10%">OPÇÕES</th>
</tr>
</thead>
<tbody>
<?php foreach ($view_grupos as $grupo) : ?>
<tr>
<td><?php echo $grupo['grup_id']; ?></td>
<td><?php echo $grupo['grup_nome']; ?></td>
<td align="center"><?php echo $grupo['grup_status']; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th>ID</th>
<th>GRUPO</th>
<th>STATUS</th>
<th>OPÇÕES</th>
</tr>
</tfoot>
</table>