Can I add page numbers when using pdfHtml5 ?

Can I add page numbers when using pdfHtml5 ?

MohammedEhabMohammedEhab Posts: 5Questions: 2Answers: 1
edited October 2016 in Free community support

Hi, I am asking if it's possible to add something like pagination, as if I have a lot of records in a table, I think it'll be distributed to several pages, is it possible to add page number in the bottom of each page ?

Thank you,
Mohammed.

Answers

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    Probably, but I don't know. You'd need to refer to the pdfmake documentation for information on how their API works. pdfmake is the library that Buttons uses to create the PDF.

    Allan

  • MohammedEhabMohammedEhab Posts: 5Questions: 2Answers: 1
    edited October 2016

    Hi, @allan
    Yes, I checked it before, it mentions how you can create PDFs from some javascript lines, but I can't actually use their instructions with DataTables, I mean is there any place to add extra code, which is the PDFMake codes ?

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    Yes, use the customize method of the pdfHtml5 button type to customise the PDF using their API.

    Allan

This discussion has been closed.