[Poppler-bugs] [Bug 105758] New: [Patch] Add support for hide action in PDF Forms

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 27 07:15:59 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105758

            Bug ID: 105758
           Summary: [Patch] Add support for hide action in PDF Forms
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: aheinecke at intevation.de

Created attachment 138372
  --> https://bugs.freedesktop.org/attachment.cgi?id=138372&action=edit
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
https://phabricator.kde.org/T8274 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180327/bcd6579b/attachment-0001.html>


More information about the Poppler-bugs mailing list