For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuring PDF and image file options

Required dataset permission: Edit dataset settings

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.

PDF and Image Settings section of the Dataset settings page

You can also configure these options from the Textual Agent.

Configuring whether to redact PDF and image signatures

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

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

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

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

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

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)

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.

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

OCR Engine dropdown list in PDF Settings

Last updated

Was this helpful?