1. PDF Tools
  2. Convert File to PDF

PDF Tools

Convert File to PDF

Converts supported files into PDF format. Useful for standardizing documents before storage, sharing, or downstream processing.

Uses

Use this task for converting a file to a PDF file. Word documents, spreadsheets, presentations, and other office formats are supported.

Basic Usage

loading...

Parameters Explained

files
required
array

An array of file objects to be converted to PDFs. These do not have to be PDF files.

function
required
string

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

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_file_to_pdf": {
    "success": true,
    "payload": {
      "files": [
        {
          "fileuuid": "8142ce6c-f3cd-526c-a5d3-747799ed2b01",
          "filename": "report_convertedToPDF.pdf",
          "originalname": "report_convertedToPDF.pdf",
          "contentType": "application/pdf",
          "visibility": "private"
        }
      ],
      "attachments": [...]
    }
  }
}