Is there a way we can detect end of page ? I want to have separate custom footers for all pages based on data on each page. So footers will be different on all pages. I see headers and footers are being parsed before the content.