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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to