# Editing an individual PDF file

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

For PDF files, you can add manual overrides to the initial detections, which are based on the detected data types and handling configuration.

For each manual override, you select an area of the file.

For the selected area, you can either:

* Ignore any automatically detected values. For example, a scanned form might show an example or boilerplate content that doesn't actually contain sensitive values.
* Redact that area. The file might contain sensitive content that Tonic Textual is unable to detect. For example, a scanned form might contain handwritten notes.

You can also apply a template to the file.

You can also [add manual redactions from the file preview](https://docs.tonic.ai/textual/datasets-preview-output/dataset-file-preview).

## Selecting the manual override option for a file <a href="#pdf-manual-override-file-option" id="pdf-manual-override-file-option"></a>

To manage the manual overrides for a PDF file:

1. In the file list, click the options menu for the file.
2. In the options menu, click **Edit Redactions**.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FP6t1jTGDNeyFp3hocETq%2FFileOptionsPDF.png?alt=media&#x26;token=5708a382-e6f8-4613-a365-cb2b788fa2d7" alt=""><figcaption><p>File options menu for a PDF file</p></figcaption></figure>

The **File Redactions** panel displays the file content. The values that Textual detected are highlighted. The page also shows any manual overrides that were added to the file.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FTKQkIGstzm2RvBJUO0fv%2FFileRedactions.png?alt=media&#x26;token=8e007936-154f-412f-a447-088a6ac71d11" alt=""><figcaption><p>File Redactions panel</p></figcaption></figure>

## Applying a PDF template to a file <a href="#pdf-apply-template" id="pdf-apply-template"></a>

If a dataset contains multiple files that have the same format, then you can create a template to apply to those files. For more information, go to [pdf-create-templates](https://docs.tonic.ai/textual/dataset-configure-redaction/pdf-manual-overrides/pdf-create-templates "mention").

On the **File Redactions** panel, to apply a template to the file, select it from the template dropdown list.

When you apply a PDF template to a file, the manual overrides from that template are displayed on the file preview. The manual overrides are not included in the **Redactions** list.

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

On the **File Redactions** 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.

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

In the file content:

* Overrides that ignore detected values within the selected area are outlined in red.
* Overrides that redact the selected area are outlined in green.

## Navigating to a manual override <a href="#pdf-manual-override-navigate" id="pdf-manual-override-navigate"></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="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fj59RnAkKSDMgkAPMhSLU%2FRedactionsNavigateIcon.png?alt=media&#x26;token=3d2a0c88-663d-4190-bf0c-fedc611b041b" alt=""><figcaption><p>Redactions list of manual overrides with a navigate icon highlighted</p></figcaption></figure>

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

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

## Saving the manual overrides <a href="#pdf-manual-override-save" id="pdf-manual-override-save"></a>

To save the current manual overrides, click **Save**.
