diff --git a/src/fpdm.php b/src/fpdm.php index fb8627d..ca2c501 100644 --- a/src/fpdm.php +++ b/src/fpdm.php @@ -957,8 +957,8 @@ public function set_field_checkbox($name, $value) $state = $this->value_entries["$name"]["infos"]["checkbox_yes"]; } $CurLine =$this->pdf_entries[$field_checkbox_line]; - $OldLen=strlen($CurLine); - $CurLine = '/AS /'.$state; + $OldLen=strlen($CurLine); + $CurLine = '/AS /'.$state."\n/DV /$state\n/V /$state"; $NewLen=strlen($CurLine); $Shift=$NewLen-$OldLen; $this->shift=$this->shift+$Shift;