Sequence of Fields for IPXC_AcroForm.Field[nIndex: ULONG_T]

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
JSantmann@Wellsoft.com
User
Posts: 9
Joined: Wed Mar 29, 2017 1:36 am

Sequence of Fields for IPXC_AcroForm.Field[nIndex: ULONG_T]

Post by JSantmann@Wellsoft.com »

I am using IPXC_AcroForm.Field[nIndex: ULONG_T] to get a list of form fields (IPXC_FormField).
This works well, except the fields are always returned in alphabetic order (by field name).
Is there a way to get the list of form fields sorted by tab order? Usually, this is how they appear in the document (similar to the way they are listed in Adobe Acrobat)?

Thanks.
- John
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Sequence of Fields for IPXC_AcroForm.Field[nIndex: ULONG_T]

Post by Sasha - Tracker Dev Team »

Hello John,

Here's how it should be done:
1) Get annotations from the page (their default order is tab order).
2) Check whether the annotation is a Widget annotation.
3) Get the field from the IPXC_Annotation.
4) Push back this field into your sorted list.
4.1) If the field is a FFT_RadioButton, then the IPXC_Field will be the same in the different widgets if they belong to the same group.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply