Generate PDF documents
operations:
- name: generate
operation: pdf
config:
html: ${render.output}
filename: report.pdf
config:
html: string # HTML content
filename: string # Output filename
format: string # A4, Letter, etc
margin: object # Page margins
operations:
- name: render
operation: html
config:
template: invoice
data:
items: ${input.items}
- name: generate-pdf
operation: pdf
config:
html: ${render.output}
filename: invoice-${input.id}.pdf
operations:
- name: generate
operation: pdf
config:
html: ${render.output}
filename: report.pdf
- name: upload
operation: storage
config:
type: r2
action: put
key: reports/${input.id}.pdf
value: ${generate.output}