On 27.05.2024 21:01, Tilman Hausherr wrote:
I'll have another look tomorrow when I'm more awake. I just looked and it happens like you wrote. I traced through the code and it seemed to work properly, i.e. going through different paths for "1" and "2" (looking for dictionary elements 0 and 1) but the result was always the same which contradicts the observation, but that is the fascination in debugging.

I had another look. The values from the /Opt entry are 1 and 2, the values at the dictionary level are 0 and 1. Our software somehow gets confused when 1 is used because it appears in both: when the value "1" is set, then PDButton.updateByOption() is called twice (!!!), once with value 1 and once with 2.

I changed the PDF so that the /Opt entry has "A" and "B" instead of "1" and "2" and then it works.

So I'd say it's a PDFBox bug. The good thing is that the copyright of that PDF would be with a government institution (BAFzA) so we can use it as a test.

Are you the creator of that PDF?

Tilman


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

Reply via email to