DataTables Export PDF
DataTables Export PDF

Necesito cambiarle el Tipo de letra 'Arial' y el tamaño '10'
quise usar doc.defaultStyle.fontSize = 10;
doc.defaultStyle.font = 'Arial';
pero no me exporta con eso, así que lo aplique como este ejemplo:
{
extend: 'pdfHtml5',
title: 'Portal Fiscalizador Reporte de Asistencia',
customize: function (doc) {
doc.styles.title = {
fontSize: '10',
alignment: 'center',
fontFamily: 'Arial'
};
doc.styles.tableBodyEven = {
fontSize: '10',
fontFamily: 'Arial'
};
doc.styles.tableBodyOdd = {
fontSize: '10',
fontFamily: 'Arial'
};
doc.styles.tableFooter = {
fontSize: '10',
fontFamily: 'Arial'
};
}
},
Y tampoco me reconoce el Arial
Replies
See if this thread helps.
Kevin