Jspdf-autotable: Page counter if page size > 1

Created on 14 Dec 2020  路  2Comments  路  Source: simonbengtsson/jsPDF-AutoTable

In the example is already shown how you can do a page counter but what if I don't want to show it if it is only one page?

question

Most helpful comment

Interesting question! I'd look at writing all of the page numbers after the table is drawn instead of in the didDrawPage hook. That way you can check if it is more than one page or not.

All 2 comments

Interesting question! I'd look at writing all of the page numbers after the table is drawn instead of in the didDrawPage hook. That way you can check if it is more than one page or not.

Yea that did the work. An example is listed here: https://github.com/MrRio/jsPDF/issues/1340#issuecomment-319313368

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alorse picture Alorse  路  4Comments

ultra2 picture ultra2  路  6Comments

azakordonets picture azakordonets  路  5Comments

bsparacino picture bsparacino  路  3Comments

prakashsam picture prakashsam  路  4Comments