cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Sizing a Footer Based on Content

SarahPrice
6-Contributor

Sizing a Footer Based on Content

Need help with formatting some footers. I have to place specific statements on the footer of the first page in a document. The statements are based off an attribute selection on the root tag. I have them formatting correctly however due to the fact that some of the statements may be 10 lines and others 50 linesI am ending up with alot of unnecessary white space.

Is there a way to change the footer depth based on which savetext is inserted? or can this even been done?

Thanks in advance for help.


Sarah

3 REPLIES 3

Hi Sarah,



This can be done, but it's not pretty...



I managed to accomplish something similar with a document where the
first page would list revisions, so the footer required a variable
height depending on how ever many previous revisions there were.



The method I used was to create a pagespec within a pageset specifically
for the first page. In this pagespec, I zeroed out the footer height.



Then I created a float to repeat once with a fairly good-size max depth
(about a third of the page), that was designated as a bottom float
within the pagespec.



Next, I created a pseudo-element to aggregate all the variable content.



Then I created a pseudo-element for this "pseudo-footer", that defined
the structure of the footer, included a usetext that contained the
pseudo-element for the variable content, plus page number, copyright
statement, all the footer-type stuff. Within this pseudo-element, I
initialized my float, width='col' pagetype='same' inline='never'.



The pseudo-footer pseudo-element should then appear within the source of
a usetext for the e-i-c of your root element (the one where pagesets
would be initialized, if you use more than one).



The end result is, when the document begins formatting, the float should
initialize on the first page only, and content should fill to just above
the float, but the height of the content within the float can then vary
from doc to doc.



Believe me, this was a royal pain-in-the-behind to set up, took me a
HIDEOUS amount of trial and error (I was required to implement this
solution after roughly a year of real FOSI experience, and no training).
I had nightmares about this FOSI for a couple of weeks after I finished
it. I'm better now...



Once I got this working, though, it's run like a champ, no matter what
we throw at it. I've never had to tweak this since. And it's worked
consistently from release to release, despite the float. I hope I
didn't just jinx that.



Hope this helps, I could probably forward you some code if you need a
more in-depth look.



Jason A. Buss

Programmer/Analyst - Cessna Aircraft Company

316.517.7749

jabuss@cessna.textron.com



"Sometimes I take humor seriously. Sometimes I take seriousness
humorously. Either way it is irrelevant."

-Malaclypse the Younger
SarahPrice
6-Contributor
(To:SarahPrice)

Jason,

WOW! Sounds like a nightmare. I did try to work with the floats but was unsuccessful.

A sample of the code would be great.

Thanks so much for your response and help.

Sarah
SarahPrice
6-Contributor
(To:SarahPrice)

Jason,

Never mind the sample code, your instructions were perfect. I GOT IT!!!

Thanks so much!

Sarah
Announcements