# File to Text

The File to Text manipulator is used to convert a file to text. This is useful for reading the contents of a file and storing it in a field.

## File Support

The File to Text manipulator supports the following file types:

* Microsoft Word: DOC, DOCX
* Open Office: ODT
* Apple Pages: PAGES
* PDF
* Microsoft PowerPoint: PPTX
* RTF
* XML
* Images: JPG, JPEG, JPE, JFIF, PNG, TIF, TIFF.
* Plain text: TXT

### Demonstration Video

{% embed url="<https://drive.google.com/file/d/1i_p6q6mDgQfi-Ts1vf_sP2_FWhBD-hbm/view?usp=sharing>" %}

## Properties

| Property      | Purpose                                                                                                                | Required |
| ------------- | ---------------------------------------------------------------------------------------------------------------------- | -------- |
| addFieldId    | Field id where text will be saved                                                                                      | True     |
| binaryFieldId | Id of the field to get the binary from. If not provided, the binary will be taken from the first field of type binary. | False    |

## Specifics

Field will be created as part of the manipulator. It will save 2 values in the motation for that field.

1. The first value will be the metadata of the file
2. The second value will be the text of the file.


---

# 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://motivlabs.gitbook.io/impulse-user-manual/content-manipulators-motators/file-to-text.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.
