Can I add page numbers when using pdfHtml5 ?
Can I add page numbers when using pdfHtml5 ?
MohammedEhab
Posts: 5Questions: 2Answers: 1
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.
This discussion has been closed.
Answers
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
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 ?
Yes, use the
customize
method of thepdfHtml5
button type to customise the PDF using their API.Allan