---
title: Html To Pdf
slug: connectors/html-to-pdf
docTags: 
createdAt: 2026-06-09T16:30:10.486Z
---

HTML to PDF is a service that converts HTML content into PDF documents, preserving layout and formatting.

HTML to PDF enables seamless conversion of HTML content into professional PDF documents. This connector allows Swimlane Turbine users to automatically generate PDFs from dynamic HTML inputs, with options to specify filenames and include tables of contents. By integrating HTML to PDF, security teams can automate the creation and distribution of formatted reports, evidence packages, or documentation directly within their workflows—eliminating manual steps and reducing errors. This enhances operational efficiency and ensures consistent, high-quality output for compliance, auditing, or case management needs.

## Capabilities

This plugin provides the following capabilities:

- Convert valid HTML to a PDF file and return it as a Turbine attachment

# Actions

## HTML to PDF

Generate a PDF file from provided HTML content by submitting the required HTML input.

### Endpoint

- **Method:** `GET`

### Input

| **Argument Name** | **Type** | **Required** | **Description**                                             |
| ----------------- | -------- | ------------ | ----------------------------------------------------------- |
| `filename`        | string   | Optional     | Filename.                                                   |
| `html`            | string   | Required     | HTML string to be converted into PDF of indicated filename. |
| `toc`             | boolean  | Optional     | Whether to include a table of contents in the PDF.          |

### Input Example

`{"filename":"Example Name","html":"string","toc":true}`

### Output

| **Parameter**    | **Type** | **Description**         |
| ---------------- | -------- | ----------------------- |
| `file`           | object   | Attachments             |
| `file.file`      | string   | Output field: file.file |
| `file.file_name` | string   | Name of the resource    |

### Output Example

`{"file":{"file":"string","file_name":"Example Name"}}`

# Response Headers

| **Header**   | **Description**                                       | **Example**                   |
| ------------ | ----------------------------------------------------- | ----------------------------- |
| Content-Type | The media type of the resource                        | application/json              |
| Date         | The date and time at which the message was originated | Thu, 01 Jan 2024 00:00:00 GMT |
