# Creating templates to apply to PDF files

{% hint style="info" %}
**Required dataset permission:** Edit dataset settings
{% endhint %}

A dataset might contain multiple files that have the same structure, such as a set of scanned-in forms.

Instead of adding the same manual overrides for each file, you can use a PDF file in the dataset to create a template that you can apply to other PDF files in the dataset.

When you [edit a PDF file](/textual/dataset-configure-redaction/pdf-manual-overrides/pdf-edit-single-file.md), you can apply a template.

## Creating a PDF template

To add a PDF template to a dataset:

1. On the **Dataset settings** page, under **PDF Settings**, click **PDF Templates**.

<figure><img src="/files/Rp9bJMGv41dQvFda94L8" alt=""><figcaption><p>PDF Templates option on the PDF Settings section of the Dataset ssettings page</p></figcaption></figure>

2. On the template creation and selection panel, click **Create a New Template**.

<figure><img src="/files/hECH5opadTrzJQoBP0Hq" alt=""><figcaption><p>Panel with option to create a PDF template</p></figcaption></figure>

3. On the template details page:
   1. In the **Name** field, provide a name for the template.
   2. From the file dropdown list, select the dataset file to use to create the template.
   3. Add the manual overrides to the file.

<figure><img src="/files/Qrb0WVXQOC0FBm9SNjbu" alt=""><figcaption><p>PDF template details panel for a new template</p></figcaption></figure>

4. When you finish adding the manual overrides, click **Save New Template**.

## Updating an existing PDF template <a href="#pdf-template-update" id="pdf-template-update"></a>

When you update a PDF template, it affects any files that use the template.

To update a PDF template:

1. On the **Dataset settings** page, under **PDF Settings**, click **PDF Templates**.
2. Under **Edit an Existing Template**, select the template, then click **Edit Selected Template**.
3. On the template details panel, you can change the template name, and add or remove manual overrides.

<figure><img src="/files/wlpEzpcVTbwqiYvwPrLJ" alt=""><figcaption><p>Template details panel for an existing template.</p></figcaption></figure>

4. To save the changes, click **Update Template**.

## Managing the manual overrides <a href="#pdf-template-manage-overrides" id="pdf-template-manage-overrides"></a>

### Adding a manual override <a href="#pdf-template-override-add" id="pdf-template-override-add"></a>

On the template details panel, to add a manual override to a file:

1. Select the type of override.\
   \
   To indicate to ignore any automatically detected values in the selected area, click **Ignore Redactions**.\
   \
   To indicate to redact the selected area, click **Add Manual Redaction**.
2. Use the mouse to draw a box around the area to select.

Tonic Textual adds the override to the **Redactions** list. The icon indicates the type of override.

### Navigating to a manual override <a href="#pdf-template-navigate-to-override" id="pdf-template-navigate-to-override"></a>

To select and highlight a manual override in the file content, in the **Redactions** list, click the navigate icon for the override.

<figure><img src="/files/1YbqXFwq9EAayZoODmwR" alt=""><figcaption><p>Redactions list of manual overrides with a navigate icon highlighted</p></figcaption></figure>

### Removing a manual override <a href="#pdf-template-remove-override" id="pdf-template-remove-override"></a>

To remove a manual override, in the **Redactions** list, click the delete icon for the override.

## Deleting a PDF template <a href="#pdf-template-delete" id="pdf-template-delete"></a>

When you delete a PDF template, the template and its manual overrides are removed from any files that the template was assigned to.

To delete a PDF template:

1. On the **Dataset settings** page, under **PDF Settings**, click **PDF Templates**.
2. Under **Edit an Existing Template**, select the template, then click **Edit Selected Template**.
3. On the template details panel, click **Delete**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/textual/dataset-configure-redaction/pdf-manual-overrides/pdf-create-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
