Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Place Footer in Bottom Of the Page? #559

Closed
syedabuthahirm opened this issue Oct 17, 2019 · 3 comments
Closed

How to Place Footer in Bottom Of the Page? #559

syedabuthahirm opened this issue Oct 17, 2019 · 3 comments

Comments

@syedabuthahirm
Copy link

I would like to place my footer in the bottom of the page.but i didn't find any option available to do.
Is there any way to move the footer to the bottom?

let doc = new jsPDF()
    doc.autoTable({
        head: [['S.NO','Name','Amount','Qty','Total']],
        body: [
          ['S.NO','Name','Amount','Qty','500'],
          ['S.NO','Name','Amount','Qty','350'],
          ['S.NO','Name','Amount','Qty','150']
        ],
        foot: [['','','','6','1000']],
    });
    doc.save('table.pdf');
@simonbengtsson
Copy link
Owner

There is a hook called didDrawPage you can use for this. See the header and footer example.

@syedabuthahirm
Copy link
Author

I am asking about table footer @simonbengtsson not a normal footer after table..

Example:
If i have only 2 rows the foot values are printed after body(by default). but, i would like to put that foot row in bottom of the page. The Header and Footer sections are not part of Table foot option.

@stale stale bot added the stale label Oct 24, 2019
@stale
Copy link

stale bot commented Oct 25, 2019

This issue has been automatically closed since the issues in this project are mainly used for bugs and feature requests. Questions are directed to stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants