<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Form entries with the same name do not share their values"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104619">104619</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Form entries with the same name do not share their values
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gurb@tuta.io
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=136713" name="attach_136713" title="Test PDF file: a form with two fields whose names are 'name'">attachment 136713</a> <a href="attachment.cgi?id=136713&action=edit" title="Test PDF file: a form with two fields whose names are 'name'">[details]</a></span>
Test PDF file: a form with two fields whose names are 'name'

According to the PDF 1.7 standard (12.7.3.2), fields with the same fully
qualified name shall have the same value. In Adobe Reader, when the user fills
a text field, all other homonym fields are filled automatically with that
value. Some PDF rely on this feature to autocopy their forms in different pages
so that they can be delivered to different recipients once printed.

I guess this is a poppler bug since Evince and Okular do not show this
behaviour. Different fields with a common name can be filled with different
values. If the file is saved and opened in Adobe Reader the value of the first
is shown in all of them. If opened in Evince or Okular, they show different
values.

That happens in Arch Linux with poppler 0.61.1, evince 3.26.0+14+g2a499547-1
and okular version 17.12.1-1, but also in older versions. I attach a test PDF
file.

PS: having a look at the source code it seems that different FormWidgetText can
have a common FormFieldText parent, and when the value of any of the widgets
changes, FormField::updateChildrenAppearance may refresh the displayed text of
all other widgets for the field. But perhaps widgets are not created so that
they share their parent.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>