Highlight radiobutton list using iTextSharp

I am trying to highlight required fields on an existing PDF using iTextSharp in a .net windows application. I am having trouble highlighing a radiobutton list. I've used getappearancestates to find the correct values but when I use .SetFieldProperty(FieldName, "bordercolor", iTextSharp.text.Color.YELLOW, null); It is not reflected on the pdf. When I look at the properties on the PDF for the radiobuttonlist the yellow background color is there. Just not rendering. I'm using acrobat pro 9 to view the PDFs.

Who is Participating?
rtorres1Connect With a Mentor Author Commented:
I figured it out. I added:
GenerateAppearances = false
and it worked
Wayne MichaelSenior Software DeveloperCommented:
Are you using error handling in your code to trap errors?

Wayne MichaelSenior Software DeveloperCommented:
Great!  Sorry I didn't help much.  

rtorres1Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.