-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Access to Current Page [page] and Number of Pages [toPage] outside of headers and footers #1889
Comments
Nope, that can't be done -- it would possibly change the layout of the page, possibly generating new pages ... and so on. |
+1 on this. Today I found myself needing to add something like this in the body: "This document is xx pages long". I'm thinking of doing this in Javascript. The JS in headers / footers are run in a separate context right? So I can't use that to increment a global variable. So I'm planning to computing the number of pages from Like @ashkulz said, after JS replaces the It's also possible to put placeholder text inside the element like |
I need this feature too! Actually, this feature can be veeeery powerfull. Think this way: you have many figures in you webpage. Each figure have a What you can do with this? TABLE OF FIGURES!! In javascript, you can build a But, we don't have this feature (yet) ... :( |
Is this feature still not available? |
Would be great and very useful to have this feature. Thanks! |
Is there any news on this feature? Would be very useful for a project i'm working on. |
Source: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt |
@flyingangel Can you please read the subject? They need outside header or footer! |
I have another way we could use this. |
@louissmsfactor Could you please not revive topics that are years-old just to correct someone else who is trying to help? |
@admcfajn he wrote his answer in september... and he helped nobody, his answer is irrelevant. |
@louissmsfactor you're coming across a bit rude is my point. Frankly cross-posting that relevant info may have helped somebody, i mean really who are you to say "[they] helped nobody". i think you may be underestimating what their small contribution to this thread may have done. In fact, i found it to be helpful reminder just yesterday when i was troubleshooting issues related to this topic If you don't have anything good to say, maybe you should consider not saying anything, or not typing anything as the case may be |
I'm locking this conversation. Although this is obviously good to have, I'm not sure how it can be implemented right now -- the focus right now is upgrading the browser engine (read the project status), this will come after/if it gets upgraded. |
There are many situations where I need to access the page number inside the 'body' of the PDF and not only on headers and footers. Is there a way to do that, or any implementation that can be made to access the data?
Thanks,
Rafael Pólit.
The text was updated successfully, but these errors were encountered: