235
Views
11
Comments
Solved
[Ultimate PDF] How to hide footer on a certain page?
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Traditional Web

Hello!

Does anybody know if it's possible to exclude the footer on a certain page?

Right now when I add a footer this will be shown on ALL pages.


Thanks in advance!

2024-03-04 12-06-32
Flávio Monteiro
Solution

Thank you for the answer.

We found a solution that worked for our specific case. The content that was in the header (that was supose to appear only on the first page) we put it in the content of the PrintLayout.

2018-08-06 13-40-17
Ramakrushnarao Seera

Hi Kevin,

Enclose the Footer in If statement in your layout. Add an input parameter to your screen. which will basically works as condition to display or no-display of your footer.


Regards,

Rama


2021-09-15 05-03-23
Mercia Zaayman

I have the same issue, I want to display my footer only on the last page of my pdf but how do I pass this parameter as a condition?

2025-04-17 05-42-16
Ajit Kurane

Hi KEVIN,

Enclose the footer in if statement and set validation. It will work.

2021-09-15 05-03-23
Mercia Zaayman

That is just where I need help.   What is the condition to check if I am on the last page since I don't know how many pages there will be

2019-03-12 12-28-20
Shivangi Thakur

Hi Mercia,

Did you get solution for this?

2021-09-15 05-03-23
Mercia Zaayman

nope - we rewired our logic to not have a footer on the last page :(

2019-03-12 12-28-20
Shivangi Thakur

How did u do that? Have footer on all pages except last or few? 

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi.

With version 5.0, it's now possible to define multiple headers/footers by using multiple PrintLayout blocks on the same report. So you could use a different PrintLayout for your last page, and only define the footer in that PrintLayout instance.

Let me know if this helps.

2024-03-04 12-06-32
Flávio Monteiro

Hi,

Im so thankfull with this new update I really need this for a problem I have in a client.
Just one question. How do I implement this?

For example my first page has footer and header but i dont want the rest of the pages to have header.
If i have 2 diferent PrintLayout the text I have in the first page will not continue in the second page right?

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Flávio.

Each PrintLayout block defines a set of pages, with their own header and footer. If the first PrintLayout block spans multiple pages, all of these pages will have the same header and footer. Only after the content of the first PrintLayout is complete, is that the second PrintLayout will be rendered. Of course, there will be a forced page break between each PrintLayout.

Does this help you in your scenario? What information are you displaying in the header and footer of the first page?

2024-03-04 12-06-32
Flávio Monteiro
Solution

Thank you for the answer.

We found a solution that worked for our specific case. The content that was in the header (that was supose to appear only on the first page) we put it in the content of the PrintLayout.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.