Change font size of the PDF

Change font size of the PDF

RoyarRoyar Posts: 1Questions: 1Answers: 0
edited December 2015 in Free community support

Hey below is my code,
```$('#example').DataTable({
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "../Content/copy_csv_xls_pdf.swf",
"aButtons": [
"xls",
{
"sExtends": "pdf",
"sNewLine": "auto",
"sPdfMessage": "List of product.",
"sButtonText": "Pdf",
"oSelectorOpts": {
page: 'current'
},

                }
            ]
        },

});```

Now the data is not formated well in the exported pdf, and i would like to change the font size so that the data can fit in the columns? any suggestions?
And is there a way to add footer to the pdf or style the table in the pdf?
I have tried
"fnCellRender": function (sValue, iColumn, nTr, iDataIndex) { if (iColumn === 0) { var result = (jQuery(sValue).text()).replace(/\s+/g, ''); return result; } },
But the problem is to get rid of the html elemts.

This discussion has been closed.