Bug 426035 - Okular doesn't play ConText animated files
Summary: Okular doesn't play ConText animated files
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.11.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-31 20:43 UTC by João Netto
Modified: 2021-01-17 00:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?