function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Salesforce 283Salesforce 283 

Repeat header image in all pages in PDF

Hi Guys,
I want to display header image in all pages in PDF.
I have tried like this. If i call apex:image it came in every page with this styles. In order to call apex:image often i put image in static resource but its not working. Here without mentioned div class in page, styles are working. Please help me out this.
Thanks in Advance.

Static Resource:

<style type="text/css" media="print">
div.header {
position: running(header);
@page {
margin-top: -0.2in;
@top-center {
content: element(header);
background-image: url('{!$Resource.Con_Header}'); }

VF Page:

<apex:stylesheet value="{!URLFOR($Resource.Cont_PDF_Styles)}"/>
<apex:image value="{!$Resource.Con_Header}" />
NagaNaga (Salesforce Developers) 
Hi Salesforce developer31,

Please see the link below for repeating header and footer images in PDF.

Best Regards
Naga Kiran
Salesforce 283Salesforce 283
Hi Kiran, I tried that but its not repeating. Everytime i had to write component. Can u pls send the component code. Thanks, Mahesh.