<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 - [Patch] Add support for hide action in PDF Forms"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105758">105758</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Patch] Add support for hide action in PDF Forms
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>aheinecke@intevation.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=138372" name="attach_138372" title="Patch to add support for the hide action">attachment 138372</a> <a href="attachment.cgi?id=138372&action=edit" title="Patch to add support for the hide action">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105758&attachment=138372'>[review]</a>
Patch to add support for the hide action

This adds the action "Hide" as specified in Adobe PFD Reference Version 1.7
Section 8.5.3 (page 665f.)

Hide Actions can be used to show or hide form fields.

It is part of a changeset for Okular to support such actions. See
<a href="https://phabricator.kde.org/T8274">https://phabricator.kde.org/T8274</a> for details. This is why the qt5 binding is
also extended as I used this for testing. The task also contains a test
document.

The Okular task contains an autotest for this feature.

----

A Problem I had when implementing this patch was that according to Adobe's
reference the "T" value can also be "An indirect reference to an annotation
dictionary"  or "An array of such dictionaries".
I was not 100% sure what this meant for parsing or how the API should look like
for that. With Adobe Acrobat DC I was not able to create an example containing
such a thing.

So I've only implemented API for a Named target and commented in the Action's
declaration. I think this is the best in such a situation as in the future the
API can be extended, if necessary, without breaking something.</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>