Clioos › Guides › Fill PDF Form

How to Fill a PDF Form

By Clioos 团队

The free offline way is pypdf: set the field values, write the file, then read it back to prove every value stuck. Tested 2 November 2026 with pypdf 6.21.4 — a 3-field AcroForm (full_name, email, amount) filled as Jane Doe, jane@example.com and 250, and read back with all three values intact, 1 page, 4,883 bytes. Clioos does not offer a form-filling tool — this guide teaches the method.

At a glance

Steps

  1. List fields: PdfReader(form).get_fields() — the test form reported amount, email, full_name.
  2. Fill: writer.update_page_form_field_values(page, {"full_name": "Jane Doe", "email": "jane@example.com", "amount": "250"}, auto_regenerate=True).
  3. Verify: re-read with get_fields — the test came back full_name Jane Doe, email jane@example.com, amount 250, 1 page, 4,883 bytes.
  4. If a value is missing on read-back, the field name was wrong — list the fields again and match names exactly.

Worked example (tested 2 November 2026)

Test file: a 1-page AcroForm built for the test with reportlab 5.1.0 (three text fields). Method: pypdf 6.21.4, fill then read back.

FieldBeforeAfter
full_name(empty)Jane Doe
email(empty)jane@example.com
amount(empty)250

All three values read back identical. Output: 1 page, 4,883 bytes, fields still editable (not flattened).

If the form won't fill

What it can't do

Free alternatives, honestly compared

Frequently asked questions

Is it free to fill a PDF form?

Yes, with pypdf — free and open source. Browser fillers are free up to a limit; desktop readers vary.

Will the filled form open in any reader?

AcroForm is the standard fillable format, so yes in practice. Values are stored in the file itself.

Can I fill XFA forms with pypdf?

No. XFA (Adobe XML) forms need Adobe tooling. If get_fields comes back empty on a form that looks fillable, XFA is the likely cause.

Does filling lock the form?

Not unless you flatten it. The test output kept fields editable. Flatten only the copy you send, and keep an editable copy.


Related guides: How to edit a PDF · How to merge PDF files · How to convert PDF to Excel · All guides · Tool: PDF Probe