You need to sign in to do that
Don't have an account?
nagalakshmi
how to display the static resource as footer image in visual force page
Hi,
Any one please help me for displaying the static resource as footer image in visual force page(render as=pdf). I tried a lot but i am not getting. Thanks in advance.
Thanks,
Lakshmi.
Hi,
You can use the CSS (cascading style sheet ) to set the position and size of the footer and place the image in the footer div which you want to display in the footer of the page.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Jain,
Thanks for your reply.. Can you Post code for displaying image as footer. Because i tried with css also. But it is not displayed.
Thanks,
Lakshmi.
Hi,
try below code sample:
<apex:page renderAs="pdf" standardStylesheets="false" controller="chkrenderinginpdf" >
<style>
html,
body {
margin:0;
padding:0;
height:100%;
}
#container {
min-height:100%;
position:relative;
}
#header {
background:#ff0;
padding:10px;
}
#body {
padding:10px;
padding-bottom:60px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#6cf;
}
</style>
<div id="container">
<div id="header"></div>
<div id="body"></div>
<div id="footer">sdadsa<apex:image value="{!$Resource.imagename}" height="60px" /></div>
</div>
</apex:page>
Hi Jain,
Thanks for your reply.. I tried this code but the image is displayed on top of the page.. can you help for displaying it in bottom..
Thanks,
Lakshmi.
Hi,
Try this code hope it wil help u
I tried this code, he image display at the bottom of the page but only the top half of it...
Do you know why?