How Fill PDF forms works
PDF Fill lets you complete interactive AcroForm fields in a PDF directly in your browser: text inputs, checkboxes, radio buttons and dropdown lists are all supported. You type your values, make your selections, and pdf-lib writes your answers into the form fields in local memory. The filled PDF is then offered as a download without any data touching a server.
The tool reads the AcroForm field definitions embedded in the PDF and renders each field as an interactive control. When you click download, pdf-lib serialises the field values back into the PDF structure, producing a filled copy that any standard PDF viewer can display correctly. Forms that use XFA (Adobe LiveCycle) instead of AcroForm are a different format not covered here; those require Adobe-specific tools to fill. Filling and flattening are two settings of the same pass here: leave flattening off and the fields stay editable in any viewer, turn it on and the values are burned into the page so nobody can change them afterwards.