Multiple Tables in Single PDF print

Multiple Tables in Single PDF print

kencoleaukencoleau Posts: 17Questions: 5Answers: 0

Hi,

dataTables 1.10.13

I searched and found references to my problem but no answers it would seem for the version I am using.

I have on a single page multiple dataTables each with their own html5 buttons working nicely.

I would like to have another PDF button that will put all the tables on that page in one PDF.

How can I achieve this please?

Ken

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,099Questions: 1Answers: 10,391 Site admin
    Answer ✓

    As you'll probably have seen in the other answers to this question, there isn't a built in way of doing this. You would need to use the customize callback of the pdfHtml5 button type, in combination with the pdfMake API (refer to the pdfMake documentation for details about that) to add the second table.

    Allan

  • varunrayenvarunrayen Posts: 1Questions: 0Answers: 0

    Could you please explain a bit more on how can this be achieved. Thanks!

  • allanallan Posts: 63,099Questions: 1Answers: 10,391 Site admin

    Sorry no - as I don't know myself. As I noted above you'd need to refer to the pdfMake documentation as this is something that is outside the scope of DataTables.

    Allan

This discussion has been closed.