> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/admin-fr/10.0/applications-de-workflow/extracttext.md).

# EXTRACTTEXT

## Aperçu

L’application de workflow **EXTRACTTEXT** extrait le contenu texte d’un fichier en entrée (`.pdf`, `.docx` ou `.txt`) et retourne le texte extrait ainsi que sa longueur. Elle prend en charge des paramètres optionnels pour la taille maximale du fichier, le découpage et la normalisation du texte (sauts de ligne au format Unix).

## Paramètres requis

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>FILE</code></td><td valign="top">FILE</td><td valign="top">IN</td><td valign="top">Le fichier à partir duquel extraire le texte (doit être au format <code>.pdf</code>, <code>.docx</code> ou <code>.txt</code>)</td></tr><tr><td valign="top"><code>TEXT</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Le texte extrait (pouvant être normalisé ou découpé)</td></tr><tr><td valign="top"><code>LENGTH</code></td><td valign="top">NUMERIC</td><td valign="top">OUT</td><td valign="top">La longueur (nombre de caractères) du texte extrait</td></tr></tbody></table>

## Paramètres facultatifs

<table><thead><tr><th valign="top">Paramètre </th><th valign="top">Type</th><th 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">Taille maximale autorisée du fichier, en Mo</td></tr><tr><td valign="top"><code>TRIM_SIZE</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Nombre maximal de caractères à conserver du texte extrait</td></tr><tr><td valign="top"><code>NORMALIZE</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top"><p>Indique s’il faut normaliser les fins de ligne<br><strong>Valeurs possibles :</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
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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.workflowgen.com/admin-fr/10.0/applications-de-workflow/extracttext.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
