I am generating pdf from jsPDF api , I want to add footer to each page with page number .
How to achieve this . It is having option of adding footer from fromHTML p
Run this function before you run doc.save()
doc.save()
function addFooters() { const pageCount = doc.internal.getNumberOfPages(); for(var i = 0; i < pageCount; i++) { doc.text(String(i),196,285); } }