Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:53:18+00:00 2026-06-08T04:53:18+00:00

I have a fillable PDF contains CheckBoxes and RadioButtons and TextBox. How do i

  • 0

I have a fillable PDF contains CheckBoxes and RadioButtons and TextBox.

How do i get the CheckBox Name and its value also how do we know that it is a checkbox / Radio Button?

i’m using iTextSharp and have look at my below code

 PdfReader pdfReader = new PdfReader(FileName);
 pdfReader.SelectPages("37");
        MemoryStream oStream = new MemoryStream();
        PdfStamper stamper = new PdfStamper(pdfReader, oStream);
        AcroFields form = stamper.AcroFields;
        if (form.Fields.Count() > 0)
        {
            IDictionary<string,AcroFields.Item> oDic= form.Fields;

            foreach (string FieldName in oDic.Keys)
            {
                //FieldName - CheckBox name; i need to confirm that is a Checkbox...
            }

            foreach (AcroFields.Item oItem in oDic.Values)
            {
                // how do we get check box values
            }
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:53:21+00:00Added an answer on June 8, 2026 at 4:53 am

    The following code may help you out, if you still need it. It only works for AcroForms

    int BUTTON = 1;
    int CHECK_BOX = 2;
    int RADIO_BUTTON = 3;
    int TEXT_FIELD = 4;
    int LIST_BOX = 5;
    int COMBO_BOX = 6;
    
    PdfReader pdfReader = new PdfReader(path);
    AcroFields af = pdfReader.AcroFields;
    
    foreach (var field in af.Fields)
    {
        bool isRadio = RADIO_BUTTON == af.GetFieldType(field.Key));
    }
    

    Edit:

    Also, field.Key is the name of the field and field.Value is the value at it.

    For checkboxes, if(field.Value == “Yes”) then it is selected… if it is anything else, it is not selected.

    Edit:

    And I just found how tro get Radio Button options, if you are needing them.

    myKey k = new myKey(field.Key, af.GetField(field.Key), af.GetFieldType(field.Key));
    if (k.isRadio())
    {
        try { k.options.AddRange(af.GetAppearanceStates(k.key)); }
        catch { }
    }
    Keys.Add(k);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a webapp that will display PDFs. The PDFs have fillable forms.
Have an app that can use tts to read text messages. It can also
I have pdf with fillable fields. How can I guys convert it automatically to
I have an submit page where client scan submit a fillable PDF form along
I have a set of PDF files that were created in Acrobat Professional with
I've got a fillable PDF form my client is using for taking orders. It
I have an Excel workbook that is used as a starting point to generate
Have a bunch of WCF REST services hosted on Azure that access a SQL
I have created a class which name is Manager and I have a Frame
Have a look at one of my websites: moskah.com The problem is that it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.