[poppler] Spec question: Resetting form fields
Albert Astals Cid
aacid at kde.org
Mon Mar 19 13:05:22 PDT 2012
El Diumenge, 18 de març de 2012, a les 21:03:29, vau escriure:
> Can you try testing it in acrobat to see what Adobe does?
I could if i had such a file or knew how to create one.
> I could be remembering it wrong, but I think that many years ago the
> ghostscript developers said that they found many inconsistencies in Adobe's
> documentation, and when they weren't sure what to do, they looked at what
> Adobe products did. Many times when they informed Adobe of the
> inconsistency or of something that Adobe's products did differently than
> the specifications, Adobe would revise the specifications to match what
> their products did rather than changing their products to match the
> specification. Regards,
> > From: aacid at kde.org
> > To: poppler at lists.freedesktop.org
> > Date: Sun, 18 Mar 2012 23:52:14 +0100
> > Subject: [poppler] Spec question: Resetting form fields
> > I'm trying to get ready for 0.19.2 the patches to reset the form values
> > and
> > I've stumbled over something that feels like a mis-specification or maybe
> > i am just reading the spec wrong.
> > The spec says
> > 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.
> > Seems simple enough.
> > But the V value is marked as inheritable this means that in this situation
> > Form A
> > V "Foo"
> > DV None
> > Form B inherits Form A
> > V "Bar"
> > When resetting Form "B" i'd remove the V value from it and it would show
> > "Foo" since it will then be read from Form A.
> > That seems "wrong" in my mind. But obviously it's "wronger" going to Form
> > A
> > and removing the V there :D
> > So I'm quite stucked here. Any idea of what's the right thing to do?
> > Or maybe that is the right thing to do?
> > Cheers,
> > Albert
> > _______________________________________________
> > poppler mailing list
> > poppler at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/poppler
More information about the poppler