29
Views
4
Comments
Solved
[Ultimate PDF] Is there a more efficient way of repeating footer?
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive
Service Studio Version
11.55.33 (Build 64295)

UltimatePDF has RepeatHeading block, which perfectly repeats the header. 

Do you have plans to do something similar for footer?

Currently, I am repeating the footer by using css for the footer container:

    border-top: 1px solid rgb(0, 0, 0);

    bottom: 0px;

    font-size: 10px;

    left: 0px;

    position: fixed;

    right: 0px;

With the above approach, I cannot do much with the spacing of the footer. Currently, the footer and the content are too close to each other. Providing @page {margin-bottom: <num> cm} also does not help since the "footer" is considered part of the content

Is the above the recommended approach for handling the footer? Or, is there a better way to handle this?

I have also noticed that PageNumbers\PageNumber and PageNumbers\PageCount do not work. Kindly give more insights on this.

I have to handle the page number issue by using css as well:

@page {    

margin-bottom: 1cm;    

@bottom-center 

{        

       font-size: 10px;        

       content: "Page " counter(page) " of " counter(pages)    

}

}

I was also expecting PrintLayout\PrintLayout Header and Footer placeholder to handle the repetition based on the description but I had to use RepeatHeading component and the above approach for the footer to achieve my goal


UltimatePDFTest.oml
2025-08-11 10-52-52
Sundar R
Solution

Hi @Rupali Roy Choudhury ,

For repeating the footer, in ultimate pdf we have the print layout block in that by default we have footer placeholder. You just place the footer content in that footer placeholder .It will be automatically repeat the footer.
I have attached the sample screenshot of the structure for your reference.

Thanks!.

RepeatFooter.png
2025-08-07 06-30-56
Amit J
Champion

Its true, but the problem is the margin with footer. its hard to set guess. She is facing issue with that.

2025-08-11 10-52-52
Sundar R

Hi @Amit Jain,

for the ultimate pdf by default we have the custom margin actions also. So that we can set the margins as expected.

UserImage.jpg
Rupali Roy Choudhury

Thanks @sundar r. I tried the approach of ScreenToPDF (as per your screenshot) and it works :) 

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