Table of contents on PDF

Table of contents on PDF

eliasmazureliasmazur Posts: 5Questions: 2Answers: 0

I'm using the pdfHTML5 to generate PDF out of the datatables. I know that the latest version of pdfmake allows for the creation of table of contents. How can I do it from the PDF button on my datatable?

Thanks.

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    The customize callback of the pdfHtml5 button type is how you can modify the pdfmake document structure that has been generated by Buttons.

    Allan

  • eliasmazureliasmazur Posts: 5Questions: 2Answers: 0

    Thanks for the reply. I just realized that the pdfmake version included in datatables for pdfHtml5 does not support table of contents. I tried to include the new pdfmake library after the datables but it doesn't seem to work.

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    Perhaps you can link to a test case showing the issue? Are there any errors shown or anything? I haven't looked at the latest pdfmake releases for a while, so if they have changed their API, it might well be that something is not compatible now.

    Allan

This discussion has been closed.