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

# FileToPDF.dev

Convert files, HTML, and Markdown into PDF documents through the FileToPDF.dev API.

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

## Tools

### Convert File URL to PDF

**Slug:** `FILETOPDF_CONVERT_FILE_URL_TO_PDF`

Convert a file at a public HTTPS URL to PDF, consuming one conversion credit and returning a downloadable PDF. The URL path must end with a supported file extension. Check GET_ACCOUNT_STATUS for remaining credits.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public HTTPS URL of the source file. Its path must end with a supported file extension such as .docx, .xlsx, .pptx, .png, or .jpg. |

#### 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 HTML to PDF

**Slug:** `FILETOPDF_CONVERT_HTML_TO_PDF`

Render an HTML string as a PDF, consuming one conversion credit and returning a downloadable PDF. Check GET_ACCOUNT_STATUS for remaining credits.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `html` | string | Yes | HTML document or fragment to render as 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 Markdown to PDF

**Slug:** `FILETOPDF_CONVERT_MARKDOWN_TO_PDF`

Render a GitHub-Flavored Markdown string as a PDF. A successful conversion consumes one conversion credit and returns a downloadable PDF. Check GET_ACCOUNT_STATUS for remaining credits.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `markdown` | string | Yes | GitHub-Flavored Markdown content to render as 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 Status

**Slug:** `FILETOPDF_GET_ACCOUNT_STATUS`

Return the connected FileToPDF workspace plan, subscription status, and remaining conversion credits without consuming a credit.

#### 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 |
