iTextSharp Combo is always "Visible but doesn't print"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

iTextSharp Combo is always "Visible but doesn't print"

Jake
Does anyone know how to make it print? The flags aren't working for me...

foreach (XElement choices in xElement.Elements())
                        {
                            optionList.Add(choices.Attribute("displayName").Value);
                        }
                        string[] optionArray = optionList.ToArray();
                        PdfFormField combo = PdfFormField.CreateCombo(writer, true, optionArray,0);
                        combo.SetWidget(new Rectangle(sectionX +10+ textLength + 2, fieldIncrementer-3,
                                sectionX + Convert.ToSingle(xElement.Parent.Attribute("width").Value),
                                fieldIncrementer + FontSize-3), PdfName.HIGHLIGHT);
                        combo.FieldName = xElement.Attribute("name").Value;
                        combo.SetFieldFlags(PdfAnnotation.FLAGS_PRINT);
                       
                       
                        writer.AddAnnotation(combo);
Loading...