Skip to content

PDF form: unchecked AcroForm checkboxes render and export as checked #3447

Done

Description

@mazen-salah

Install Method

Manual Python install (pip / venv)

Operating System

Other (code-level bug, platform-independent — verified against current dev)

Steps to Reproduce

  1. Import an AcroForm PDF that contains at least one unchecked checkbox into the form editor (extract fields → render as markdown).
  2. Look at the rendered checkbox line (and export the form back to PDF).

Expected Behaviour

An unchecked checkbox renders as - [ ] **Label** and exports as unchecked.

Actual Behaviour

It renders as - [x] **Label** (ticked) and exports as checked, silently corrupting the form. PyMuPDF reports an unchecked checkbox's value as the reserved "Off" state — a non-empty string — and _checkbox_marker used a plain truthiness test ("[x]" if value else "[ ]"), so "Off" counted as checked.

Fix in #3452.

Activity

  1. added
    ready for review
    on Jun 8, 2026
  2. added
    p1
    on Oct 2, 2026
  3. removed
    ready for review
    on Nov 29, 2026
  4. added a commit that references this issue on Nov 29, 2026
    d88c0a5
  5. added a commit that references this issue on Dec 1, 2026
    b19956a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions