half of the datatable in pdf file is coming code example
Example: datatable pdfHtml5 pagesize
{
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'TABLOID', // TABLOID OR LEGAL
footer: true,
}
{
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'TABLOID', // TABLOID OR LEGAL
footer: true,
}