Здравствуйте, ребята, я ищу js-код, куда я могу добавить несколько строк сообщения при экспорте в PDF
$(document).ready(function() {
var printCounter = 0;
// Append a caption to the table before the DataTables initialisation
$('#example1').DataTable( {
dom: 'Bfrtip',
buttons: [
'copy',
{
extend: 'pdf',
footer:true,
message:'this is line1',
title: 'This is title',
orientation: 'landscape',
messageTop: 'The information in this table is copyright to Sirius Cybernetics Corp.',
},
{
extend: 'pdf',
messageBottom: null
},
{
extend: 'print',
messageTop: function () {
printCounter++;
if ( printCounter === 1 ) {
return 'This is the first time you have printed this document.';
}
else {
return 'You have printed this document '+printCounter+' times';
}
},
messageBottom: null
}
]
} );
});
Я хочу знать, как я могудобавить message:
в pdf файл?