Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1133
  • Last Modified:

Highlight radiobutton list using iTextSharp

Hello,
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.

Thanks
0
rtorres1
Asked:
rtorres1
  • 2
  • 2
1 Solution
 
wrmichaelCommented:
Are you using error handling in your code to trap errors?

0
 
rtorres1Author Commented:
I figured it out. I added:
GenerateAppearances = false
and it worked
0
 
wrmichaelCommented:
Great!  Sorry I didn't help much.  

0
 
rtorres1Author Commented:
none
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now