Cover page for Datatables-generated pdf? Or flexible margins?

Cover page for Datatables-generated pdf? Or flexible margins?

ziglertronziglertron Posts: 2Questions: 1Answers: 0

We're using datatables to generate printable reports on a vast amount of data -- we're being asked to include either some specific header data or a cover page for these printable reports. This header data is really too much to include in a top margin which is why we're trying to see if it's possible to have a cover page generated. Has anyone tried this or would know how to go about doing it for the PDF-version of a datatables table? Cover page would remain the same for all tables generated -- it would just have a hard-coded title.

Or alternatively, is it possible to have margins that change on a page-by-page basis? If anyone has insight, would greatly appreciate it.

Replies

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    You'd need to refer to the pdfmake documentation for this. pdfmake is the library that Buttons uses for the PDF export and you can modify the document structure that defines the pdf using the customize callback of the pdfHtml5 button type.

    Allan

This discussion has been closed.