You dynamically change the content of headers of footers, as the page
numbers are provided in the query arguments. The header and footer are
generated after the pages are printed, so they cannot have dynamic
height. You need to either modify wkhtmltpdf to find the location of
those elements and provide them to the header/footer generation, or
you can use some hack.
One hack you can use is to output hidden <h1 > tags together with the
specific html tags you are looking for, and then not use h1 for
anything else in the document. The content of the last <h1> tag can
then be found in the ?section=xxx query parameter.
If you need something more specific than this, you will have to modify
wkhtmltopdf, to figure out what modifications to make, it would be
good to look at how we currently generate the section query parameter.
/Jakob
> --
> ===================================================
> You received this message because you are subscribed to the "wkhtmltopdf General" group.
> To post to this group, send email to
wkhtmltop...@googlegroups.com
> To unsubscribe from this group, send email to
wkhtmltopdf-gen...@googlegroups.com
>
> For more options, visit this group at
>
http://groups.google.com/group/wkhtmltopdf-general?hl=en?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "wkhtmltopdf General" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
wkhtmltopdf-gen...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.