# Split the PDF

> Splits it into separate documents, one per page, and each one goes on by itself.

Source: https://docs.go-lumen.ai/reference/steps/split-pdf

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `split-pdf` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | files, files |
| **Credits** | **3** credits each time it succeeds |
| **Side effects** | no |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | `file` |
| **Produces** | `file` |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

No named outputs. Later nodes still see everything produced earlier on the path, and this step passes the documents on unchanged.

## Settings

This step takes no settings.

## Use it in a flow

A node that runs `split-pdf` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: split-pdf-example
  namespace: tenant-acme
spec:
  displayName: "Split the PDF"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [split-pdf]
  nodes:
    - id: split-pdf
      stepRef: {name: split-pdf}
```
