Table tools logo in the pdf

Table tools logo in the pdf

DekariDekari Posts: 20Questions: 1Answers: 0
edited November 2013 in TableTools
Hello!

Is there any chance to have my company logo placed in the PDF export from the datatable i have?

Also can i change the PDF extra message (sPdfMessage) AFTER the datatable's initialisation (for example to put a dynamically created message..)

thanks!

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    edited November 2013
    There is no option for that in TableTools at the moment. It would be possible to add by modifying the TableTools Javascript and ActionScript that interfaces with the AS3 AlivePDF library, as it has a image class which could be used, but as I say, its not part of the core software.

    Allan
  • DekariDekari Posts: 20Questions: 1Answers: 0
    ok and about setting the pdf's title after initialisation... (e.g. the moment that the user press the pdf button?)
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    You would need to use the fnClick callback and replace the default TableTools PF generation one. Otherwise it can currently only be set at initialisation.

    Allan
  • DekariDekari Posts: 20Questions: 1Answers: 0
    ok i understood.. haven't found it here (http://datatables.net/extras/tabletools/api) as reference..

    can you provide me a simple example how to use it?

    thanks!
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    This is the default click handler for the PDF button: https://github.com/DataTables/TableTools/blob/master/media/js/TableTools.js#L2304 . And there is an example of how to use fnClick in the documentation here: http://datatables.net/extras/tabletools/button_options#fnClick .

    Allan
  • DekariDekari Posts: 20Questions: 1Answers: 0
    thanks! worked like a charm :)
This discussion has been closed.