Add multiple lines before exporting table content to pdf

Add multiple lines before exporting table content to pdf

astvoipastvoip Posts: 2Questions: 1Answers: 0

Hi Allan/Everybody
I have bought your data table license in 2015.
Can you please let me know how can I add Add multiple lines before exporting table content to pdf.

Here is my code so far where I can only write a single line before the table content starts.
But I want to write multiple lines.
tableTools:
{
aButtons:
[
{
extends:"pdf",
"sButtonText" : "Save as Pdf",
"sPdfOrientation" : "landscape",
"sPdfMessage" : "test message"
}
]
}
Waiting for your reply.
Thanks.
Regards,
Roy

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Hi Roy,

    There is no option for that in the legacy TableTools software I'm afraid. TableTools is no longer updated and was replaced by Buttons. With that the pdfHtml5 button type has a customize method which you can use to extensively modify the generated PDF through the pdfmake library's API.

    Allan

  • astvoipastvoip Posts: 2Questions: 1Answers: 0

    Hi Allan,
    Thanks for the Info. Can you please send me an concrete example how to use this button library together with your license so that I can add multiple lines before the start of the table.
    Also let me know which css, js I need to include at the start of my html file for that.
    Thanks.
    Regards,
    Roy

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    This example shows how to use messageTop to create a message at the top of the export files.

    Buttons is MIT licensed and doesn't require any special license.

    Allan

This discussion has been closed.