Hi all…
I have a problem with determining the possible values for a radio, here is the scenario:
Given a PDF file that is created outside of the control of my program I need to be able to enumerate the fields in the PDF and provide possible values. I know that I can determine the type of each field, for instance if we have a pdf of the form:
Name: [-----]
Gender: () Male () Female
I can determine that I have two form fields, the “Name” field that is a text field and the “Gender” field that is a radio group. The problem that I am having is determining the valid values for the “Gender” group.
If one of the radio buttons is selected by default in the PDF then I can get that value, but I have no way of telling what the other value is.
How can this be done with Pdf.Kit?
Thanks in advance.
Hi Adam,
Thank you very much for considering Aspose.
Please help me understand the question. Do want to know all the given values for a particular radio group? Like, in this particular case you want to get the values ‘Male’ and ‘Female’ for the radio group Gender. Or say you have a radio group called the Java Versions and you would like to know which versions are there in the radio group’s list. Is that right?
Kindly acknowledge so we could look into the requirement.
Regards,
Shahzad,
That is correct.
So to summarize let’s assume this case [assume the snippet appears in a form]
Please Choose your Java Version:
1.1 () 1.2 () 1.3 () 1.4 () 1.5 () 1.6 ()
The result I am looking for in the possible values would be a String array containing
"1.1", “1.2”, “1.3”, “1.4”, “1.5”, "1.6"
I know that if one of the values was chosen, I could get that value, but I need to be able to get all of the possible values.
As far as I can tell currently there is not an easy way to do this, IE a function like
String [] getPossibleValues (fieldName) { … }
Thanks again for your attention to this.
-Adam
Hi Adam,
I’m afraid to inform you that we have investigated your requirement, but it is currently not supported by Aspose.Pdf.Kit at the moment. Our team will be looking into this and see if this requirement can be supported in the upcoming versions of the Aspose.Pdf.Kit. However, I’m afraid, this wouldn’t be possible in the short time.
We’re sorry for the inconvenience.
Regards,
Shahzad,
Thank you for looking into this.
If, in the future, the PDF.Kit supports this feature please post a reply to this thread so that I can re-evaluate for my company.
Thank you once again for your time and effort on this issue.
-Adam
Hi Adam,
This feature is now supported in our latest release of Aspose.Pdf.Kit for Java. You can download [Aspose.Pdf.Kit for Java 2.4.0.0 ](http://www.aspose.com/community/files/51/file-format-components/aspose.pdf.kit-for-.net-and-java/default.aspx)
now.
Regards,