[poppler] Documents with empty form fields array

Albert Astals Cid aacid at kde.org
Tue Nov 10 11:48:00 PST 2009


A Dimarts, 10 de novembre de 2009, Carlos Garcia Campos va escriure:
> Hi all,
> 
> we have a bug in evince about not editable forms which has already
> several duplicates, see:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=535143
> 
> Poppler doesn't handle the form fields in those documents because the
> Fields array in the document catalog is empty, for example:
> 
> 4 0 obj
>  << /Fields [] /DR << /Font << /ZaDb 2 0 R /Helv 3 0 R >> >> /DA
> 
>  >> (/Helv 10 Tf 0 g ) /NeedAppearances true >>
> 
> endobj
> 
> Other document viewers not based on poppler like acroread correctly
> detect the forms, so I'm wondering if the those documents are wrong
> and acroread implements a workaround for it, or if documents are correct
> and it's a poppler bug.
> 
> The spec says that Fields is a required entry in the Document Catalog
> dictionary, and it's an array of references to the document's root
> fields.
> 
> What do you think?
> 

That the spec is clear :D And unless there is something like "page fields" the 
documents are buggy but still we should try to support them.

Albert


More information about the poppler mailing list