pdf_message.xml 808B

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <dt-example table-type="html" order="1">
  3. <css lib="datatables tabletools" />
  4. <js lib="jquery datatables tabletools">
  5. <![CDATA[
  6. $(document).ready(function() {
  7. $('#example').DataTable( {
  8. dom: 'T<"clear">lfrtip',
  9. tableTools: {
  10. "aButtons": [
  11. "copy",
  12. "csv",
  13. "xls",
  14. {
  15. "sExtends": "pdf",
  16. "sPdfOrientation": "landscape",
  17. "sPdfMessage": "Your custom message would go here."
  18. },
  19. "print"
  20. ]
  21. }
  22. } );
  23. } );
  24. ]]>
  25. </js>
  26. <title lib="TableTools">PDF message</title>
  27. <info><![CDATA[
  28. This example shows how you can add a message to the saved PDF using the `sPdfMessage` parameter. It also shows that the orientation of the output PDF can be changed to landscape which is useful if you have a lot of columns.
  29. ]]></info>
  30. </dt-example>