I'm using pdfmake to create pdf, so i want to know how to get total amount of items on the current page and maybe put the Total on the footer. for example:
| Name | Price |
|---|---|
| item 1 | 250 |
| item 2 | 300 |
| item 3 | 500 |
Then the footer will be (Total 1050)
next page
| Name | Price |
|---|---|
| item 1 | 150 |
| item 2 | 200 |
| item 3 | 100 |
Then the footer will be (Total 450) and so on.
How do i do that using pdfmake because i can only get page numbers but not Totals.
Thank you