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

dynamic Header/ footer #60

Closed
rich25200 opened this issue Apr 24, 2017 · 3 comments
Closed

dynamic Header/ footer #60

rich25200 opened this issue Apr 24, 2017 · 3 comments

Comments

@rich25200
Copy link

Hi,

I would like create a dynamic header and footer for the last page. It is possible?

I saw that I just can create the same header and footer with local options.

Thanks

@pofider
Copy link
Owner

pofider commented Apr 24, 2017

You can try to hide the header with javascript for the last page, however you cannot change the size for example.

Check the example here
https://jsreport.net/learn/phantom-pdf#page-numbers

@rich25200
Copy link
Author

How I can know if I am on the last page?

@pofider
Copy link
Owner

pofider commented Apr 24, 2017

Just extend the linked example and use "{#pageNum} === {#numPages}"

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

No branches or pull requests

2 participants