---
title: "Action: Convert to PDF, Undo PDF conversion or Convert to searchable PDF"
description: "## Configuration options when Action is ConvertToPdf or UndoPdfConversion If the selected action is **ConvertToPdf** or **UndoPdfConversion**, the following configuration options will be available: - [Filename Wildcards](#filenamewildcards) - [placeholderText](#placeholdertext1) ### Filename wildcards *State Actions > State Action [1]* > *Configuration…"
url: "https://extensionkit.unitfly.com/documentation/document-processing-action-convert-to-pdf-or-undo-pdf-conversion/"
updated: "2025-07-03"
category: Configurations / Document Processing / Simple Rule Configuration
---

# Action: Convert to PDF, Undo PDF conversion or Convert to searchable PDF

## Configuration options when Action is ConvertToPdf or UndoPdfConversion

If the selected action is **ConvertToPdf** or **UndoPdfConversion**, the following configuration options will be available:

- [Filename Wildcards](#filenamewildcards)
- [placeholderText](#placeholdertext1)

### Filename wildcards

*State Actions > State Action [1]* > *Configuration > Filename wildcards*

*Displayed for all actions **except** AddOrReplaceFile and RemoveFile.*

Specifies the filename wildcards used to select files from the object on which the action will be executed. Original file needs to match any of the specified wildcards in order for action to be executed on it. If multiple files match one of the wildcards, the action will be executed separately for each matching file. These wildcards are useful for searching and filtering files, especially when handling a large number of files or when the exact filename is unknown.

1. Expand **Filename wildcards**.
2. Click on **Add placeholderText**.

### placeholderText

*State Actions > State Action [1] > Configuration > Filename wildcards > placeholderText*

A placeholder field to enter the wildcard. For example:

- `*.pdf` to find all PDF files.
- `invoice*` to find all files that start with "invoice" (e.g., `invoice2021.docx`, `invoice_final.pdf`).
- `*` to find all files.

---

## Configuration options when Action is Convert to searchable PDF

If the selected action is **ConvertToSearchablePdf**, the following configuration sections are available:

- [Filename Wildcards](https://extensionkit.unitfly.com/documentation/document-processing-action-convert-to-pdf-or-undo-pdf-conversion/#filenamewildcards)
- [Conversion settings](https://extensionkit.unitfly.com/documentation/document-processing-action-convert-to-pdf-or-undo-pdf-conversion/#conversion-settings)

### Conversion settings

*State Actions > State Action [1] > Action: ConvertToSearchablePdf > Configuration > Conversion settings*

Within this section, the following fields are available: **Use automatic language detection** and **Language**.

#### Use automatic language detection

*State Actions > State Action [1] > Action: ConvertToSearchablePdf > Configuration > Conversion settings > Use automatic language detection*

Specifying the language that is often used improves the quality of the recognition results.

- **No** (default)
- **Yes**

#### Language

*State Actions > State Action [1] > Action: ConvertToSearchablePdf > Configuration > Conversion settings > Language*

The default language is English.
