Skip to main content
Known Participant
February 11, 2009
Question

cfdocumentitem footer problems

  • February 11, 2009
  • 1 reply
  • 2336 views
Hi there experts

I have a problem with a pdf i'm trying to display with footer.

i am using the following code to create a variable...
<cfsavecontent variable="myfooter">
<hr style="clear:both;">
<div style="width: 33%;padding-top: 5px;padding-bottom: 5px;font-family: Arial, Helvetica, sans-serif;font-size: 125px;float: left;">My Agency<br/> Washington, DC 20450</div>
<div style="width: 33%;padding-top: 5px;padding-bottom: 5px;padding-left:10px;padding-right: 5px;font-family: Arial, Helvetica, sans-serif;font-size: 12px;float:left;">Department</div>
<div style="float: right;text-align: right;width: 33%padding-top: 5px;padding-right: 20pxpadding-bottom: 5px;font-size: 12px;font-family: Arial, Helvetica, sans-serif;">#fs_epa_pub_no#<br/>
#dateFormat(fs_epa_pub_date, "mmm yy")#</div>
<br /><br />
<hr style="clear:both;">
</cfsavecontent>

and the following to display it within my cfdocument and cfdocument section.

<cfdocumentitem type="footer">
<cfoutput>#myfooter#</cfoutput>
</cfdocumentitem>

Now, if i remove the cfdocumentitem thang, it displays properly at the appropriate size. But as soon as i wrap it with a cfdocumentitem it shrinks down to a size that is nigh on to unreadable. You can even see in my snippet that i attempted to affect the font size as large as 125px and while the other formatting is rendering (the text that is to be right aligned is, the text that is to be in the center is however, no matter what i do, i cannot affect the text size. Can you make recommendations? Is there a fixed size for a header that is affecting the font size? Any suggestions?
    This topic has been closed for replies.

    1 reply

    Known Participant
    July 27, 2009

    Miki,

    I've found the not so obvious solution.

    Increase the size of your marginbottom to fit the full height of your footer.

    If the marginbottom is shorter than the height of your footer, CF automatically scales it to fit.

    This makes the width less than the rest of the document as well.

    Dave

    Inspiring
    August 21, 2009

    Hi Miki,

    Make sure you have installed all the latest updates for your CF. There was a known

    issue with CF, <cfdocument> and sizing issues that was corrected with an update.

    I recently worked with an individual that was having a sizing issue and had not yet

    done the update. Upon performing the latest update(s) the sizing issue went away.

    Not saying this will correct your issue. However, if you don't have all the fixes/updates in

    place that correct the causing factors, any attempts to figure it out will be futile.

    Leonard