Skip to main content

Merge them into one PDF

Stepmerge-pdfsfiles

Merges the run's PDFs into a single PDF.

At a glance​

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

Inputs​

PropertyValue
Needsfile
Producesfile
Works onbatch all of a run's documents together

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​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
namestring-Name is the merged file's name; merged.pdf when unset.minLength 1

The full JSON Schema of these settings: merge-pdfs.schema.json.

Example​

Merge two supplier invoices into one file

config
name: october-invoices.pdf

Use it in a flow​

A node that runs merge-pdfs 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: merge-pdfs-example
namespace: tenant-acme
spec:
displayName: "Merge them into one PDF"
triggers:
- id: start
ref: {name: manual-run}
next: [merge-pdfs]
nodes:
- id: merge-pdfs
stepRef: {name: merge-pdfs}
config:
name: october-invoices.pdf