---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Document Templates configurations

# Document Templates configurations {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Use Document Templates configurations to generate table of contents and
page numbers on a PDF document that is generated from an HTML template.  
Note:  
Only if the com.snc.pdfgenerator.html2pdf.api.version property is set to 2 (default), the Table of Contents and Page number configuration features are available to use. If the com.snc.pdfgenerator.html2pdf.api.version property is set to 1, the Table of Contents and Page number configuration features are not available to use.
**Related concepts**   

* [Document template categories](https://servicenow-prod.fluidtopics.net/crOxO~oOjSxArWsIgA6C8w "Document template categories help you to categorize similar documents together. It makes finding the correct document template easier.")
* [Document Templates of type HTML](https://servicenow-prod.fluidtopics.net/P1cDX102JoA6v7TmD4EVWw "An HTML document template uses variables to pre-fill information from tables into the document. You can create how the document looks by defining the header, footer, images, placement of footer, and the text within the template. Using the HTML document template, you can collect e-signatures from multiple participants and generate a PDF document online.")
* [Document Templates of type PDF (Advanced forms)](https://servicenow-prod.fluidtopics.net/kSPS~KHdIyox0k6aacV4Nw "A PDF document template originates from a fillable PDF or a standard PDF with inline signatures. Using the PDF document template, you can collect details and e-signatures from multiple participants, review, and generate a filled PDF document.")
* [Document generation methods](https://servicenow-prod.fluidtopics.net/6jBZtdUq1QnOfY12hJhv7w "A PDF document can be generated automatically, manually, or by using an API.")
* [Document tasks generation](https://servicenow-prod.fluidtopics.net/rCn_w2G0qC6zac9OGrhMYQ "Document tasks can be generated either automatically or manually. The tasks get generated in the order defined for the participants.")  
**Related tasks**   

* [Work on a document task](https://servicenow-prod.fluidtopics.net/Tu2wCDuExp~y6dTSPxEkvw "Complete your document tasks from Employee Center.")

## Create a TOC configuration in Document Templates {#ariaid-title2}

Create a TOC configuration to generate Table of Contents in a PDF document that is
generated from an HTML document.

### Before you begin

Role required: sn_doc.writer

### Procedure

1. Navigate to Document TemplatesDocument ConfigurationTable of Contents Configurations.
2. Click New.
3. On the form, fill in the fields:  
   {#create-toc-doctemp__table_jrv_4hz_vrb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name of the Table of Contents configuration. |
   | Title | Table of Contents title that appears in the generated document. |
   | Type | Table of Contents is displayed in a list view in the generated PDF document. |
   | Heading numbering | Format in which you want the page numbers of the headings to be displayed. The values are: * None * Decimal {#create-toc-doctemp__ul_nxr_24g_xrb} |
   | Table leader | Gap between the heading and page number. Table leader helps to correlate a section or a heading with its page number. The values are: * None * Dotted {#create-toc-doctemp__ul_ag5_fgz_csb} |
   | Clickable | Enable or disable clickable links inside the generated Table of Contents. |
   | Show page numbers | Option to display page numbers on the generated PDF document. Note: This option makes the page number configuration field on the document template mandatory. |
   | Application | Application scope in which the TOC configuration is created. |
   | Start numbering after table of contents | Option to begin page numbers after TOC ends. Note: * This field appears only when the Show page numbers field is enabled. * This field overrides the Start numbering from page field in page number configuration. {#create-toc-doctemp__ul_qzb_mpg_xrb} |
   [Table 1. Table of Contents Configuration form]

   {#create-toc-doctemp__table_jrv_4hz_vrb}
4. Click Submit.

## Create a page number configuration in Document Templates {#ariaid-title3}

Create a page number configuration to automatically generate page numbers in a PDF
document that is generated from an HTML document.

### Before you begin

Role required: sn_doc.writer

### Procedure

1. Navigate to Document TemplatesDocument ConfigurationPage Number Configurations.
2. Click New.
3. On the form, fill in the fields:  
   {#create-pc-doctemp__table_jrv_4hz_vrb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name of page number configuration. |
   | Page number format | Format in which page numbers are displayed on the generated PDF document: Decimal |
   | Start numbering from page | Page from which you want the numbering to begin. Note: The value in this field is overridden by the Start numbering after table of contents in TOC configuration. |
   | Application | Application scope in which the page number configuration is created. |
   | Position | Vertical position of the page number: Header or Footer |
   | Horizontal alignment | Horizontal alignment of the page number: Left, Center, or Right |
   [Table 2. Page Number Configurations form]

   {#create-pc-doctemp__table_jrv_4hz_vrb}
4. Click Submit.

*[\>]: and then


