First of all get the pdf reference from partners.adobe.com. It's impossible
to do any serious pdf creation without knowing what's going under the hood
regardless of the tool used. What you want requires a low level access to
the dictionaries. It's something like this (do the null checking in your
code):

AcroFields af = stamper.getAcroFields();
HashMap fields = af.getFields();
AcroFields.Item item = fields.get("the_field_name");
PdfDictionary dic = (PdfDictionary)item.merged.get(0);
PdfString tu = (PdfString)dic.get(PdfName.TU);
String extra_description = tu.toString();

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Daniel Hull [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, November 11, 2003 15:01
> To:   Paulo Soares
> Subject:      RE: [iText-questions] Getting Form Field Description
> 
> I apologize if I'm asking the obvious here, but I'm relatively
> new to iText and PDFs in general.  How do I access the "merged
> dictionary?"  I couldn't find any methods in AcroFields that
> looked likely.  I'm sure I'm just overlooking something, but I
> can't figure out where it is.
> 
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > Get it from the merged dictionary in AcroFields. The
> > dictionary key is TU.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From:     Daniel Hull [SMTP:[EMAIL PROTECTED]
> > > Sent:     Monday, November 10, 2003 19:22
> > > To:       [EMAIL PROTECTED]
> > > Subject:  [iText-questions] Getting Form Field Description
> > > 
> > > Is there a way to get the description of a form field via
> > itext?
> > >  In Acrobat, you can add a description to any field as you
> > > create them.
> > > 
> > > Thanks!
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This SF.Net email sponsored by: ApacheCon 2003,
> > > 16-19 November in Las Vegas. Learn firsthand the latest
> > > developments in Apache, PHP, Perl, XML, Java, MySQL,
> > > WebDAV, and more! http://www.apachecon.com/
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to