Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Best way to determine if an existing form
 field has the multiline property?

Mark Storer

2006-07-24


The various field flags are declared in PdfFormField, they all start with FF_, and are at the top of the API reference page's field summary for PdfFormField.

http://itext.ugent.be/library/api/

--Mark Storer
Senior Software Engineer
Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;



> -----Original Message-----
> From: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)
> Behalf Of Bruno
> Lowagie
> Sent: Thursday, July 20, 2006 2:13 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Best way to determine if an
> existing form
> field has the multiline property?
>
>
> Malloy, James wrote:
>
> > I have a process that fills forms. I want to do a specific
> action if a
> > form field is multiline. What is the best way to determine if the
> > field is multiline?
>
>
> > Object multiline = dict.get(PdfName./FF/);
> >
> > *if* (multiline == *null*) {
> >
> >   //Do something
> >
> > }
> >
> >
> >
> > This no long seems to work as I intended because fields that do not
> > have the multiline property checked return an integer value rather
> > than a null like it used to.
> >
> It works as expected. It returns a value for the field flags (FF).
> You can see this integer as a bitset, One of the bits indicates
> if the field is a multiline field. I just returned from de
> Gentse Feesten;
> (see http://www.gentsefeesten.be/english/ ), so my head is not very
> clear for the moment, but if you have a look at the PDF Reference,
> you will find out the correct bit position of the multiline flag.
> br,
> Bruno
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys -- and
> earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.