$(document).ready(function() { $('#example').DataTable( { dom: 'T<"clear">lfrtip', tableTools: { "sSwfPath": "../swf/copy_csv_xls_pdf.swf" } } ); } );

# Setting the SWF path

TableTools uses a Flash SWF file to provide the ability to copy text to the system clipboard and save files locally. TableTools must be able to load the SWF file in order to provide these facilities. If you aren't using the same directory structure as the TableTools package, you will need to set the `sSwfPath` TableTools parameter, as shown in this example.

Note that TableTools ships with two different SWF files - the only difference between them is that one of them provides the ability to save PDF files while the other doesn't. The trade off is that the PDF capable file is significantly larger in size (56K v 2K).