[poppler] Merging FormWidget and AnnotWidget?
Julien Rebetez
julien at fhtagn.net
Thu Feb 14 11:27:01 PST 2008
Pino Toscano wrote:
> Hi,
>
> while working on the Qt4 frontend, I wanted to get the caption of a push
> button FormWidgetButton. But the code for that was not there. Looking arond,
> I found that the code is actually in AnnotWidget, but when working on forms
> you cannot access to that (unless you want to get the annots of the page,
> find the widget that corresponds to the form widget, and get its properties).
>
> As in the PDF specs a form widget is really an annotation of type /Widget,
> what about making FormWidget inherit AnnotWiget (and thus "fuse" the Annot
> and the FormWidget hierachies)?
>
> What do you think? Julien, Iñigo?
>
Sounds good to me. As you point out, forms are just specialized annots,
so there
is no reason to not use that fact when handling them. It isn't merged
yet mainly for historical
reason (form work was started before annots).
Regards,
Julien
More information about the poppler
mailing list