-------------- Original message ---------------------- From: Fhomasp <[EMAIL PROTECTED]> > > > When calling the method using an extra "" in the vararg works. Although it > does seem more like a workaround instead of a solution.
In my last example, ChoiceFields_v2, I had added "Select one" at the beginning
of the options list, making the Combo box so it tells the user what to do.
> I did modify the code in the book a bit because otherwise a user would be
> able to just type in any value in the textfield contained in the cell. Now
> the user is limited to the choices I provide.
>
In my next example (see attachment), ChoiceFields_v3, I changed the "editable"
parameter of PdfFormField.createCombo from "true" to "false" making the
choices non-editable, e.g.,
PdfFormField combo = PdfFormField.createCombo(writer, false, options, 0);
> But I guess it'll have to do. Thanks m8.
> I'll see about that donation ;-)
You're very welcome. Many thanks for your generosity toward the iText project.
Best regards,
Bill Segraves
choicefields_v3.pdf
Description: Adobe PDF document
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
