pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Problem with radioButton.setValue()
Date Tue, 17 Jan 2017 18:59:06 GMT
Here's code to create radio buttons with appearance streams:
http://stackoverflow.com/a/41632982/535646

When calling

radioButton.setValue("a");

then the first button becomes invisible. That is because

Root/Pages/Kids/[0]/Annots/[0]/AS

has "0" instead of "a" as value, and /V is also "0", /DV is still "b".

Calling

radioButton.setValue("Off");

brings an ArrayIndexOutOfBoundsException.

Is this a bug in our code or a wrong way to create radio buttons?

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message