> For the complete documentation index, see [llms.txt](https://docs.yansalabs.com/pdf-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yansalabs.com/pdf-generator/technical-docs/building-a-pdf-template/creating-labels/label-templates.md).

# Label Templates

For printing single pages with multiple labels, such as adhesive Label pages, you can use our Label Templates.

When you install Yansa PDF Generator, you will find an included Label Template named 'Example: Single Cell/Label'. This is a great place to get started.

{% hint style="info" %}
You can always use the **Generate PDF** button in the form header to test creation of a PDF from your template. This is great for iterating during your design & creation process.
{% endhint %}

<figure><img src="/files/MM7royAeP3iUweru2nTY" alt=""><figcaption><p>Label Template</p></figcaption></figure>

* **Label**: The [**Label Config**](/pdf-generator/technical-docs/building-a-pdf-template/creating-labels/label-configuration.md) you wish to use for this template
* **Source table**: The table to be used as the primary data source for dynamic data included in your PDF of labels.
* **State**: Only 'Published' templates will be visible in the PDF generation modal that is typically used by your users when they generate a PDF document.
* **Mode**: Options for how many labels are created for each record in the [**Data Source**](/pdf-generator/technical-docs/building-a-pdf-template/data-sources.md)
  * **Single Cell/Label**: A single label per record
  * **Entire Row**: An entire row of labels per record
* **Advanced styling**: Enable/disable an 'Advanced Styling' CSS field to allow custom CSS to be applied to the entire page of labels.
* **Template HTML**: A custom HTML editor where you can add content to the labels to be created

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Content for the Template HTML</h3><p>The <strong>Template HTML</strong> field can include static, dynamic, and programmatic content. To include dynamic or programmatic content, you will reference an associated <a href="/pages/BWxn0her9YSZ0WxxZpZo">PDF Template Merge Map</a> record. When doing so, simply use ${handlebar} brackets around the 'Merge key' value for the desired Merge Map.</p><p>For example, if you have a Merge Map record with a 'Merge key' of 'FIRST_NAME', you can include that dynamic value in your <strong>Template HTML</strong> with <em>${FIRST_NAME}</em>.</p></div>
