You need to sign in to do that
Don't have an account?
Aam M
pdf VF page header footer repeat on all pages
I'm not able to repeat my header and footer in all pages of Quote PDF. As I've to put logo in the header for every page. Can any suggest me the solution?.. IT would be great to see the logo on top left of every page and in top right some text and footer some text.. Please help me how to achieve this!
<head> <style type="text/css" media="print"> <apex:outputPanel layout="none" > .watermark { background-repeat: no-repeat; background-image: url('{!URLFOR($Resource.draftpdf)}'); background-position: center; background-attachment: fixed; } @page { margin-top: 20px; // use whatever values are appropriate margin-bottom:100px; @Top-Left{ content: element(header); } @Top-right{ content : element(headerright); } @bottom-left { content : "Lo Ruiz 4470, Renca, Santiago | Chile "; //color : #808080; // optional as this can be in your def for content } } </apex:outputPanel> </style> </head> <div> <div class="header" style="float:left;width:75%" > <div><apex:image value="{!$Resource.PdfLogo}" alt="Description of image here"/></div> </div> <div class="headerright"> <div dir="rtl"><p style="font-weight: bold"> <br/>Conit<br/> Conveyor belt Group</p></div> </div> </div>
May I suggest you please refer the below link to reference.
- https://developer.salesforce.com/forums/?id=906F000000096O7IAI
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar