Fill PDF Form and PDF Form Fields Converters

P
Paulius
ConvertAPI

The new Fill PDF Form converter fills the form fields of a PDF with values from JSON. Its companion PDF Form Fields lists every field of a form with its name, type and value, so you know which names to send.

Highlights

  • Text fields, check boxes, radio buttons, dropdowns and list boxes. A key is the field's full name, and differences in case, spaces, _ and - are forgiven. Nested JSON objects fill hierarchical names such as address.city.
  • Every filled field is drawn again, so the values look the same in Acrobat, browsers and mobile viewers. The fields stay editable unless you flatten them.
  • Letters the field's font does not have, such as Lithuanian, Cyrillic or Chinese, are drawn in a fallback font. The rest of the value keeps the field's own font.
  • PDF Form Fields gives each field's name, value, type, options, tooltip, flags and position on the page. The list with changed values can be sent back to Fill PDF Form as it is.
  • Signed PDFs keep valid signatures, because the values are added as an incremental update. Fields that a signature locks keep their values. A PDF/A form stays PDF/A.
  • Static and hybrid XFA forms are filled through their PDF fields and lose the XFA part. Dynamic XFA forms and PDFs without form fields return an error.
  • Form scripts are not run, so calculated fields and field formats do not update. A flat PDF form can be made fillable first with PDF to Fillable PDF.

Parameters

  • JsonPayload (JSON, required) - the field names and their values. The list from PDF Form Fields with changed values works too.
  • OverwriteExistingValues (bool, default true) - when false, fields that already hold a value keep it, and only empty fields are filled.
  • Flatten (bool, default false) - turns the fields into page content after filling, so the values can no longer be changed. Not available for signed PDFs.
  • FailIfIncomplete (bool, default false) - returns an error instead of a file when a key matches no field or a value cannot be set. The error names the keys and why.
  • FontName (string, default auto) - the font for letters a field's own font does not have. auto picks Arial.
  • Password (string) - opens a password-protected PDF, in both converters. A filled PDF is saved without encryption, except a signed one.

Try it out