Re: [Podofo-users] PDF Forms with non-standard annotations
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Dennis J. <den...@gm...> - 2014-04-25 15:09:33
|
On Fri, Apr 25, 2014 at 6:56 AM, Leonard Rosenthol <lro...@ad...>wrote:
> The FT key can be inherited from it’s parent when they are organized in
> a hierarchy (ISO 32000-1, 12.7.3.1).
>
> Yes, checking the Subtype is the correct way to identify a form field.
> HOWEVER, you should probably also look at adding inheritance support (as a
> generalization) to some/all of the field related APIs.
>
> Leonard
>
>
> 2) Should PoDoFo be changed to not require the presence of the "FT" key
> and simply accept the presence of the "/n Subtype = /Widget" to indicate a
> form field?
>
>
>
Leonard,
Thank you for your insightful feedback. I was going a bit nuts
wondering why the form worked in Adobe reader but lacked the keys. I did
not read the spec as closely as I should have.
Adding "inheritance support" is probably best left to Dominik and
others who are more familiar with the code base than I.
Dominik,
How do you want to tackle this issue? It is fairly easy to remove the
check for HasKey('FT') in PdfPage::GetNumFields() and PdfPage::GetField()...
|