Convert text to PDF
Convert text to PDF On Nagent, Text to PDF is exposed as a fully-configurable documents integration that any agent can call — 6 actions, and no authentication authentication. No code is required to wire Text to PDF into your workflow — connect it once via the External Integrations panel and reuse it across every agent you build.
Agent builders use Text to PDF to automate the kinds of tasks documents teams previously handled manually. Concrete examples — each one is a single agent step in Nagent — include:
Every action and trigger is paired with a structured input/output schema (visible in the sections below), so when you wire Text to PDF into Helix — our agentic agent builder — the editor knows exactly what each step expects and produces. Configure once, deploy anywhere across your Nagent agents.
Every operation an agent can call against Text to PDF, with input parameters and output schema. Drop these into any step of an agent built in Helix.
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 require publicly accessible URLs to render. Response PDF URL is at `data.file.s3url`; also returns `data.file.name` and `data.file.mimetype`.
Input parameters
The text content to convert to PDF. 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.
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
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
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
The unique identifier of the asynchronous conversion job to delete. This ID is returned when creating an async conversion job.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
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
The unique identifier of the file to delete from ConvertAPI server. Files are automatically deleted after 3 hours if not manually deleted.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
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
The unique identifier of the file to download from ConvertAPI server. Obtained from a previous file upload or conversion response.
Download behavior: 'attachment' to download the file, 'inline' to view it in browser. Defaults to 'attachment' if not specified.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
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
File to be converted. Value can be a public URL pointing to the file or the file content itself.
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.
URL to receive POST notification when conversion completes. The API will send the conversion results to this webhook URL upon completion.
Target file format (e.g., 'pdf'). This is the desired output format for the converted file.
Source file format (e.g., 'txt', 'docx', 'html'). This is the format of the input file to be converted.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
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
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.
The file to upload to ConvertAPI server. Either 'file' or 'url' must be provided, not both.
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.
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.
Remote file request header field name. Only used with 'url' parameter to provide custom headers when downloading the remote file.
Remote file request header field value. Only used with 'url' and 'header_name' parameters.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
No publicly available marketplace agent is found using this tool yet. There are 72 agents privately built on Nagent that already use Text to PDF.
Build on Nagent
Connect Text to PDF to any Nagent agent in minutes — no API key management, no boilerplate. Just configure and deploy.
The five questions agent builders ask before adopting a new integration.
Open the External Integrations panel inside Nagent (app.nagent.ai/externalIntegration), find Text to PDF, and click "Connect Now." You'll authenticate with no authentication (it’s public) — Nagent handles credential storage and refresh automatically. Once connected, Text to PDF is available to any agent in your workspace.
No. Nagent provides no-code integration for every tool. Once Text to PDF is connected, you configure its 6 actions directly in the agent builder UI — no API calls, no boilerplate, no schema management.
Helix — Nagent's agentic agent builder — lets you drop Text to PDF steps into any workflow visually. Pick an action (e.g., one of those listed above), fill in the inputs (Helix knows the required vs. optional schema for each parameter), and connect it to upstream/downstream steps. Triggers run as the entry point of an agent, so when a Text to PDF event fires, the agent kicks off automatically.
Every Text to PDF action and trigger ships with a fully-typed schema — input parameters with name, type, required flag, and description, plus the output payload shape. The schemas are documented in the sections above. Helix uses these schemas to validate your configuration at build time and to type-check the data flowing between steps.
Yes. While Text to PDF ships with 6 pre-built documents actions, you can layer custom logic around them inside Helix — pre/post-processing steps, conditional branches, retries, or stitching Text to PDF together with other connected tools. For deeper customization, talk to our team about Nagent's Agentic AI Lab — forward-deployed engineers who build Text to PDF-based workflows tailored to your business.