@trupdf/forms
Forms
AcroForm + XFA read · FDF / XFDF data · sandboxed JS
Read every Widget annotation from the PDF, let users edit values, validate with a sandboxed expression engine, and back-write directly into the PDF — with optional flatten.
F.01 — What you get
- AcroForm: text, choice, button, signature widgets via FormManager.
- Static XFA flattened into the same FormFieldRecord shape.
- Sandboxed JS engine — recognises AFSimple_Calculate / AFRange_Validate; never eval.
- FDF and XFDF data round-trip for legacy systems.
Next step
See it in the demo
The live demo wires this feature into a full viewer. Open any PDF and try it.