I have an Acrobat Forms document (PDF) which contains a combo box with export values associated with each entry (annotation aka display value).
When I flatten the PDF, the combo box automatically gets replaced by the export value of the selected value of the combo box. (I believe this is natural, because that's what the export value facility is supposed to do: show one value in the live form and show a different value in the exported (flattened) document. E.g. if the field contains an entry with 'Stack Overflow' as the display value and 'www.stackoverflow.com' as the export value, the live form would display the former and the flattened document will contain the latter.)
However, I would like the flattened form to retain the display value of the field rather than the export value (i.e. 'Stack Overflow' rather than 'www.stackoverflow.com' in the earlier example). I have gone through the Acrobat JavaScript API documentation several times, but could not find any satisfactory solution.
Is there some way to accomplish this? Any possible approach via Acrobat JavaScript API is acceptable.
Thanks in advance.