Hi, I'm having difficulty with two types of AcroFields, Check Box and Text, and I think they're related. As you may recall, the appearance of a field can change with its state. We're having difficulty controling the appearance of the field through these changes.
When we generate Check Box fields, we want a custom appearance. We want to replace the tick symbol (from a ZapfDingbats) to an 'X' symbol in a Courier typeface. It's a fairly simple thing to set up PdfAppearance objects and set them to the states of the PdfFormField object. Here's what I see, I tab to the Check Box field and I see it gain focus. I then click in it or use the keyboard to tick the Check Box. The appearance changes as I want to a Courier 'X' and if I print, I'll get this appearance--which is good. However, if I tab over to another field, the appearance of the Check Box changes to an undesired ZapfDingbats tick symbol. (I'll refer to this out-of-focus state as the blur state. Is there a better term?) I can do SetAppearance() of my PdfAnnotation.APPEARANCE_NORMAL and all the other APPEARANCE_* types and all the other field states, but I get the same tick symbol when the control uses focus. Can you tell me where/how the appearance of a Check Box control is set in this case? Similarly, we have seen discrepancies in the appearance of Text fields where the letters shift up and down in a typeface-dependent fashion without much rhyme or reason. In some examples, pre-filled Text fields will appear with the bottom half of their text obscured. If you click in the field, it properly aligns, but when you tab to another field, the text alignment changes again. We're not sure howto control the appearance in the blur state of the field. To confound matters, we have multiple fields that share the same name, and thus we use a parent-and-kid pair of linked PdfFormField objects. I think the best help you can give me is to describe the mechanism for rendering these controls in a blur-state, and describe the iTextSharp codes most likely to affect the blur state appearance of a Check Box field. Thanks in advance, steve ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
