Bug 77601

Summary: Support additional actions for form fields.
Product: poppler Reporter: Elliott Sales de Andrade <quantum.analyst>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium CC: mkasik
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch 1.
Patch 2.
Make available additional actions of widget annotations

Description Elliott Sales de Andrade 2014-04-18 04:11:00 UTC
Created attachment 97553 [details]
Patch 1.

As mentioned in my email earlier (http://lists.freedesktop.org/archives/poppler/2013-December/010731.html), here are a couple of patches to allow access to the additional actions that may be added to form fields. I'm not tied to any enum names or anything, so feel free to suggest any changes.
Comment 1 Elliott Sales de Andrade 2014-04-18 04:11:27 UTC
Created attachment 97554 [details] [review]
Patch 2.
Comment 2 Marek Kasik 2015-06-15 14:37:47 UTC
Created attachment 116514 [details] [review]
Make available additional actions of widget annotations

This patch adds poppler_form_field_get_annot_additional_action() which returns the action that shall be performed when an additional action is triggered on annotation related to given field.

This is needed for https://bugs.freedesktop.org/show_bug.cgi?id=90982.

Btw, wouldn' it be better to use PopplerFormAdditionalActionType in the previous patch instead of PopplerAdditionalActionType to differentiate between different additional actions?
Comment 3 Marek Kasik 2015-06-15 14:55:13 UTC
(In reply to Marek Kasik from comment #2)
> Created attachment 116514 [details] [review] [review]
> Make available additional actions of widget annotations
> 
> This patch adds poppler_form_field_get_annot_additional_action() which
> returns the action that shall be performed when an additional action is
> triggered on annotation related to given field.
> 
> This is needed for https://bugs.freedesktop.org/show_bug.cgi?id=90982.
> 
> Btw, wouldn' it be better to use PopplerFormAdditionalActionType in the
> previous patch instead of PopplerAdditionalActionType to differentiate
> between different additional actions?

I'm not sure about one thing here:

Maybe the additional actions of an annotation should be returned by a poppler_annot_widget/screen_get_additional_action(). But since there is no PopplerAnnotWidget I used this form. E.g. evince handles the widget annotation in form widgets.
Comment 4 GitLab Migration User 2018-08-21 11:11:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/560.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.