You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Karl Heinz Kremer <kh...@khk.net> on 2016/11/29 19:11:14 UTC
Replacement of PDRadioCollection in PDFBox v2?
In a pre-v2 PDFBox based application, I was able to use PDRadioCollection
to get all child elements of a radio box group. Is there anything similar
in PDFBox 2?
What I am looking for is a way to get all options for a radio button group.
I can do this by getting the field's COSDictionary, and then traverse the
COS hierarchy for the field, but I'd like to avoid that if there is an
easier option.
Thanks,
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
khk@khk.net
http://www.khkonsulting.com
Re: Replacement of PDRadioCollection in PDFBox v2?
Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,
> Am 29.11.2016 um 20:11 schrieb Karl Heinz Kremer <kh...@khk.net>:
>
> In a pre-v2 PDFBox based application, I was able to use PDRadioCollection
> to get all child elements of a radio box group. Is there anything similar
> in PDFBox 2?
>
> What I am looking for is a way to get all options for a radio button group.
> I can do this by getting the field's COSDictionary, and then traverse the
> COS hierarchy for the field, but I'd like to avoid that if there is an
> easier option.
>
looks like http://pdfbox.apache.org/docs/2.0.3/javadocs/org/apache/pdfbox/pdmodel/interactive/form/PDButton.html#getOnValues() is what you are looking for.
BR
Maruan
> Thanks,
>
> Karl Heinz Kremer
> PDF Acrobatics Without a Net
> PDF Software Development, Training and More...
>
> khk@khk.net
> http://www.khkonsulting.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org