---
title: Rasterizer
slug: connectors/rasterizer
docTags: 
createdAt: 2026-06-09T16:29:36.633Z
---

## Swimlane Rasterize Connector

Rasterizer is a document conversion service that enables users to convert PDFs to images, emails to PDFs, and URLs to PDF documents.
This connector is maintained by Swimlane.

Rasterizer is a powerful document conversion tool that enables seamless transformation of emails, PDFs, and web pages into various formats. With the Rasterizer connector for Swimlane Turbine, users can automate the conversion of email attachments to PDF, transform PDFs into images, and convert URLs directly into PDF documents. This integration streamlines documentation processes within security workflows, enhancing archival, sharing, and analysis capabilities. By leveraging Rasterizer's functionality, Swimlane Turbine users can focus on critical security tasks without manual document handling, ensuring efficient and error-free operations.

## Capabilities

This connector provides the following capabilities:

- Convert a PDF file to images
- Convert a URL to a PDF
- Convert an email file to PDF

## Tasks Setup

### PDF File to Image Conversion

- If you want to convert only specific pages of a PDF, you can use the **Convert from Page** and **Convert till Page** parameters in the inputs (both values are inclusive).
- If you want to generate images in any other format than JPEG, you can use the **Format** parameter in the inputs.

# Actions

## Convert Emails to PDF

Converts email attachments to PDF, enabling straightforward archiving and sharing with 'email\_attachment' input.

### Endpoint

- **Method:** `GET`

### Input

| **Argument Name**            | **Type** | **Required** | **Description**                                   |
| ---------------------------- | -------- | ------------ | ------------------------------------------------- |
| `email_attachment`           | array    | Required     | File to be attached                               |
| `email_attachment.file`      | string   | Optional     | Parameter for Convert Emails to PDF               |
| `email_attachment.file_name` | string   | Optional     | Name of the resource                              |
| `file_name`                  | string   | Optional     | Custom filename for the generated PDF file.       |
| `ignore_errors`              | boolean  | Optional     | Ignore errors parsing an email. Defaults to False |

### Input Example

`{"email_attachment":[{"file":"string","file_name":"Example Name"}],"file_name":"Example Name","ignore_errors":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"}}`

## Convert PDF to Image

Converts a PDF file to images in the chosen format, requiring 'fmt' for image type and 'attachments' as input.

### Endpoint

- **Method:** `GET`

### Input

| **Argument Name**       | **Type** | **Required** | **Description**                                                    |
| ----------------------- | -------- | ------------ | ------------------------------------------------------------------ |
| `attachments`           | array    | Required     | PDF file to be converted.                                          |
| `attachments.file`      | string   | Optional     | Parameter for Convert PDF to Image                                 |
| `attachments.file_name` | string   | Optional     | Name of the resource                                               |
| `fmt`                   | string   | Required     | Format of image files. Eg - JPEG                                   |
| `first_page`            | number   | Optional     | Page number to start conversion from. Default - First Page         |
| `last_page`             | number   | Optional     | Page number to end conversion at. Default - Last Page              |
| `width`                 | number   | Optional     | Width of the images generated. Height should also be specified.    |
| `height`                | number   | Optional     | Height of the images generated. Width should also be specified.    |
| `dpi`                   | number   | Optional     | Image quality in DPI of the images generated. Default - 200.       |
| `jpegopt`               | string   | Optional     | JPEG Options (Only for JPEG format).                               |
| `transparent`           | boolean  | Optional     | Make the background transparent instead of White. Default - False. |
| `grayscale`             | boolean  | Optional     | Generate grayscale images.                                         |
| `hide_annotations`      | boolean  | Optional     | Hide PDF annotations in the images.                                |

### Input Example

`{"attachments":[{"file":"string","file_name":"Example Name"}],"fmt":"jpeg","first_page":123,"last_page":123,"width":123,"height":123,"dpi":123,"jpegopt":"string","transparent":true,"grayscale":true,"hide_annotations":true}`

### Output

| **Parameter**    | **Type** | **Description**         |
| ---------------- | -------- | ----------------------- |
| `file`           | array    | Image files.            |
| `file.file`      | string   | Output field: file.file |
| `file.file_name` | string   | Name of the resource    |

### Output Example

`{"file":[]}`

## Convert URL to PDF

Converts a specified URL into a PDF document, with the URL being the mandatory input.

### Endpoint

- **Method:** `GET`

### Input

| **Argument Name** | **Type** | **Required** | **Description**                             |
| ----------------- | -------- | ------------ | ------------------------------------------- |
| `url`             | string   | Required     | URL to convert.                             |
| `file_name`       | string   | Optional     | Custom filename for the generated PDF file. |

### Input Example

`{"url":"https://example.com/api/resource","file_name":"Example Name"}`

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