Bug 426035

Summary: Okular doesn't play ConText animated files
Product: [Applications] okular Reporter: João Netto <joaonetto901>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, acidrums4+stuff, joaonetto901
Priority: NOR    
Version First Reported In: 1.11.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description João Netto 2020-08-31 20:43:23 UTC
Okular can't play animated files from ConText as seen in examples.

http://dl.contextgarden.net/examples/euro-anim/

Quick look at the JavaScript from the code and I could get this:

https://pastebin.com/mDVysKah

As of now we can't support the field.value = "On" for FormButtons. I dug a little bit to find if this was the only problem with the PDF. Unfortunately it doesn't seem so. 

My problem with the FormButtons on this pdf is that they only show a check mark, when they should've rendered the full image from the button.

Things that I've tried:

Hiding each button when showing a new one.
Debugged to see if the JavaScript code is running correctly. It is.
Changing "Yes" to "On" on kjs_field.cpp, playing a little to see if I could render it.

Tests were done on the latest release of Poppler with the kdesrc-build okular.
Comment 1 João Netto 2020-08-31 23:00:20 UTC
This has something to do with poppler not rendering the AP streams to checkboxes. Poppler replaces it with a grey field.
Comment 2 Albert Astals Cid 2021-01-17 00:56:05 UTC
had a quick look, the Yes/On is annoying, seems like we would need to bubble up poppler's FormWidgetButton::getOnStr all the way to the JS layer, but you're right, more things need fixing besides that.

I don't see any grey field, can you attach a screenshot?