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.
On Mon, Mar 18, 2019 at 1:30 AM stefa...@t-online.de <stefa...@t-online.de> wrote: > Hello all, > > > > I start using PoDoFo 0.9.6 and overall I'm really happy with it - Thanks > for your efforts! > > > > So far I could not get Radio Buttons in AcroForms to work. > > > > - Are radio buttons supported already? > > - How to I retrieve information about the grouping of particular radio > buttons? > > > > Just my little code snippet: > > > > [...] > PdfField curField = curPage->GetField(i); > > > > switch (curField.GetType()) > > { > > case ePdfField_PushButton: > > case ePdfField_RadioButton: > > case ePdfField_CheckBox: > > { > > PdfButton bt = static_cast<PdfButton>(curField); > > > > if (bt.IsCheckBox()) > > logMsg += "Type: Checkbox\n"; > > else if (bt.IsRadioButton()) > > logMsg += "Type: Radiobutton\n"; > > else if (bt.IsPushButton()) > > logMsg += "Type: Pushbutton\n"; > > }; break; > > > > With PoDoFo 0.9.6 and this code all the radio buttons in my PDF document > are reported as Checkbox. Is this known behavior? > > > > Thanks, > > Stefan > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users