Here's the fix in XfdfReader if you are in a hurry:

    public void endElement(String tag) {
        if ( tag.equals("value") ) {
            String      fName = "";
            for (int k = 0; k < fieldNames.size(); ++k) {
                fName += "." + (String)fieldNames.elementAt(k);
            }
            if (fName.startsWith("."))
                fName = fName.substring(1);
            String      fVal = (String) fieldValues.pop();
            fields.put( fName, fVal );
        }
        else if (tag.equals("field") ) {
            if (!fieldNames.isEmpty())
                fieldNames.pop();
        }
    }

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Paulo Soares
> Sent: Sunday, February 20, 2005 10:37 PM
> To: Mika Majakorpi; [email protected]
> Subject: Re: [iText-questions] Merging nested fields using XFDF?
> 
> That's a bug in XfdfReader that I'll fix next week. FdfReader 
> will work
> correctly.
> 
> ----- Original Message ----- 
> From: "Mika Majakorpi" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, February 20, 2005 8:40 PM
> Subject: [iText-questions] Merging nested fields using XFDF?
> 
> 
> > Hi,
> >
> > I use a nested naming scheme on my PDF form fields, ie. the field
> > names are of the form contextname.fieldname. Exporting this to XFDF
> > using Acrobat gets me an XML file with nested <field> tags.
> >
> > Constructing an XfdfReader from this data and calling 
> getFields() gets
> > me a HashMap which is mapped using only the fieldname part of the
> > original field names. And of course the merging does not work.
> >
> > Have I missed something or is this a limitation of iText? I could
> > perhaps switch to using FDF instead of XFDF if that would help....
> >
> > Thank you for any help on this matter!
> >
> > Regards,
> > Mika Majakorpi
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products 
> from real users.
> > Discover which products truly live up to the hype. Start 
> reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to