# Configuring handling of .docx file components

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

In .docx and .xslx files, as long as the URL entity type handling option is not set to Off, Textual automatically changes the destination of hyperlinks to google.com.

On the **Dataset settings** page, the **Word Document Settings** section contains settings to determine how to manage .docx images, tables, and comments.

<figure><img src="/files/HK6D2Fz2nuimxLfvc5bR" alt=""><figcaption><p>Word Document Settings section on the Dataset settings page</p></figcaption></figure>

To display the **Dataset settings** page, on the dataset details page, click **Project settings**.

You can also use the [Textual Agent](/textual/textual-agent/textual-agent-about.md) to configure these options.

## Configuring how to handle .docx images <a href="#dataset-config-docx-images" id="dataset-config-docx-images"></a>

For .docx images, including .svg files, you can configure the dataset to either:

* Redact the image content. When you select this option, Textual looks for and blocks out sensitive values in the image.
* Ignore the image.
* Replace the images with black boxes.

On the **Dataset settings** page, under **Image settings for DOCX files**:

* To redact the image content, click **Redact contents of images using OCR**. This is the default selection.
* To ignore the images entirely, click **Ignore images during scan**.
* To replace the images with black boxes, click **Replace images from the output file with black boxes**.&#x20;

## Configuring how to handle .docx tables

For .docx tables, you can configure the dataset to either:

* Redact the table content. When you select this option, Textual detects sensitive values and replaces them based on the entity type configuration.
* Block out all of the table cells. When you select this option, Textual places a black box over each table cell.

On the **Dataset settings** page, under **Table settings for DOCX** files:

* To redact the table content, click **Redact content using the entity type configuration**. This is the default selection.
* To block out the table content, click **Block out all table cell content**.

## Configuring how to handle .docx comments <a href="#dataset-config-docx-comments" id="dataset-config-docx-comments"></a>

For comments in a .docx file, you can configure the dataset to either:

* Remove the comments from the file.
* Ignore the comments and leave them in the file.

On the **Dataset settings** page, to remove the comments, toggle **Remove comments from the output file** to the on positio&#x6E;**.** This is the default configuration.

To ignore the comments, toggle **Remove comments from the output file** to the off position.


---

# 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/dataset-set-config-file-components.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.
