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
kabkab 

Page Footer display in VF rendered pdf pages for multiple account info

Hi ,

I have a multiple accounts informations and for each acocount I wanted to have specific page numbering.

Suppose Account1 has 2 pages then it should say in footer Account1 Page 1 of 2 and Account1 Page 2of 2 in second page.

I could able to separate the account spanning into multiple pages but not sure how to display in the footer with account name and page no.

 

Any healp or sample code appriciated.

 

thanks

Kab

 

 

Starz26Starz26

using CSS:

 

Not sure if complete as is comes from one of our pages and I have not thoroughly reviewed it for this post.

 

@media print {
 .longtable {display: table-header-group;}
  thead {display: table-header-group;}
}

@page {
            
           @top-center {
               content: element(header);
           }
           @bottom-left {
               font-size:90%;
               content: element(footer);
           }
           
       }
       
       div.footer2 {
           position: running(footer2);
       }

       div.footer {
           position: running(footer);
       }
         .pagenumber:before {
           content: counter(page);
       }

       .pagecount:before {
           content: counter(pages);
       }
Starz26Starz26
kabkab

Can you please send me how to use AccountName  concatenating with page no?

 

I don't see any code which can be used for " Account1 Page1 of 2" .

 

These styles works only when I include in page style.