wasegraves
Fri, 27 Jun 2008 10:37:32 -0700
-------------- 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. I agree, in a way. Indeed, any use of programs like Acrobat/Reader, together with a library like iText that gives you the power to generate PDFs without having Acrobat/Reader at all involves selecting the most suitable set of many alternatives to satisfy the software requirements. I try to keep "pure" installations of Acrobat 3, 4, 5, and 6 (where I stopped upgrading Acrobat) on separate computers on my network, so I can support users with a wide range of versions of Acrobat/Adobe Reader (Note: I can support Reader 3, 4, 5, 6, and 8, lacking one computer to backfill with Reader 7, which went away when my grandsons needed the computer on which v7 was installed). > 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. > Yes. This is one of those compromises. You'll see that the choice in the first field in the ChoiceFields example is editable, while the choice in the second field is not. You choose the one that is best-suited to your requirements. That said, you do have the power with iText to make the choice editable or not-editable, via the "editable" parameter, e.g., see the JavaDoc API for PdfAcroForm, addComboBox, which shows you the syntax for the "editable" parameter. [Note to Bruno: There appear to be two identical entries in the documentation of PdfAcroForm for "addComboBox". Is this a redundancy, or is there another variation, which was not entered in the documentation?] > But I guess it'll have to do. Thanks m8. > I'll see about that donation ;-) You're very welcome. Any support you can give to the iText project benefits the enire iText community. BTW, I see (I think) Real Software is a Belgian company. Are you close to Ghent, where Bruno Lowagie is headquartered? Best regards, Bill Segraves ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net 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