[poppler] Spec question: Resetting form fields

Leonard Rosenthol lrosenth at adobe.com
Mon Mar 19 15:46:25 PDT 2012


On 3/18/12 6:52 PM, "Albert Astals Cid" <aacid at kde.org> wrote:

>Upon invocation of a reset-form action, a conforming processor shall reset
>selected interactive form fields to their default values; that is, it
>shall 
>set the value of the V entry in the field dictionary to that of the DV
>entry 
>(see Table 220). If no default value is defined for a field, its V entry
>shall 
>be removed.
>
>So you go over the fields and if those fields have DV you set the V to
>that 
>value and if not you remove the V value.

This is correct for "terminal fields" (aka those w/o any children).

For a non-terminal field, you simply loop over each child and then do the
above.


>But the V value is marked as inheritable this means that in this situation

It's a bug in the spec :(.

V is never considered inherited, and I am going to get that
fixed/updated/addressed.

Leonard



More information about the poppler mailing list