> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/dataset-configure-redaction/configuring-settings-for-specific-file-types/pdf-manual-overrides/configuring-pdf-and-image-file-options.md).

# Configuring PDF and image file options

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

The **PDF and Image Settings** section of the **Dataset settings** page provides options to configure how Textual works with PDF and image (.png, .jpg, .tiff) files.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FrqOGEywxd37UooukqBwB%2FDatasetSettingsPDFSettings.png?alt=media&amp;token=69f141b8-844a-40fc-93fd-215db1ed8cbd" alt=""><figcaption><p>PDF and Image Settings section of the Dataset settings page</p></figcaption></figure>

You can also configure these options from the [Textual Agent](https://docs.tonic.ai/textual/textual-agent/textual-agent-about.md).

## Configuring whether to redact PDF and image signatures <a href="#dataset-config-pdf-signatures" id="dataset-config-pdf-signatures"></a>

By default, Textual redacts scanned-in signatures in PDF and image files. You can configure the dataset to instead ignore the signatures.

Under **PDF and Image Settings**:

* To redact signatures, toggle **Remove detected signatures** to the on position. This is the default configuration.
* To ignore the signatures, toggle **Remove detected signatures** to the off position.

## Configuring whether to redact detected logos <a href="#dataset-config-pdf-logos" id="dataset-config-pdf-logos"></a>

When Textual detects a company or brand logo in a PDF or image file, you can configure whether it redacts or ignores the logo.

Under **PDF and Image Settings**:

* To redact logos, toggle **Remove detected logos** to the on position.
* To ignore the logos, toggle **Remove detected logos** to the off position. This is the default configuration.

## Configuring whether to remove detected faces <a href="#dataset-config-pdf-faces" id="dataset-config-pdf-faces"></a>

When Textual detects an image of a face in a PDF or image file, you can configure whether it redacts or ignores the face.

Under **PDF and Image Settings**:

* To redact the faces, toggle **Remove detected faces** to the on position.
* To ignore the faces, toggle **Remove detected faces** to the off position. This is the default configuration.

## Selecting the synthesis process to use <a href="#synthesis-process" id="synthesis-process"></a>

Textual provides the following options to generate synthesized values:

* **V5** - This is the most recent option. It is also the default option.\
  \
  With V5, the replacement values match the font, size, and colors of the original text.

  \
  The replacement values are consistent within a file. For example, within a file, the first name Michael might always be replaced with the first name John.\
  \
  However, the replacement values are not automatically consistent across files or between files and SDK calls.
* **V1** - This is the older, legacy option. With V1, the replacement values do not match the original styling.

Under **PDF and Image Settings**, from the **PDF and image synthesis mode** dropdown list, select the synthesis mode to use.

## Moving PDF text to reduce overlaps <a href="#dataset-config-pdf-text-overlap" id="dataset-config-pdf-text-overlap"></a>

When Textual replaces detected values with synthesized values, the synthesized values might sometimes overlap with other text. For example, this can happen if a synthesized value is longer than the original value.

Textual has introduced an experimental option that moves the surrounding text to make space for the synthesized value.

Before you can enable this option, you must set **PDF and image synthesis mode** to **V5**. V1 does not support this option.

To enable the option, toggle **Move PDF text to reduce synthesis overlap (experimental)** to the on position.

## Using an LLM to analyze structured components <a href="#pdf-llm-classification" id="pdf-llm-classification"></a>

To improve the detection accuracy for sensitive values, you can optionally use an LLM to analyze structured components such as tables and form fields.

Under **PDF Settings**, from the **LLM processing** dropdown list, select the option to use:

* To not use an LLM, select **Standard PII detection**. This is the default value.
* To use an LLM, select **LLM-assisted PII detection**. This option requires the V5 synthesis process.
* To use an LLM to detect and synthesize values in multiple languages, select **Multilingual PDF identification and synthesis**. This option requires the V5 synthesis process.

## Selecting the OCR model to use (self-hosted only) <a href="#ocr-model-self-hosted" id="ocr-model-self-hosted"></a>

For PDFs as well as images, if multiple optical character recognition (OCR) models are available, you can select the specific model to use in the dataset. For information on how to enable specific models, go to [Enabling PDF and image processing](https://docs.tonic.ai/textual/textual-install-administer/configuring-textual/enable-and-configure-textual-features/textual-config-pdf-image.md).

Under **PDF Settings**, from the **OCR Engine** dropdown list, select the model to use.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FTsOFSqcA1mg4zevI7GHp%2FDatasetSettingsOCREngine.png?alt=media&amp;token=49d2e82b-2e9b-48cc-9737-d050a6f9b909" alt=""><figcaption><p>OCR Engine dropdown list in PDF Settings</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/textual/dataset-configure-redaction/configuring-settings-for-specific-file-types/pdf-manual-overrides/configuring-pdf-and-image-file-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
