Skip to content

checkbox does not display in acrobat reader #19

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;

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions