---
canonical_url: "https://docs.composio.dev/toolkits/compdf"
markdown_url: "https://docs.composio.dev/toolkits/compdf.md"
product: "platform"
version: null
last_updated: null
---

# ComPDF

Convert, generate, edit, parse, and extract data from documents with ComPDF's global cloud API.

- **Category:** documents
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 19
- **Triggers:** 0
- **Slug:** `COMPDF`
- **Version:** 00000000_00

## Tools

### Add PDF Watermark

**Slug:** `COMPDF_ADD_PDF_WATERMARK`

Add a text or image watermark to selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `pages` | string | No | Pages to watermark, such as 1-3,6. Omit to use the provider default. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `watermark` | string | Yes | Required text or image watermark content and placement settings. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Compress PDF

**Slug:** `COMPDF_COMPRESS_PDF`

Compress one PDF with typed document and image optimization controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `image_quality` | integer | No | General image quality from 0 to 100. |
| `optimize_flags` | array | No | Optimization flags to combine. Cleanup: RMNOTUSE unused objects, RMEPTOBJ empty objects, RMSPEATTR special attributes, RMEMBFONT embedded fonts, RMINVALINK invalid links, RMINVABK invalid bookmarks, RMUNUSEDTARGET unused targets. Content removal: RMBK bookmarks, RMANNOT annotations, RMFORM forms, RMMULMEDIA multimedia, RMDOCINFO document info, RMMEDTADATA metadata, RMOBJDATA object data, RMFILEATTACHMENT attachments, RMEXTERNCROSSREF external references, RMOTHERAPPDATA app data, RMHIDERLAYER hidden layers, RMFORMCOMMITIMPORTRESETACTION form actions, RMJSACTION JavaScript, RMPAGETHUMBNAIL thumbnails, RMLABEL page labels, RMPRINTSETTINGS print settings, RMSEARCHINDEX search index. Compression/layout: BCOMPRESSIMAGE compresses images, RMREPLACEIMAGE replaces images, MERGEVISIBLELAYER merges visible layers, USEFLATE uses Flate, FLAT_REPLACELZW replaces LZW with Flate, OPTIMIZEPAGECONTENT optimizes page content, and OPTIMIZEPDFFASTWEBVIEW enables Fast Web View. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |
| `color_image_quality` | integer | No | Color-image quality from 0 to 100. |
| `color_image_upper_ppi` | integer | No | Maximum color-image resolution in PPI. |
| `color_image_target_ppi` | integer | No | Target color-image resolution in PPI. |
| `grayscale_image_upper_ppi` | integer | No | Maximum grayscale-image resolution in PPI. |
| `grayscale_image_target_ppi` | integer | No | Target grayscale-image resolution in PPI. |
| `monochrome_image_upper_ppi` | integer | No | Maximum monochrome-image resolution in PPI. |
| `monochrome_image_target_ppi` | integer | No | Target monochrome-image resolution in PPI. |
| `color_image_compress_algorithm` | string ("jpeg" | "flate") | No | Color-image compression algorithm. |
| `monochrome_image_compress_algorithm` | string ("jbig2" | "flate") | No | Monochrome-image compression algorithm. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Convert Document

**Slug:** `COMPDF_CONVERT_DOCUMENT`

Convert one PDF, office document, text file, CSV, HTML file, RTF file, or image to a supported output format, synchronously or as an asynchronous task. Processing consumes ComPDF account quota. Do not automatically retry an ambiguous submission because it may already be consuming quota. Synchronous download URLs are temporary and should be used promptly.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source document to upload and convert. |
| `options` | object | No | Typed operation-specific conversion settings. Options not supported by the selected operation are rejected. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening a protected source document. |
| `operation` | string ("pdf/docx" | "pdf/xlsx" | "pdf/pptx" | "pdf/html" | "pdf/rtf" | "pdf/img" | "pdf/csv" | "pdf/txt" | "pdf/json" | "pdf/markdown" | "pdf/ofd" | "pdf/editable" | "docx/pdf" | "xlsx/pdf" | "pptx/pdf" | "html/pdf" | "rtf/pdf" | "txt/pdf" | "csv/pdf" | "img/pdf" | "img/docx" | "img/xlsx" | "img/pptx" | "img/html" | "img/rtf" | "img/csv" | "img/txt" | "img/json") | Yes | Conversion route to run, such as pdf/docx, txt/pdf, or img/json. Only the documented canonical routes in this field's enum are accepted. |
| `callback_url` | string | No | Webhook callback URL, supported only when processing_mode is async. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive file, or async to return a task ID for later status checks. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Convert PDF Standard

