[SalesForce] Display content at Bottom of last page when VF is rendered As pdf

I want to display content at the bottom of last page of pdf. This pdf is created by using tag renderdAs="pdf" for visualforce page.

Best Answer

This will work only for version 27 and below

<apex:page renderAs="pdf"><head>
    <style>


        @page
                {
                   @bottom-left
                   {
                        content: element(footer);
                   }
                }
         div.footer 
                {
                    position: running(footer);
                }
       </style>
    </head>   
      <h1>Congratulations</h1>
      This is your new Page

      <div class="footer">Footer of the page</div>
    </apex:page>
Related Topic