> 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-configuration.md).

# Label Configuration

A **Label Configuration** record must exist for each model of label that you wish to use. The configuration of the **Label Configuration** contains information about padding, sizing, number of rows, etc. for each page of labels.

{% hint style="info" %}
To add a new model of **Label Configuration** beyond what is included with the app, follow the instructions provided under [Adding New Label Configuration Type](https://docs.yansalabs.com/pdf-generator/technical-docs/building-a-pdf-template/creating-labels/adding-new-avery-type-label-configuration.md). For help, reach out to us at [yansalabs.com/support](https://www.yansalabs.com/support).
{% endhint %}

The Label Configuration form is organized into sections to simplify configuration:

* **Basic Information:** Specify the name, label number, and state of the label configuration.
* **Page Settings:** Configure the page level settings such as margins, and spacing between label rows.&#x20;
* **Style:** Specify if you need advanced CSS styling allowing total control of the design, look, and feel of your labels globally for all templates using this label.
* **Examples**: Each sub-section displays an example of how the labels will be generated as a single, row, or full page of labels
* **Label Dimensions (related list)**: Related list of records, each corresponding to a 'column' in a single 'row' of the label page.

<div><figure><img src="https://2707432902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGZA5kgM4oTQMrpISbVT3%2Fuploads%2FaYWRX4QrO8psdXqRwqfb%2FLabel%20Configuration%20Form.png?alt=media&amp;token=97a0abfd-7c56-4db6-9f87-35a5b4b8976c" alt=""><figcaption><p>Basic Information and Page Settings</p></figcaption></figure> <figure><img src="https://2707432902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGZA5kgM4oTQMrpISbVT3%2Fuploads%2FPYE0ryDOJxj35dVv5Ak2%2FLabel%20Configuration%20Form%20-%20Examples.png?alt=media&amp;token=35298014-ac71-49ea-9f12-dde7acfd1dc9" alt=""><figcaption><p>Single/Row/Page Label Examples</p></figcaption></figure> <figure><img src="https://2707432902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGZA5kgM4oTQMrpISbVT3%2Fuploads%2FYNDb2BDqMSUqTcidYD3z%2FLabel%20Configuration%20-%20Dimensions%20Related%20List.png?alt=media&amp;token=6a319cda-5cf3-4eb6-a4ef-e81fbdaed0bf" alt=""><figcaption><p>Dimensions Related List</p></figcaption></figure></div>

### Basic Information (header)

* **Name:** The name of the label when used in templates.
* **Id**: Model number or Identifier of the label
* **State:** Is this configuration Published, in Draft, or Retired.

### Page Settings

* **First row padding**: Padding (in pixels) before the first row of labels
* **Max labels per page**: Maximum number of labels available on each page
* **In between rows padding**: Padding (in pixels) between rows of labels

### **Style**

* **Advanced styling**: Optional access to advanced CSS that can be used to tweak details of the Label Configuration
* **CSS:** The CSS to apply to the labels that use this template.

### Examples (Single/Row/Page Label)

After all configuration has been set (including the **Label Dimensions** below), click the **Generate HTML** button in the form header to generate these Label Examples.

These examples are used in the **Label Template** to facilitate configuration of your PDF.

{% hint style="info" %}
Each time the configuration or dimensions of an **Label Config** changes, you must click **Generate HTML** to regenerate example label layouts.
{% endhint %}

### Label Dimensions (related list)

Correlating to a single 'column' on a single 'row' of the label page, these records should be created with an increasing 'Order' field from left-to-right. Each column will have:

* **Type**: 'Padding' or 'Label'
* **Width**: Pixel-width of the column
* **Height**: Pixel height of the row

{% hint style="info" %}
See [Adding New Label Config Type](https://docs.yansalabs.com/pdf-generator/technical-docs/building-a-pdf-template/creating-labels/adding-new-avery-type-label-configuration.md) for details of where each of these configurations come from within the manufacturer provided label documentation. For help, reach out to us at <support@yansalabs.com>.
{% endhint %}
