If there are no form fields, then there are no radio buttons or check boxes.  
They are just circles and rectangles (aka graphic paths).  You'd have to do 
some significant document analysis heuristics to figure out that a given shape 
on the page is a "radio button" or not.

From: Jimmy Talbot [mailto:jimmydtal...@gmail.com]
Sent: Wednesday, November 30, 2011 10:32 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] How to read radio button, check box states from a 
non-form PDF

Hi,

I have a pdf document (created by a 3rd party using RealObjects 
PDFreactor<http://www.realobjects.com/index.php?id=808&type=0>), which is not a 
form. I'm trying to extract information from that PDF using iTextSharp. I'm 
able to extract all the plain text (usingSimpleTextExtractionStrategy), but 
there is some information that is represented with radio buttons, which does 
not come across in the plain text extracted. I'm a complete beginner with 
iTextSharp, so I might be overlooking something very simple. PdfReader.AcroForm 
returns null, and PdfReader.AcroFields.Fields has 0 keys. How can I figure out 
the state of radio buttons and checkboxes throughout the document? The 
documents all have the same structure, so I don't really need the radio buttons 
& checkboxes to be labelled; just having a list of items, and knowing whether 
they are checked or not would be sufficient.

I've confirmed that the radio buttons are not just images using this 
approach<http://stackoverflow.com/a/7993200/68936>.

If the radio buttons are not images, and they are not form fields, what are 
they? Just special font characters? Graphic paths? Even in these two latter 
cases it must be possible for software to go through the pdf document and 
figure out which is checked and which is not?

Thanks
JImmy
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to