Currently I'm working on parsing existing PDF files, not generating new PDF 
documents.
 
> If you are sure that you have some radio buttons then check what is 
returning curField.GetType().
> I am sure that GetType() will return correctly ePdfField_RadioButton for 
radio buttons as I am
> using it but I never tried IsRadioButton() function.
 
The result using GetType() is the same. To test again I used this PDF file 
that containts three checkboxes and three radio buttons:
 
www.windjack.com/DownLoads/RadioCheckBox_AcroForm.pdf
<https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=50&ved=2ahUKEwikn-z4io_hAhUHzaQKHS9VAww4KBAWMAl6BAgJEAI&url=http%3A%2F%2Fwww.windjack.com%2FDownLoads%2FRadioCheckBox_AcroForm.pdf&usg=AOvVaw1WacoDYZUmb5HrZYNE2QcD>
 
See my code and the resulting log output:
 
         switch (curField.GetType())
            {
                case ePdfField_RadioButton:
                    logMsg += "Type RadioButton " + 
std::to_string(curField.GetType()) + "\n";
                    break;
 
                case ePdfField_CheckBox:
                    logMsg += "Type CheckBox " + 
std::to_string(curField.GetType()) + "\n";
                    break;
                      [...]
           }
 
PDF Version: 1.4
Page Count: 1
Page: 0
Mediabox: [ 0.000000 0.000000 612.000000 792.000000 ]
Rotation: 0
Annotations: 7
Type CheckBox 1
Type CheckBox 1
Type CheckBox 1
Type CheckBox 1
Type CheckBox 1
Type CheckBox 1
 
Also, PoDoFo's tool 'podofopdfinfo.exe' reports for all annotations in that 
file the same "Type 19". Could you validate this?
 
Thanks,
Stefan
 
 

_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to