AcroForm checkboxes have two independent states: /V in the field dictionary and /AS on the widget. Set one without the other and the box reads checked in your code but blank in Preview. pypdf's set_need_appearances_writer papers over it; knowing both fields actually fixes it.
pdfops.devWhy pypdf checkboxes come back unchecked — PDFopsThe /V vs /AS mismatch that makes filled checkboxes look empty in some viewers.
0 reposts1 like