**Slug:** `COMPDF_CONVERT_PDF_STANDARD`

Convert one PDF to a supported PDF/A, PDF/X-4, or PDF/E-1 standard using the required ICC color profile. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `standard` | string ("pdfa1a" | "pdfa1b" | "pdfa2a" | "pdfa2u" | "pdfa2b" | "pdfx4" | "pdfe1") | Yes | Target PDF/A, PDF/X-4, or PDF/E-1 standard. |
| `icc_profile` | object | Yes | Valid ICC color profile required by ComPDF for this conversion, such as an appropriate RGB or CMYK output profile for the intended standard. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Convert PDF to PDF/UA

**Slug:** `COMPDF_CONVERT_PDF_TO_PDF_UA`

Convert one PDF to the PDF/UA-1 accessibility standard, optionally embedding a document title and language. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `ua_title` | string | No | Document title to embed in the PDF/UA-1 output. |
| `ua_language` | string ("unspecified" | "cs_CZ" | "de_DE" | "en_GB" | "en_US" | "es_ES" | "fi_FI" | "fr_FR" | "hu_HU" | "it_IT" | "ja_JP" | "ko_KR" | "nl_BE" | "nl_NL" | "no_NO" | "pl_PL" | "pt_BR" | "pt_PT" | "ru_RU" | "sk_SK" | "sv_SE" | "tr_TR" | "zh_CN" | "zh_TW" | "zh_HK" | "zh_MO") | No | ComPDF PDF/UA language enum to embed in the output. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Decrypt PDF

**Slug:** `COMPDF_DECRYPT_PDF`

Decrypt one password-protected PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | Yes | Password required to open and decrypt the source PDF. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete PDF Pages

**Slug:** `COMPDF_DELETE_PDF_PAGES`

Create a new PDF with selected pages removed. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `pages` | string | Yes | Pages to delete, such as 1-3,6. Page numbers start at 1. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Encrypt PDF

**Slug:** `COMPDF_ENCRYPT_PDF`

Encrypt one PDF with at least a user password or owner password and optional permission controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `algorithm` | string ("rc4" | "aes128" | "aes256") | No | Encryption algorithm; ComPDF defaults to rc4. |
| `allow_copy` | boolean | No | Whether the encrypted PDF permits copying content. |
| `allow_print` | boolean | No | Whether the encrypted PDF permits printing. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `user_password` | string | No | Password users must enter to open the encrypted output PDF. |
| `owner_password` | string | No | Owner password used to control output PDF permissions. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `allow_commenting` | boolean | No | Whether the encrypted PDF permits commenting. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |
| `allow_document_changes` | boolean | No | Whether the encrypted PDF permits document changes. |
| `allow_form_field_entry` | boolean | No | Whether the encrypted PDF permits form filling. |
| `allow_document_assembly` | boolean | No | Whether the encrypted PDF permits page assembly. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Extract Document Fields

**Slug:** `COMPDF_EXTRACT_DOCUMENT_FIELDS`

Extract one fixed field schema from an uploaded document with ComPDF. Processing consumes AI quota; do not automatically retry an ambiguous submission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single document to process. |
| `options` | object | No | Typed options for fixed-schema field extraction. |
| `language` | integer ("1" | "2") | No | API error message language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening a protected source document. |
| `enable_ocr` | boolean | No | Enable OCR while processing the document. |
| `page_ranges` | string | No | Pages to process, starting at 1, such as 1-3,6; omit for all pages. |
| `extract_fields` | object | Yes | Required fixed schema containing the fields and tables to extract. |
| `processing_mode` | string ("sync" | "async") | No | AI work defaults to async; choose sync only for a small document expected to complete quickly. |
| `ocr_recognition_lang` | string ("AUTO" | "CHINESE" | "CHINESE_TRAD" | "ENGLISH" | "KOREAN" | "JAPANESE" | "LATIN" | "DEVANAGARI" | "CYRILLIC" | "ARABIC" | "TAMIL" | "TELUGU" | "KANNADA" | "THAI" | "GREEK" | "ESLAV") | No | Language used by OCR; AUTO lets ComPDF detect the language. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Extract PDF Pages

