Documents with empty form fields array

View: New views
2 Messages — Rating Filter:   Alert me  

Documents with empty form fields array

by Carlos Garcia Campos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?
--
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462


_______________________________________________
poppler mailing list
poppler@...
http://lists.freedesktop.org/mailman/listinfo/poppler

signature.asc (204 bytes) Download Attachment

Re: Documents with empty form fields array

by Albert Astals Cid-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
poppler mailing list
poppler@...
http://lists.freedesktop.org/mailman/listinfo/poppler