# EXTRACTTEXT

## Overview

The **EXTRACTTEXT** workflow application extracts text content from an input file (`.pdf`, `.docx`, or `.txt`) and returns the extracted text and its length. It supports optional parameters for maximum file size, trimming, and text normalization (Unix-style line breaks).&#x20;

## Required parameters

<table><thead><tr><th width="262.98583984375" valign="top">Parameter</th><th width="110.076904296875" valign="top">Type</th><th width="109.5726318359375" valign="top">Direction</th><th>Description</th></tr></thead><tbody><tr><td valign="top"><code>FILE</code></td><td valign="top">FILE</td><td valign="top">IN</td><td>The file from which to extract the text (must be <code>.pdf</code>, <code>.docx</code>, or <code>.txt</code>)</td></tr><tr><td valign="top"><code>TEXT</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td>The extracted (and possibly normalized/trimmed) text</td></tr><tr><td valign="top"><code>LENGTH</code></td><td valign="top">NUMERIC</td><td valign="top">OUT</td><td>The length (number of characters) of the extracted text</td></tr></tbody></table>

## Optional parameters

<table><thead><tr><th width="263.923095703125" valign="top">Parameter</th><th width="113.62396240234375" valign="top">Type</th><th width="110.29913330078125" valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>MAX_FILE_SIZE</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Maximum allowed file size in MB</td></tr><tr><td valign="top"><code>TRIM_SIZE</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Maximum number of characters to keep from the extracted text</td></tr><tr><td valign="top"><code>NORMALIZE</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top"><p>Whether to normalize line endings <br><strong>Possible values:</strong> </p><ul><li><code>Y</code></li><li><code>N</code></li><li><code>true</code></li><li><code>false</code></li></ul></td></tr></tbody></table>


---

# 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.workflowgen.com/admin/10.0/workflow-applications/extracttext.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.
