DataTables Export PDF
DataTables Export PDF
![Sol_12](https://secure.gravatar.com/avatar/9c70a3456a971b17315be72127efef55/?default=https%3A%2F%2Fvanillicon.com%2F9c70a3456a971b17315be72127efef55_200.png&rating=g&size=120)
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