Skip to content

checkbox does not display in acrobat reader #19

@fabboyrie

Description

@fabboyrie

When I use fpdm, checkbox appears correctly in okular but not in latest acrobat reader.

With the following change in src/fpdm.php, it works but I do not know what I am really doing...

@ -966,7 +958,7 @@
                         }
                         $CurLine =$this->pdf_entries[$field_checkbox_line];
                         $OldLen=strlen($CurLine);
-                        $CurLine = '/AS /'.$state;
+                       $CurLine = '/AS /'.$state."\n/DV /$state\n/V /$state";
                         $NewLen=strlen($CurLine);
                         $Shift=$NewLen-$OldLen;
                         $this->shift=$this->shift+$Shift;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions