pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Replacement of PDRadioCollection in PDFBox v2?
Date Tue, 29 Nov 2016 19:28:59 GMT
Hi,

> Am 29.11.2016 um 20:11 schrieb Karl Heinz Kremer <khk@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


Mime
View raw message