如何更改数据表中的导出PDF字体大小?

时间:2018-08-23 19:39:58

标签: javascript datatable

我想更改报告数据表pdf中的字体 例, 非常感谢您的帮助,这就是我所拥有的

buttons: [
        {

            extend: 'colvis',
            extend: 'pdfHtml5', 

            header: true,
            //title: 'sys',
            orientation: '',
            pageSize: 'letter',
            fontSize: '10',
            font: 'Courier new',

            exportOptions : {
              columns : [0,1,2,3,4,5,6], 
                stripHtml : false 
                },

            customize: function ( doc ) {

                 doc.styles.tableHeader = {
                     fillColor:'#525659',
                     color:'#FFF',
                     fontSize: '10',
                     alignment: 'left',
                     bold: true,    
                    // font:''

                  },  //para cambiar el

0 个答案:

没有答案