# Generate Document

> Generates a PDF document.

## Description

Generates a PDF document.

## Project compatibility

Windows | Cross-platform

## Configuration

* **Connection** - The connection established in Integration Service. Access the dropdown menu to choose, add, or manage connections.
* Select **Switch to object view** to explore and map your data using the [Data Mapping editor](https://docs.uipath.com/studio-web/automation-cloud/latest/user-guide/configuring-activities#data-mapping-editor).
* **Template** - The ID of the source template. Enter an ID or use the dropdown list to find the template. This field supports `String` type input.
* **Filename** - The file name of the document. This field supports `String` type input.
* **Data** - The JSON object containing the key-value pair of data to be added to the PDF. Example: `{ "name": "Jane Doe" }`. This field supports `String` type input.
* **Metadata** - The JSON object containing the key-value pair of metadata to be added to the PDF. Example: `{ "_filename": "my-document.pdf" }`. This field supports `String` type input.

### Manage Properties

Use the **Manage Properties** wizard to configure or use any of the object's standard or custom fields. You can select fields to add them to the activity canvas. The added standard or custom fields are available in the **Properties** panel (in Studio Desktop) or under **Show additional properties** (in Studio Web).

### Additional properties

#### Output

* **Document ID** - Automatically generated output variable.
* **Document** - Automatically generated output variable.
