Re: [poppler] Radio buttons and NoToggleToOff

2016-01-14 Thread Adrián Pérez de Castro
Hello Albert,

Quoting Albert Astals Cid (2016-01-14 01:55:38)
> Hi guys, I was having a look at the radio buttons spec/implementation and 
> found the NoToggleToOff flag.
> 
> Spec says " If set, exactly one radio button shall be selected at
> all times; selecting the currently selected button has no effect. If clear,
> clicking the selected button deselects it, leaving no button selected."
> 
> Which i understand that if the bit is not set means that you can end up 
> having 
> a group of radio buttons with none selected when clicking on the selected one.

I have read the part of the spec concerning buttons, and indeed I do agree
with you. When the “NoToggleToOff” is not present, it should be possible to
leave a group of radio buttons with none of them checked.

> I modified the attached file so that the vertical radio (Alta/modifcacion/
> baja) does not have the NoToggleToOff flag set i.e. /Ff 32768
> 
> When loading the file into Adobe Reader it seems it doesn't let me uncheck 
> the 
> radio.
> 
> Am I reading the spec wrong? Or maybe this this is a bug in Adobe Reader?

It looks to me like a bug in Adobe Reader.

Regards,

--
 ⌨ Adrian



signature.asc
Description: signature
___
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] Radio buttons and NoToggleToOff

2016-01-14 Thread Jason Crain
On 2016-01-14, Albert Astals Cid  wrote:
> Hi guys, I was having a look at the radio buttons spec/implementation and 
> found the NoToggleToOff flag.
> 
> Spec says " If set, exactly one radio button shall be selected at
> all times; selecting the currently selected button has no effect. If clear,
> clicking the selected button deselects it, leaving no button selected."
> 
> Which i understand that if the bit is not set means that you can end up 
> having 
> a group of radio buttons with none selected when clicking on the selected one.
> 
> I modified the attached file so that the vertical radio (Alta/modifcacion/
> baja) does not have the NoToggleToOff flag set i.e. /Ff 32768
> 
> When loading the file into Adobe Reader it seems it doesn't let me uncheck 
> the 
> radio.
> 
> Am I reading the spec wrong? Or maybe this this is a bug in Adobe Reader?
> 
> Anything else i may have missed?

I don't think you've missed anything.  According to the spec, it looks like you
should be able to uncheck the boxes.  I've also found various forum and mailing
list posts complaining about that feature not working in Adobe Reader, or only
working in certain versions.  It looks like the only way to get that behavour
is to remove the radio flag, so they're check boxes instead.
___
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler