Skip to main content

Fill form fields

Fill form fields by name and save a new PDF; optionally flatten so values can no longer be edited.

Command in the PDF toolkit · id ooa.pdf/fill_form · 5 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesPDF form.
ValuesDictionaryYesField name to value.
TargetFileYesFilled PDF to create.
FlattenBooleanNofalseMake the form read-only.
PasswordCredentialNoPassword for protected PDFs; the filled copy is saved without protection.

Outputs​

OutputTypeWhat it is
filledNumberNumber of fields filled.