PDF-lib icon

PDF-lib

Work with PDFs using pdf-lib

Fill Form Fields

AI-generated

Summary

Fill interactive PDF form fields with specified values, supporting text fields, checkboxes, and radio buttons in a PDF loaded from a URL or binary input.

Inputs

  • PDF Source (required) — Choose between loading the PDF from a URL or from binary data in the workflow.
  • PDF URL (required) — Specify the URL of the PDF containing form fields, required if PDF Source is 'From URL'.
  • Binary Property (required) — Name of the binary property containing the PDF, required if PDF Source is 'From Binary Data'.
  • Form Fields (required) — Define one or more form fields to fill. For each field, specify the field name, type (Text, Checkbox, Radio Button), and the value or checked state to set.
  • Output Property Name — Name of the binary property in which to store the output filled PDF; defaults to 'data'.

Output shape

a single item per input with the PDF saved in the specified binary property

The operation returns the filled PDF binary data under the output property name specified, defaulting to 'data'. Errors in filling individual form fields are reported and halt execution unless 'Continue On Fail' is enabled.

Discussion