Apache PDFBox Fill

Apache PDFBox Fill

Certified

Fill the form fields of a PDF

Sets AcroForm fields by their fully qualified name and stores the filled PDF in internal storage. Check boxes accept true/false or the name of their on state. Unknown field names fail the task unless ignoreUnknownFields is true. With flatten, the fields are merged into the page content so the values can no longer be edited.

yaml
type: io.kestra.plugin.pdfbox.form.Fill

Fill and flatten an onboarding form

yaml
id: pdf_fill_form
namespace: company.team

inputs:
  - id: form
    type: FILE

tasks:
  - id: fill
    type: io.kestra.plugin.pdfbox.form.Fill
    from: "{{ inputs.form }}"
    fields:
      full_name: "Jane Doe"
      start_date: "2026-11-02"
      remote: "true"
    flatten: true
Properties

Field values, keyed by fully qualified field name

The PDF form, as an internal storage URI

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultfalse

Flatten the form after filling so the values become static page content

Default false.

Defaultfalse

Skip field names that do not exist in the form instead of failing

Default false.

Owner password of an encrypted PDF

The filled form keeps the encryption of the input; changing it needs the owner password, so the user password alone is refused.

Number of fields that were set

Formaturi

Internal storage URI of the filled PDF