+ Start a Discussion
Administrator 88Administrator 88 

display image on top of pdf second page only


I am very new to the Visual Force Page,

i wanted to display company logo image on top second page of pdf, but not on the first page.

this logo headed image pdf of 2nd page should appear when it exceds 1st page content.
<p style="float: right; page-break-before: always;">
  <img src="https://c.na6.content.force.com/servlet/servlet.ImageServer?id=01580000001sFmE&oid=00D80000000M4RR&lastMod=1425464868000" width="70px" height="50px"/>

Gaurav KheterpalGaurav Kheterpal
There are many ways in which you can handle this. I prefer using the component  used in this (http://www.iterativelogic.com/visualforce-pdf-repeating-headers-and-footers/) tutorial as it provides a lot of flexibility - you can set the headers for each page differently or disable headers for specific pages as required.

More details here - http://www.iterativelogic.com/visualforce-pdf-repeating-headers-and-footers/

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker

Administrator 88Administrator 88

i have followed the method as in the post but getting error,..
Error: Component <c:pdfheaderfooter> definition does not contain <apex:componentBody> so it cannot be used with any child tags.