Question
cfdocumentitem footer problems
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?
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?
