I've got a set of forms that are going into one easy to use PDF. There are a couple of flowable content areas, some of which will probably require extra pages. Each page has its own header, ie, "Staff Positions....Form 1" (where "Staff Positions" is on the left, "Form 1" is on the right, spaced out evenly). Typically, when an additional page has been used, we've adjusted headers to read "Staff Positions (Cont).......Form 1". For the life of me, I can't figure out the best way to add the "(Cont)" onto each header for the subsequent pages. My thoughts are:
Are there any other / better options? I'm trying to simplify as much as possible (for the sake of smaller file sizes and more efficient operation), so I'm always open to suggestions.
Thanks in advance.
Solved! Go to Solution.
Hi,
Would it be possible to structure your form to use a Table object? This would handle repeating the header at the top of each page, then you can change the heading text when the table spans a page.
See this example https://acrobat.com/#d=p-BTpkDl*5rAVEfo03PdPA
This uses a floating field in the header to contain the text "continued" or is blank and the following code in the initialise event of the floating field.
if (xfa.layout.pageSpan(Table1) > 1)
{
this.rawValue = "continued";
}
Regards
Bruce
Hi,
Would it be possible to structure your form to use a Table object? This would handle repeating the header at the top of each page, then you can change the heading text when the table spans a page.
See this example https://acrobat.com/#d=p-BTpkDl*5rAVEfo03PdPA
This uses a floating field in the header to contain the text "continued" or is blank and the following code in the initialise event of the floating field.
if (xfa.layout.pageSpan(Table1) > 1)
{
this.rawValue = "continued";
}
Regards
Bruce
For those pages, it's very likely that I could do just that! Even without a table setup, I would think I could use the same pageSpan and floating fields to accomplish the same goal. I had bookmarked a discussion on floating fields for a separate purpose, and didn't even think of applying it to this. Appreciate the help!
Quick edit: I added a floating field to a text field that was already being used as a header. I changed the pageSpan(Table1) to pageSpan(NameOfPage) and it is a thing of beauty. You, sir, are a rock star.
Message was edited by: SisypheanEfforts to clarify that the method worked.
Views
Replies
Total Likes