Skip to main content
Text to PDF logo
  • Category: documents
  • Auth: NO_AUTH
  • Composio-managed OAuth available? N/A
  • Tools: 6
  • Triggers: 0
  • Slug: TEXT_TO_PDF
  • Version: 20261030_00

Tools

Slug: TEXT_TO_PDF_CONVERT_TEXT_TO_PDFConvert plain text or Markdown content into a downloadable PDF document. Supports Unicode characters, special symbols, and Markdown formatting including headers, lists, code blocks, links, and emphasis. Images must use inline data URLs; external and local resources are rejected. The response includes the generated PDF file, filename, and MIME type.

Input Parameters

string
required
The text content to convert to PDF, limited to 20 MiB when UTF-8 encoded. For ‘txt’ format, text is rendered as-is. For ‘markdown’ format, Markdown syntax will be parsed and styled. Must contain the complete, final content inline — document IDs, URLs, or external references are not accepted. Empty or placeholder text produces a nearly blank PDF. Malformed Markdown (unclosed lists, improperly nested headings, mixed HTML) degrades PDF structure; normalize before conversion.
string ("txt" | "markdown")
required
The format of the input text. Use ‘txt’ for plain text (preserves whitespace and formatting) or ‘markdown’ for Markdown-formatted text (supports headers, lists, bold, links, etc.) Only 'txt' and 'markdown' are accepted; any other value causes failure. Mismatching format to content (e.g., passing Markdown as 'txt') degrades headings, lists, and tables in output.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TEXT_TO_PDF_DELETE_ASYNC_JOBTool to delete an asynchronous conversion job. Use when a job is no longer required to free up server resources. Jobs are automatically deleted after 3 hours if not manually removed.

Input Parameters

string
required
The unique identifier of the asynchronous conversion job to delete. This ID is returned when creating an async conversion job.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TEXT_TO_PDF_DELETE_FILETool to delete a file from ConvertAPI server. Use when a file is no longer needed and should be removed from temporary storage.

Input Parameters

string
required
The unique identifier of the file to delete from ConvertAPI server. Files are automatically deleted after 3 hours if not manually deleted.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TEXT_TO_PDF_DOWNLOAD_FILEDownload a file from ConvertAPI server using its unique File ID. Use this after converting or uploading files to retrieve the result. The file must exist on the server and not be expired.

Input Parameters

string
required
The unique identifier of the file to download from ConvertAPI server. Obtained from a previous file upload or conversion response.
string ("attachment" | "inline")
Download behavior: ‘attachment’ to download the file, ‘inline’ to view it in browser. Defaults to ‘attachment’ if not specified.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TEXT_TO_PDF_START_ASYNC_CONVERSIONStart an asynchronous file conversion job using ConvertAPI. Returns a JobId that can be used to poll for conversion results. Optionally supports WebHook callback for push notification when conversion completes.

Input Parameters

string
required
File to be converted. Value can be a public URL pointing to the file or the file content itself.
string
Custom job ID for tracking the conversion. Must be exactly 32 characters long, lowercase alphanumeric only. If not provided, the API will generate one automatically.
string
URL to receive POST notification when conversion completes. The API will send the conversion results to this webhook URL upon completion.
string
required
Target file format (e.g., ‘pdf’). This is the desired output format for the converted file.
string
required
Source file format (e.g., ‘txt’, ‘docx’, ‘html’). This is the format of the input file to be converted.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TEXT_TO_PDF_UPLOAD_FILEUpload a file to ConvertAPI server for subsequent conversions. Supports direct file upload or remote URL upload. Files are stored securely for up to 3 hours and can be referenced by File ID in conversion requests.

Input Parameters

string
Remote file URL to upload to ConvertAPI server. The file will be downloaded from this URL and stored on ConvertAPI. Either ‘file’ or ‘url’ must be provided, not both.
object
The file to upload to ConvertAPI server. Either ‘file’ or ‘url’ must be provided, not both.
string
Custom ID for the file. Must be a lowercase alphanumeric character string. If not provided, ConvertAPI will generate a random ID. This ID can be used to reference the file in subsequent conversion requests.
string
Custom filename for the uploaded file. If not provided, the original filename will be used. For direct file uploads, this overrides the original filename. For URL uploads, this is required if the URL doesn’t contain a clear filename.
string
Remote file request header field name. Only used with ‘url’ parameter to provide custom headers when downloading the remote file.
string
Remote file request header field value. Only used with ‘url’ and ‘header_name’ parameters.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not