**Slug:** `COMPDF_EXTRACT_PDF_PAGES`

Extract selected pages from one PDF into a new PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `pages` | string | No | Pages to extract, such as 1-3,6. Omit to use the provider default. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Account Quota

**Slug:** `COMPDF_GET_ACCOUNT_QUOTA`

Return available and withheld ComPDF processing balances for the connected project account.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Task

**Slug:** `COMPDF_GET_TASK`

Get the current status, aggregate counts, and per-file results for one ComPDF processing task. Result download URLs are temporary and should be used promptly.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Task ID returned by an asynchronous or presigned processing request. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Supported Operations

**Slug:** `COMPDF_LIST_SUPPORTED_OPERATIONS`

List the document-processing operation routes currently advertised by ComPDF.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Tasks

**Slug:** `COMPDF_LIST_TASKS`

Return one page of processing-task history for the connected ComPDF project.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `size` | integer | No | Number of task records to request on this page. |
| `next_cursor` | string | No | Opaque continuation cursor from the previous response; omit for the first page. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Parse Document

**Slug:** `COMPDF_PARSE_DOCUMENT`

Run ComPDF's full intelligent parsing on one uploaded document. Processing consumes AI quota; do not automatically retry an ambiguous submission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single document to process. |
| `options` | object | No | Typed options for full intelligent document parsing. |
| `language` | integer ("1" | "2") | No | API error message language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening a protected source document. |
| `enable_ocr` | boolean | No | Enable OCR while processing the document. |
| `page_ranges` | string | No | Pages to process, starting at 1, such as 1-3,6; omit for all pages. |
| `processing_mode` | string ("sync" | "async") | No | AI work defaults to async; choose sync only for a small document expected to complete quickly. |
| `ocr_recognition_lang` | string ("AUTO" | "CHINESE" | "CHINESE_TRAD" | "ENGLISH" | "KOREAN" | "JAPANESE" | "LATIN" | "DEVANAGARI" | "CYRILLIC" | "ARABIC" | "TAMIL" | "TELUGU" | "KANNADA" | "THAI" | "GREEK" | "ESLAV") | No | Language used by OCR; AUTO lets ComPDF detect the language. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Remove PDF Watermark

**Slug:** `COMPDF_REMOVE_PDF_WATERMARK`

Remove tagged or untagged watermarks from selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `pages` | string | No | Pages from which to remove watermarks, such as 1-3,6. |
| `removal` | string | Yes | Required tagged or untagged watermark removal settings. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Rotate PDF Pages

**Slug:** `COMPDF_ROTATE_PDF_PAGES`

Rotate selected pages in one PDF by 90, 180, or 270 degrees. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `angle` | integer ("90" | "180" | "270") | Yes | Clockwise page rotation angle in degrees. |
| `pages` | string | Yes | Pages to rotate, such as 1-3,6. Page numbers start at 1. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |
| `output_file_name` | string | No | Requested file name for the generated PDF. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Split PDF

**Slug:** `COMPDF_SPLIT_PDF`

Split selected pages from one PDF into separate files in a ZIP archive. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | The single source PDF to process. |
| `pages` | string | Yes | Page ranges to split, such as 1-3,6. Page numbers start at 1. |
| `language` | integer ("1" | "2") | No | Response language: 1 for English or 2 for Chinese. |
| `password` | string | No | Password for opening the source PDF, when it is protected. |
| `callback_url` | string | No | Webhook callback URL for asynchronous processing. |
| `zip_file_name` | string | No | Requested file name for the output ZIP. |
| `processing_mode` | string ("sync" | "async") | No | Use sync for a small interactive PDF or async to return a task ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Wait For Task

**Slug:** `COMPDF_WAIT_FOR_TASK`

Poll a ComPDF processing task at a safe interval until it finishes, expires, fails, or reaches a caller-supplied timeout.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Asynchronous processing task ID to wait for. |
| `language` | integer | No | Response language: 1 for English or 2 for Chinese. |
| `timeout_seconds` | number | No | Maximum wall-clock seconds to wait (1-600). A timeout does not mean the task itself failed. |
| `poll_interval_seconds` | number | No | Seconds between status checks (3-60). ComPDF requires at least 3 seconds. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
