# PDF production

## Introduction

Form Builder and Form Runner can produce PDF output in two ways:

* **Automatic**
  * The PDF is produced based on the appearance of the form in your web browser. This is similar to printing a read-only version of your form.
  * As a form author, you do not need to take any action to enable this mode.
  * For more, see [Automatic PDF](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/form-builder/advanced/pdf-production/automatic-pdf).
* **Template-based**
  * You upload a PDF file using the Upload PDF dialog in the toolbox. At runtime, Form Runner fills-out Acrobat fields in the template.
  * This mode is automatically enabled for a form if a PDF template is attached.
  * For more, see [PDF Templates](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/form-builder/advanced/pdf-production/pdf-templates).

## Availability

* Automatic PDF generation is available in Orbeon Forms CE and PE
* Templates are an [Orbeon Forms PE](https://www.orbeon.com/download) feature.

## Setup

### Using buttons

PDF files can be accessed directly from the Form Runner Summary Page and Detail Page using the `pdf` button.

Example for the Detail Page:

```markup
<property as="xs:string" name="oxf.fr.detail.buttons.orbeon.controls">
    summary wizard-prev wizard-next pdf tiff save review
</property>
```

Example for the Summary Page:

```markup
<property as="xs:string"  name="oxf.fr.summary.buttons.orbeon.controls">
    home review pdf tiff delete duplicate new
</property>
```

See also [Predefined buttons](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/form-runner/advanced/buttons-and-processes#predefined%20buttons).

### Sending

You can *send* the URL of a PDF file using the `content = "pdf-url"` parameter. See [Sending a PDF URL](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/form-runner/advanced/buttons-and-processes/form-runner-actions#sending-a-pdf-url).

### Email

You can *email* the PDF file using the following property:

```markup
<property
    as="xs:boolean"
    name="oxf.fr.email.attach-pdf.*.*"
    value="true"/>
```

See also [Email properties](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/configuration/properties/form-runner#email-settings).

## Production of TIFF images

\[SINCE Orbeon Forms 2016.1]

PDF files can be converted to TIFF images. See [TIFF Production](https://doc.orbeon.com/~/revisions/-LFrzxlvP9UXA6_RDYI9/form-runner/features/tiff-production).
