Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Header, Footer, and Page Number to PDF

          Add Header, Footer, and Page Number to PDF

          Define headers, footers, and page numbers to enhance readability and organization of your PDF documents.

          Required Editions

          Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled.

          Header and Footer

          Use header and footer tags to add a header in the top margin or a footer in the bottom margin of all the pages in a document. header supports table and img as child elements. footer supports table as the child element. If the height of the page header or footer exceeds 3 text lines, the additional text is clipped.

          <!-- left out details for brevity -->
              <header>        
                <table name="headerTable">
                  <thead>
                    <tr>
                      <th width="150" alignment="right">{{Declarations::orderer.address}} {{Declarations::orderer.zip}} {{Declarations::orderer.city}}</th>
                    </tr>
                  </thead>
                  <tbody />
                </table>
              </header>
          <!-- left out details for brevity -->
              <footer>
                <table name="footerTable">
                  <thead>
                    <tr>
                      <th width="150" alignment="center">© 2020 Salesforce</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td width="150" alignment="center">All rights reserved. </td>
                    </tr>
                  </tbody>
                </table>
              </footer>

          Page Number

          Append page numbers on each page of a document by using the pageNumber element in the header or footer area . It doesn't support any attribute or child element.

          <footer>
                      <table name="table3">
                          <thead>
                              <tr>
                                  <th width="*" alignment="left">All rights reserved. some more footer text</th>
                                  <th width="auto" alignment="right"></th>
                                  <th width="100"></th>
                              </tr>
                          </thead>
                          <tbody>
                              <tr>
                                  <td></td>
                                  <td><pageNumber/></td>
                                  <td></td>
                              </tr>
                          </tbody>
                      </table>
                  </footer>
           
          Loading
          Salesforce Help | Article