Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Repeatable Header

Avatar

Former Community Member

Hello,

I have a task to create a pdf form that will display data from the database.

This page has at least 2 pages, but the number of pages can grow based on the amount of data that comes fr

Each page should have header and footer that always must be at the same place.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Put the header and footer boilerplate in the master page. Adjust the content area to handle your variable content.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 7

Put the header and footer boilerplate in the master page. Adjust the content area to handle your variable content.

Avatar

Former Community Member

Thanks a lot for your advise! That made perfect sense.

May I ask you another question, please?

I have a footer on the bottom of the page and this footer must stay in the same location all the time.

If the data, that is entered into the text field above the footer is too big to fit and I need to break the contend of this text box and move it to another page.

How can this be accomplish?

I made some changes during the design, but it looks that something is missing.

1. The text box allows multiple lines, allows page breaks withing content, and it is wrapped into the subform

2. The subform is set to flowed and allow page breaks within content is checked

But the data still goes over the footer.

Thank you.

Avatar

Level 7

Make sure all your subforms (including the root) are set to flowed.

Avatar

Former Community Member

Thanks a lot for your advise!

Everything is working as I wanted!
But I ran into another issue.

I would truly appreciate your advise if you know what the problem is.

When I try to assign values to the text fields on the subform inside the Master Page these fields are not visible.

Here is the hierarchy of my form

form1

      MasterPage1

             Page1

                   sfHeader

                            txtName

Thank you.