  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Best way to determine if an existing form field has the mu | Best way to determine if an existing form field has the mu 2006-07-20 - By Bruno Lowagie
Back 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
|
|
 |