PDF Page numbers
PDF Page numbers
How to add page numbers in PDF?
This question has an accepted answers - jump to answer
This discussion has been closed.
How to add page numbers in PDF?
This question has an accepted answers - jump to answer
Answers
You would need to refer to the pdfmake documentation for how to use their API to add that information. Use the
customizecallback of thepdfHtml5button type to customise the document.Allan
thanks a lot for your help
doc['footer']=(function(page, pages) {
return {
columns: [
'Left part of footer',
{
alignment: 'right',
text: [
{ text: page.toString(), italics: true },
' of ',
{ text: pages.toString(), italics: true }
]
}
],
margin: [10, 0]
}
});