1. PDF Tools
  2. Convert PDF to a Text File

PDF Tools

Convert PDF to a Text File

Extracts PDF text into a text file. Useful for search, AI prompts, document review, and plain-text processing.

Uses

Use this task for converting a PDF file into a Text File.

Basic Usage

loading...

Parameters Explained

files
required
array

An array of PDF file objects to be converted to Text Files.

output_format
required
string

The output format of the Text File. Available options are: txt for plain text files, rtf for rich text format files.

function
required
string

The pdf_tools function to call, in this case it would be pdf_to_text

Result

The newly created files are returned in files. The same files are returned in attachments, which adds them to the stub's attachments.

editor
        {
  "convert_pdf_to_text": {
    "success": true,
    "payload": {
      "files": [
        {
          "fileuuid": "8142ce6c-f3cd-526c-a5d3-747799ed2b01",
          "filename": "report.txt",
          "originalname": "report.txt",
          "contentType": "text/plain",
          "visibility": "private"
        }
      ],
      "attachments": [...]
    }
  }
}