> ## Documentation Index
> Fetch the complete documentation index at: https://docs.noxus.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Files & Documents

> Read, write, convert, and transform documents

The **Files & Documents** nodes read, write, convert and transform files. This flow turns a Word contract into a PDF and stamps a signature on it. Press **Run** to watch it.

Node
Output in this run

| Node | What it does |
| - | - |
| **File Operations** | Extract text, PDF images or pages, overlay an image on a PDF, get a file's path or URL, read or set metadata, or rename a file. |
| **File Converter** | Convert a file to another format. |
| **Text to File** | Create a TXT, PDF or DOCX file from text. |
| **Merge Files** | Combine several files into one PDF. |
| **Zip Files** | Combine several files into a ZIP archive. |
| **Unzip File** | Turn a ZIP archive into a list of files. |
| **Read Barcode** | Read every barcode in an image or PDF. |

## File Operations

Pick an **Operation**. Each one has its own settings and outputs.

| Operation | What it does | Outputs |
| - | - | - |
| **Extract text** | Reads the text of a PDF, Word, Excel or PowerPoint file, or an email (see below). | **Text** |
| **Extract PDF images** | Pulls the images out of a PDF. Filter by a minimum width or height, and turn on **Convert to PNG** to get every image as a PNG. | **Images**, a list of files |
| **Split PDF pages** | Splits a PDF into one file per page. | **Pages**, a list of files |
| **Overlay image on PDF** | Stamps a PNG or JPEG, such as a signature or logo, on a PDF. Set its position, size, transparency and offset. | **File** |
| **File to path / URL** | Gives the file's storage path and a URL to it. | **URI** and **URL** |
| **Extract metadata** | Reads the file's metadata. | **Metadata** and **Source Metadata**, as objects |
| **Set metadata** | Writes metadata keys and values, merged with what is there or replacing it. | **File** and **Source Metadata** |
| **Rename file** | Gives the file a new name. Its metadata stays. | **Renamed File** |

> [!NOTE]
>
> Extract PDF images, Split PDF pages and Overlay image on PDF need a PDF, and the overlay image must be a PNG or JPEG. Any other file stops the step with a message that says which file and why.

**Emails.** Extract text reads an `.eml` or Outlook `.msg` file as its sender, recipients, CC, date, subject and body. An HTML body comes out as plain text.

**Scanned documents.** Extract text reads the text a file contains. It doesn't read text in images, so a scanned PDF or a photo gives little or nothing. To read those, attach the file to a **Generate Text** prompt instead: the model reads the pages.

Node
Output in this run

## File Converter

Converts **File** to the format in **Convert to**: PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, TXT, HTML, CSV, RTF, EPUB, PNG or JPG.

It also turns an `.eml` or `.msg` email into a document of its sender, recipients, date, subject, attachment names and body. Images the email links to are left out and never fetched.

Node
Output in this run

## Text to File

Writes **Content** to a file named **File name**, in the **Format** you pick: TXT, PDF or DOCX. Turn on **Format as Markdown** to render headings, lists and bold text in a PDF or DOCX.

Node
Output in this run

## Merge Files

Combines **Files** into one PDF, named **Output filename**. Emails are added the same way File Converter renders them. A file it can't merge is left out, and the step's warning names it.

Node
Output in this run

## Zip Files and Unzip File

**Zip Files** puts **Files** into one ZIP archive, named **Filename**.

**Unzip File** turns a ZIP into a list of the files inside. A file that isn't a ZIP comes out as a list holding just that file. Turn on **Strict mode** to stop the step instead.

Node
Output in this run

Node
Output in this run

## Read Barcode

Reads every barcode in an image or PDF. Pick the **Code Format** to look for, turn on **Output as List** to get one value per barcode, and **Ignore repeated barcodes** to drop duplicates. For blurry or low-contrast scans, turn on **Enable Image Preprocessing**: it tries each recipe in order until it finds a barcode.

Node
Output in this run

## Related nodes

* **Fill a Word, Excel or PowerPoint template** with the **Fill Word Template**, **Fill Excel Template** and **Fill PowerPoint Template** nodes in [Integrations](https://docs.noxus.ai/integrations/overview.md). They replace each `{{variable}}` in the template.
* **Download a file from a URL** with **Make Download Request** in [APIs & Code](https://docs.noxus.ai/platform/flows/apis-code.md).
* **Read a scanned file or an image** with **Generate Text** in [AI Processing](https://docs.noxus.ai/platform/flows/ai-processing.md).

## Next Steps

* See every node group in [Nodes](https://docs.noxus.ai/platform/flows/nodes)
* Transform data with [Data Operations](https://docs.noxus.ai/platform/flows/data-operations.md)
* Call APIs and run code with [APIs & Code](https://docs.noxus.ai/platform/flows/apis-code.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.