-------------- Original message ---------------------- From: Fhomasp <[EMAIL PROTECTED]> <snip> > But now that I am testing the document I encountered a problem when printing > the document, more specifially with comboboxes. > > When I open the generated document everything seems to be good. There isn't > a value in the combobox field, which is the way it's supposed to be. But > then when i print it the first element in the dropdown box is filled in the > field. That's of course not a desired result. The document should print > values that are either selected or filled in, nothing else. > I tried setting the option in the textfield "Hidden but printable", which > makes the button with the list disappear. > > It might be something I overlooked (again!? :) )
Please let us know what version of Adobe Reader you are using. This is not the behavior I see when I open, e.g., choicefields.pdf. Of course, without your code that demonstrates the behavior you do not wish to have, we can only guess. I'm guessing you're leaving it up to the PDF viewer/printer to render the combo box for you, expecting the iText has some magical powers over viewers/printers. Using the example ChoiceFields in Section 15.2.3 "Creating choice fields", pp. 486-488, one way to resolve your problem might be to add a null option, "", or "None" at the beginning of the option list. Please let us know if this solves your problem, when you do this with the ChoiceFields example. I'm getting the feeling you're trying to use itext without benefit of the book. Do you have it? If not, I can virually guarantee your employer is not getting his money's worth for your efforts. BTW, you can find the Chapter 15 example I cited at http://1t3xt.info/examples/browse/?page=example&id=243 While you're there, you can show your appreciation for the extraordinary resources the iText team has provided for us by leavinf a gift via a PayPal donation. Just do it! I guarantee it'll make you feel good. :-) 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 [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
