Skip to main content

Split the PDF

Stepsplit-pdffiles

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

At a glance​

PropertyValue
Step namesplit-pdf
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categoryfiles, files
Credits3 credits each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needsfile
Producesfile
Works onitem 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.

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. Give it any id, and list the next node ids in next.

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}