Title PDF

Title PDF

fasme2hfasme2h Posts: 1Questions: 0Answers: 0
edited January 2011 in TableTools
Hi,
how can add a title in a pdf file?

i tried this way

[code]
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "pdf",
"fnClick": function( nButton, oConfig, flash ) {
this.fnSetText( flash,
"title:My document\n"+
"colWidth:"+ this.fnCalcColRatios(oConfig) +"\n"+
"--/TableToolsOpts--\n" +
this.fnGetTableData(oConfig)
);
}
}
]
}
} );
} );
[/code]

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Hmm - that doesn't really look like it's working to me - sorry, there is a bug somewhere in there. I'll take a look before the next release of TableTools (hopefully this week) and let you know.

    Allan
  • prkarthikprkarthik Posts: 13Questions: 0Answers: 0
    edited July 2011
    Hi allan,



    Can we use fnCalcColRatios in all other options for proper column width and text alignment.
This discussion has been closed.